Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001395/0.001395, allocations: 81.97 kB / 22.21 MB, free: 2.289 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009979/0.0009979, allocations: 163.9 kB / 25.61 MB, free: 8.582 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9475/0.9475, allocations: 177.2 MB / 206.1 MB, free: 4.473 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.16/0.16, allocations: 32.8 MB / 295.4 MB, free: 15.37 MB / 282.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.ComplexMath.TestComplexFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions") translateModel(ModelicaTest.ComplexMath.TestComplexFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.184e-06/2.184e-06, allocations: 0 / 377.2 MB, free: 25.63 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.695e-05/2.913e-05, allocations: 2.312 kB / 377.2 MB, free: 25.62 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.001348/0.001378, allocations: 488.8 kB / 377.7 MB, free: 25.15 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.002355/0.003733, allocations: 2.334 MB / 380 MB, free: 22.79 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.425e-05/0.003757, allocations: 0 / 380 MB, free: 22.79 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 1.276e-05/0.00377, allocations: 0 / 380 MB, free: 22.79 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 6.192e-06/0.003776, allocations: 0 / 380 MB, free: 22.79 MB / 314.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/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.001941/0.005717, allocations: 1.121 MB / 381.2 MB, free: 21.67 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 4.485e-05/0.005762, allocations: 0 / 381.2 MB, free: 21.67 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.188e-05/0.005794, allocations: 0 / 381.2 MB, free: 21.67 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.409e-05/0.005818, allocations: 4 kB / 381.2 MB, free: 21.66 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.256e-05/0.00584, allocations: 0 / 381.2 MB, free: 21.66 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 7.834e-06/0.005848, allocations: 0 / 381.2 MB, free: 21.66 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001029/0.006877, allocations: 0.9947 MB / 382.2 MB, free: 20.67 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 8.546e-06/0.006885, allocations: 4 kB / 382.2 MB, free: 20.66 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 1.244e-05/0.006898, allocations: 0 / 382.2 MB, free: 20.66 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004856/0.007383, allocations: 0.5377 MB / 382.7 MB, free: 20.12 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.716e-06/0.007386, allocations: 0 / 382.7 MB, free: 20.12 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.212e-06/0.007387, allocations: 3.938 kB / 382.7 MB, free: 20.12 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.727e-06/0.007391, allocations: 4 kB / 382.7 MB, free: 20.12 MB / 314.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.0002847/0.007676, allocations: 473.2 kB / 383.2 MB, free: 19.61 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.428e-05/0.00771, allocations: 11.98 kB / 383.2 MB, free: 19.6 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.652e-05/0.007736, allocations: 0.9375 kB / 383.2 MB, free: 19.6 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 3.586e-05/0.007772, allocations: 104.6 kB / 383.3 MB, free: 19.47 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.024e-05/0.007782, allocations: 4.375 kB / 383.3 MB, free: 19.47 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.561e-06/0.007788, allocations: 4.375 kB / 383.3 MB, free: 19.46 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.411e-05/0.007852, allocations: 55.97 kB / 383.3 MB, free: 19.4 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.821e-06/0.007858, allocations: 192 / 383.3 MB, free: 19.4 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.731e-06/0.007864, allocations: 4.312 kB / 383.4 MB, free: 19.39 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.3e-06/0.007869, allocations: 7.922 kB / 383.4 MB, free: 19.39 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.068e-05/0.00788, allocations: 25.7 kB / 383.4 MB, free: 19.36 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 5.165e-05/0.007931, allocations: 93.27 kB / 383.5 MB, free: 19.24 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 2.965e-05/0.007961, allocations: 48.77 kB / 383.5 MB, free: 19.17 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.101e-05/0.007972, allocations: 41.48 kB / 383.6 MB, free: 19.12 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.457e-06/0.007975, allocations: 4 kB / 383.6 MB, free: 19.12 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.972e-05/0.007995, allocations: 63.09 kB / 383.6 MB, free: 19.04 MB / 314.7 MB Notification: Performance of pre-optimization done (n=1): time 6.21e-07/0.007996, allocations: 0 / 383.6 MB, free: 19.04 MB / 314.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001141/0.00811, allocations: 118.7 kB / 383.7 MB, free: 18.9 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.036e-05/0.00813, allocations: 81.11 kB / 383.8 MB, free: 18.8 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.822e-05/0.008148, allocations: 142.2 kB / 384 MB, free: 18.65 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.567e-06/0.008152, allocations: 25.7 kB / 384 MB, free: 18.62 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.022e-05/0.008162, allocations: 126.9 kB / 384.1 MB, free: 18.49 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.335e-05/0.008176, allocations: 0 / 384.1 MB, free: 18.49 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.093e-05/0.008197, allocations: 27.36 kB / 384.1 MB, free: 18.45 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 4.156e-05/0.008238, allocations: 0.4884 MB / 384.6 MB, free: 17.95 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.828e-06/0.008248, allocations: 29.7 kB / 384.7 MB, free: 17.92 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.146e-06/0.008256, allocations: 29.7 kB / 384.7 MB, free: 17.88 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.658e-05/0.008283, allocations: 67.03 kB / 384.8 MB, free: 17.8 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.412e-06/0.008284, allocations: 0 / 384.8 MB, free: 17.8 MB / 314.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 3.755e-05/0.008322, allocations: 89.09 kB / 384.8 MB, free: 17.7 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.918e-05/0.008341, allocations: 29.7 kB / 384.9 MB, free: 17.66 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-06/0.008346, allocations: 3.938 kB / 384.9 MB, free: 17.66 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.893e-06/0.008352, allocations: 0 / 384.9 MB, free: 17.66 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.02e-07/0.008353, allocations: 0 / 384.9 MB, free: 17.66 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.464e-06/0.008356, allocations: 4.094 kB / 384.9 MB, free: 17.65 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.233e-05/0.008368, allocations: 7.938 kB / 384.9 MB, free: 17.64 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.739e-06/0.008373, allocations: 0 / 384.9 MB, free: 17.64 MB / 314.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 3.872e-05/0.008412, allocations: 186.3 kB / 385.1 MB, free: 17.45 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.39e-06/0.008417, allocations: 4.344 kB / 385.1 MB, free: 17.44 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.424e-06/0.008424, allocations: 3 kB / 385.1 MB, free: 17.44 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.513e-06/0.008426, allocations: 3.984 kB / 385.1 MB, free: 17.44 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.084e-06/0.008428, allocations: 0 / 385.1 MB, free: 17.44 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.973e-06/0.00843, allocations: 0 / 385.1 MB, free: 17.44 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.44e-05/0.008464, allocations: 97.2 kB / 385.2 MB, free: 17.32 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.81e-07/0.008465, allocations: 4 kB / 385.2 MB, free: 17.31 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.61e-07/0.008466, allocations: 3.938 kB / 385.2 MB, free: 17.31 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.41e-07/0.008466, allocations: 0 / 385.2 MB, free: 17.31 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.977e-06/0.00847, allocations: 0 / 385.2 MB, free: 17.31 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.01e-07/0.008471, allocations: 3.984 kB / 385.2 MB, free: 17.3 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.91e-07/0.008471, allocations: 0 / 385.2 MB, free: 17.3 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.77e-05/0.008529, allocations: 131.8 kB / 385.3 MB, free: 17.14 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.747e-06/0.008533, allocations: 3.984 kB / 385.3 MB, free: 17.14 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.316e-06/0.008541, allocations: 0 / 385.3 MB, free: 17.14 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.258e-06/0.008545, allocations: 0 / 385.3 MB, free: 17.14 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.666e-06/0.008554, allocations: 8.031 kB / 385.3 MB, free: 17.13 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.823e-06/0.008556, allocations: 4 kB / 385.3 MB, free: 17.12 MB / 314.7 MB Notification: Performance of sorting global known variables: time 1.198e-05/0.008568, allocations: 119.2 kB / 385.4 MB, free: 17.01 MB / 314.7 MB Notification: Performance of sort global known variables: time 6e-08/0.008568, allocations: 0 / 385.4 MB, free: 17.01 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003726/0.00894, allocations: 159.5 kB / 385.6 MB, free: 16.85 MB / 314.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.0005068/0.009447, allocations: 430.4 kB / 386 MB, free: 16.43 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 7.407e-05/0.009521, allocations: 126.4 kB / 386.1 MB, free: 16.28 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.283e-06/0.009523, allocations: 0 / 386.1 MB, free: 16.28 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 1.439e-05/0.009537, allocations: 92.78 kB / 386.2 MB, free: 16.16 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001126/0.00965, allocations: 7.938 kB / 386.2 MB, free: 16.16 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001493/0.009799, allocations: 111.7 kB / 386.4 MB, free: 16.01 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.124e-05/0.00982, allocations: 59.23 kB / 386.4 MB, free: 15.93 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 5.661e-06/0.009826, allocations: 0 / 386.4 MB, free: 15.93 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.448e-05/0.00986, allocations: 70.2 kB / 386.5 MB, free: 15.86 MB / 314.7 MB Notification: Performance of SimCode: time 7.52e-07/0.009861, allocations: 0 / 386.5 MB, free: 15.86 MB / 314.7 MB Notification: Performance of Templates: time 0.006274/0.01614, allocations: 6.093 MB / 392.6 MB, free: 9.77 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.sim & ./ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/ComplexMath/TestComplexFunctions/TestComplexFunctions.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.2487520431168377]