Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001868/0.001868, allocations: 99.53 kB / 20.97 MB, free: 3.457 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001968/0.001968, allocations: 160.8 kB / 24.27 MB, free: 156 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.559/1.559, allocations: 177 MB / 204.5 MB, free: 5.625 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.4165/0.4165, allocations: 34.26 MB / 295.2 MB, free: 0.6445 MB / 266.7 MB " [Timeout remaining time 179] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.ComplexMath.TestComplexOperations,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations") translateModel(ModelicaTest.ComplexMath.TestComplexOperations,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.194e-06/2.194e-06, allocations: 0 / 377.2 MB, free: 2.957 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.338e-05/3.558e-05, allocations: 2.312 kB / 377.2 MB, free: 2.953 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.001685/0.001721, allocations: 483.5 kB / 377.6 MB, free: 2.48 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.004181/0.005902, allocations: 2.33 MB / 380 MB, free: 132 kB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.214e-05/0.005934, allocations: 4 kB / 380 MB, free: 128 kB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.435e-05/0.005948, allocations: 0 / 380 MB, free: 128 kB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 7.464e-06/0.005956, allocations: 3.938 kB / 380 MB, free: 124 kB / 346.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/ComplexMath.mo:4:3-189:23:writable] Warning: Pure function 'ModelicaTest.ComplexMath.ComplexFunctions' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.00313/0.009086, allocations: 1.109 MB / 381.1 MB, free: 15.01 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 4.97e-05/0.009136, allocations: 15.86 kB / 381.1 MB, free: 14.99 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.38e-05/0.00917, allocations: 0 / 381.1 MB, free: 14.99 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.902e-05/0.009199, allocations: 0 / 381.1 MB, free: 14.99 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.125e-05/0.00922, allocations: 0 / 381.1 MB, free: 14.99 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 7.184e-06/0.009227, allocations: 0 / 381.1 MB, free: 14.99 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001759/0.01099, allocations: 0.9753 MB / 382.1 MB, free: 14.02 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 1.005e-05/0.011, allocations: 4 kB / 382.1 MB, free: 14.01 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 2.495e-05/0.01102, allocations: 7.922 kB / 382.1 MB, free: 14 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008372/0.01186, allocations: 0.5338 MB / 382.6 MB, free: 13.47 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.01186, allocations: 0 / 382.6 MB, free: 13.47 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.403e-06/0.01186, allocations: 0 / 382.6 MB, free: 13.47 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.131e-06/0.01187, allocations: 0 / 382.6 MB, free: 13.47 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0005751/0.01244, allocations: 469.2 kB / 383.1 MB, free: 12.97 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.129e-05/0.01249, allocations: 8.031 kB / 383.1 MB, free: 12.96 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.561e-05/0.01253, allocations: 0.9375 kB / 383.1 MB, free: 12.96 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001073/0.01264, allocations: 112.6 kB / 383.2 MB, free: 12.82 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.258e-05/0.01265, allocations: 384 / 383.2 MB, free: 12.82 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.742e-06/0.01266, allocations: 8.312 kB / 383.2 MB, free: 12.82 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001073/0.01277, allocations: 59.97 kB / 383.3 MB, free: 12.75 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.316e-06/0.01277, allocations: 192 / 383.3 MB, free: 12.75 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.424e-06/0.01278, allocations: 384 / 383.3 MB, free: 12.75 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.322e-06/0.01279, allocations: 3.938 kB / 383.3 MB, free: 12.74 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.031e-05/0.01283, allocations: 33.7 kB / 383.3 MB, free: 12.7 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001335/0.01296, allocations: 108.6 kB / 383.4 MB, free: 12.56 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.716e-05/0.01305, allocations: 56.78 kB / 383.5 MB, free: 12.49 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.435e-05/0.01308, allocations: 37.33 kB / 383.5 MB, free: 12.44 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.907e-06/0.01309, allocations: 0 / 383.5 MB, free: 12.44 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.37e-05/0.01318, allocations: 71.16 kB / 383.6 MB, free: 12.36 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 7.42e-07/0.01318, allocations: 0 / 383.6 MB, free: 12.36 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002427/0.01342, allocations: 118.8 kB / 383.7 MB, free: 12.21 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.783e-05/0.01349, allocations: 81.05 kB / 383.8 MB, free: 12.12 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.972e-05/0.01358, allocations: 146.2 kB / 383.9 MB, free: 11.96 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.763e-05/0.01359, allocations: 25.7 kB / 383.9 MB, free: 11.93 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.389e-05/0.01367, allocations: 130.9 kB / 384.1 MB, free: 11.8 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.117e-05/0.01369, allocations: 0 / 384.1 MB, free: 11.8 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.37e-05/0.01372, allocations: 15.38 kB / 384.1 MB, free: 11.77 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002584/0.01398, allocations: 496.1 kB / 384.6 MB, free: 11.28 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.974e-05/0.01401, allocations: 33.75 kB / 384.6 MB, free: 11.24 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.3e-05/0.01403, allocations: 29.7 kB / 384.6 MB, free: 11.2 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.965e-05/0.01411, allocations: 67.09 kB / 384.7 MB, free: 11.12 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.01412, allocations: 0 / 384.7 MB, free: 11.12 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.817e-05/0.01421, allocations: 89.09 kB / 384.8 MB, free: 11.02 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.857e-05/0.01425, allocations: 33.7 kB / 384.8 MB, free: 10.98 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.418e-06/0.01426, allocations: 0 / 384.8 MB, free: 10.98 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.32e-05/0.01427, allocations: 0 / 384.8 MB, free: 10.98 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.02e-07/0.01427, allocations: 0 / 384.8 MB, free: 10.98 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.155e-06/0.01428, allocations: 3.938 kB / 384.8 MB, free: 10.97 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.439e-05/0.01429, allocations: 4.094 kB / 384.8 MB, free: 10.97 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.736e-06/0.0143, allocations: 7.938 kB / 384.8 MB, free: 10.96 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001366/0.01444, allocations: 182.3 kB / 385 MB, free: 10.77 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.465e-05/0.01445, allocations: 7.953 kB / 385 MB, free: 10.76 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.114e-05/0.01446, allocations: 6.984 kB / 385 MB, free: 10.75 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.042e-06/0.01447, allocations: 0 / 385 MB, free: 10.75 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.01447, allocations: 0 / 385 MB, free: 10.75 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.719e-06/0.01447, allocations: 3.938 kB / 385 MB, free: 10.75 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001106/0.01458, allocations: 108.6 kB / 385.1 MB, free: 10.61 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.01459, allocations: 0 / 385.1 MB, free: 10.61 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.81e-07/0.01459, allocations: 4 kB / 385.1 MB, free: 10.61 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.252e-06/0.01459, allocations: 0 / 385.1 MB, free: 10.61 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.194e-06/0.01459, allocations: 3.938 kB / 385.1 MB, free: 10.6 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.0146, allocations: 0 / 385.1 MB, free: 10.6 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.516e-06/0.0146, allocations: 3.984 kB / 385.1 MB, free: 10.6 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001538/0.01475, allocations: 135.8 kB / 385.3 MB, free: 10.43 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.837e-06/0.01476, allocations: 0 / 385.3 MB, free: 10.43 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.198e-05/0.01477, allocations: 0 / 385.3 MB, free: 10.43 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.315e-06/0.01478, allocations: 3.938 kB / 385.3 MB, free: 10.43 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.831e-05/0.0148, allocations: 7.984 kB / 385.3 MB, free: 10.42 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.919e-06/0.0148, allocations: 8.031 kB / 385.3 MB, free: 10.41 MB / 362.7 MB Notification: Performance of sorting global known variables: time 7.532e-05/0.01488, allocations: 123.1 kB / 385.4 MB, free: 10.29 MB / 362.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01488, allocations: 0 / 385.4 MB, free: 10.29 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005464/0.01542, allocations: 159.5 kB / 385.6 MB, free: 10.13 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009112/0.01633, allocations: 419.9 kB / 386 MB, free: 9.719 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001644/0.0165, allocations: 122.5 kB / 386.1 MB, free: 9.57 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.0165, allocations: 0 / 386.1 MB, free: 9.57 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 7.184e-05/0.01657, allocations: 88.8 kB / 386.2 MB, free: 9.461 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001232/0.01669, allocations: 6.969 kB / 386.2 MB, free: 9.457 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002511/0.01695, allocations: 109.7 kB / 386.3 MB, free: 9.312 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.258e-05/0.01701, allocations: 63.41 kB / 386.4 MB, free: 9.23 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.3e-06/0.01701, allocations: 4 kB / 386.4 MB, free: 9.227 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.802e-05/0.01703, allocations: 8.5 kB / 386.4 MB, free: 9.219 MB / 362.7 MB Notification: Performance of SimCode: time 4.31e-07/0.01703, allocations: 0 / 386.4 MB, free: 9.219 MB / 362.7 MB Notification: Performance of Templates: time 0.01012/0.02715, allocations: 4.727 MB / 391.1 MB, free: 4.488 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.sim & ./ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/ComplexMath/TestComplexOperations/TestComplexOperations.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.026544464984909]