Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexOperations.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.001538/0.001538, 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.001137/0.001137, 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 1.009/1.009, allocations: 177.1 MB / 206.1 MB, free: 4.48 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.1597/0.1597, allocations: 34.26 MB / 296.9 MB, free: 13.9 MB / 282.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.TestComplexOperations,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexOperations") translateModel(ModelicaTest.ComplexMath.TestComplexOperations,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexOperations") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.412e-06/1.412e-06, allocations: 0 / 379.2 MB, free: 23.45 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.729e-05/1.871e-05, allocations: 6.25 kB / 379.2 MB, free: 23.44 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.0009092/0.0009279, allocations: 477 kB / 379.7 MB, free: 22.97 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.002378/0.003306, allocations: 2.346 MB / 382.1 MB, free: 20.6 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.478e-05/0.003341, allocations: 0 / 382.1 MB, free: 20.6 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 2.519e-05/0.003366, allocations: 3.938 kB / 382.1 MB, free: 20.6 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 1.154e-05/0.003378, allocations: 0 / 382.1 MB, free: 20.6 MB / 314.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.00156/0.004937, allocations: 1.109 MB / 383.2 MB, free: 19.48 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 5.344e-05/0.004991, allocations: 0 / 383.2 MB, free: 19.48 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.874e-05/0.00503, allocations: 3.984 kB / 383.2 MB, free: 19.48 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.789e-05/0.005057, allocations: 8 kB / 383.2 MB, free: 19.47 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.33e-05/0.005081, allocations: 0 / 383.2 MB, free: 19.47 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 8.176e-06/0.005089, allocations: 0 / 383.2 MB, free: 19.47 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009367/0.006026, allocations: 0.9947 MB / 384.2 MB, free: 18.48 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 8.736e-06/0.006034, allocations: 0 / 384.2 MB, free: 18.48 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 1.563e-05/0.00605, allocations: 4 kB / 384.2 MB, free: 18.47 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004547/0.006505, allocations: 0.5299 MB / 384.7 MB, free: 17.94 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.006508, allocations: 4 kB / 384.7 MB, free: 17.94 MB / 314.7 MB Notification: Performance of FrontEnd: time 6.91e-07/0.006509, allocations: 3.938 kB / 384.7 MB, free: 17.93 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.14e-06/0.006514, allocations: 4 kB / 384.7 MB, free: 17.93 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.0003204/0.006834, allocations: 473.2 kB / 385.2 MB, free: 17.43 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.004e-05/0.006874, allocations: 8.031 kB / 385.2 MB, free: 17.42 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.133e-05/0.006906, allocations: 4.922 kB / 385.2 MB, free: 17.41 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.338e-05/0.006959, allocations: 108.6 kB / 385.3 MB, free: 17.28 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.337e-05/0.006972, allocations: 384 / 385.3 MB, free: 17.28 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.851e-06/0.006978, allocations: 384 / 385.3 MB, free: 17.28 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.023e-05/0.007048, allocations: 55.97 kB / 385.4 MB, free: 17.21 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.346e-06/0.007057, allocations: 192 / 385.4 MB, free: 17.21 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.281e-06/0.007063, allocations: 384 / 385.4 MB, free: 17.21 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.272e-06/0.007069, allocations: 7.938 kB / 385.4 MB, free: 17.21 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.244e-05/0.007082, allocations: 25.7 kB / 385.4 MB, free: 17.18 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.56e-05/0.007147, allocations: 97.25 kB / 385.5 MB, free: 17.05 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.092e-05/0.007188, allocations: 60.73 kB / 385.5 MB, free: 16.98 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.272e-05/0.007201, allocations: 33.39 kB / 385.6 MB, free: 16.93 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.787e-06/0.007205, allocations: 3.984 kB / 385.6 MB, free: 16.93 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.511e-05/0.00723, allocations: 59.09 kB / 385.6 MB, free: 16.86 MB / 314.7 MB Notification: Performance of pre-optimization done (n=1): time 7.11e-07/0.007231, allocations: 4.062 kB / 385.6 MB, free: 16.85 MB / 314.7 MB Notification: Performance of matching and sorting (n=1): time 0.000139/0.00737, allocations: 118.7 kB / 385.8 MB, free: 16.71 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.954e-05/0.007399, allocations: 77.23 kB / 385.8 MB, free: 16.62 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.329e-05/0.007422, allocations: 146.2 kB / 386 MB, free: 16.46 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.781e-06/0.007428, allocations: 25.7 kB / 386 MB, free: 16.43 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.333e-05/0.007441, allocations: 126.9 kB / 386.1 MB, free: 16.3 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.623e-05/0.007458, allocations: 0 / 386.1 MB, free: 16.3 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.146e-05/0.007479, allocations: 31.3 kB / 386.2 MB, free: 16.26 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.297e-05/0.007532, allocations: 0.4883 MB / 386.6 MB, free: 15.76 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.336e-05/0.007545, allocations: 29.7 kB / 386.7 MB, free: 15.73 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.617e-06/0.007554, allocations: 25.7 kB / 386.7 MB, free: 15.7 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.347e-05/0.007588, allocations: 63.09 kB / 386.8 MB, free: 15.62 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.007589, allocations: 4.062 kB / 386.8 MB, free: 15.61 MB / 314.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.558e-05/0.007635, allocations: 93.03 kB / 386.9 MB, free: 15.5 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.209e-05/0.007657, allocations: 29.7 kB / 386.9 MB, free: 15.47 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.849e-06/0.007662, allocations: 0 / 386.9 MB, free: 15.47 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.021e-05/0.007672, allocations: 0 / 386.9 MB, free: 15.47 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.463e-06/0.007673, allocations: 0 / 386.9 MB, free: 15.47 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.985e-06/0.007676, allocations: 0 / 386.9 MB, free: 15.47 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.018e-05/0.007687, allocations: 7.938 kB / 386.9 MB, free: 15.46 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.252e-06/0.007693, allocations: 0 / 386.9 MB, free: 15.46 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 4.806e-05/0.007741, allocations: 186.3 kB / 387.1 MB, free: 15.26 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.609e-06/0.007746, allocations: 4.375 kB / 387.1 MB, free: 15.26 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.768e-06/0.007755, allocations: 6.984 kB / 387.1 MB, free: 15.25 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.784e-06/0.007757, allocations: 0 / 387.1 MB, free: 15.25 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.214e-06/0.007759, allocations: 0 / 387.1 MB, free: 15.25 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/0.007763, allocations: 0 / 387.1 MB, free: 15.25 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.026e-05/0.007803, allocations: 97.2 kB / 387.2 MB, free: 15.13 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.61e-07/0.007804, allocations: 0 / 387.2 MB, free: 15.13 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.132e-06/0.007805, allocations: 4 kB / 387.2 MB, free: 15.13 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.61e-07/0.007805, allocations: 0 / 387.2 MB, free: 15.13 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.577e-06/0.007809, allocations: 0 / 387.2 MB, free: 15.13 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.00781, allocations: 4 kB / 387.2 MB, free: 15.12 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.007811, allocations: 4 kB / 387.2 MB, free: 15.12 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.776e-05/0.007869, allocations: 135.7 kB / 387.3 MB, free: 14.95 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.679e-06/0.007873, allocations: 4 kB / 387.3 MB, free: 14.95 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.938e-06/0.007883, allocations: 0 / 387.3 MB, free: 14.95 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.39e-06/0.007889, allocations: 4 kB / 387.3 MB, free: 14.95 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.254e-05/0.007901, allocations: 3.984 kB / 387.3 MB, free: 14.94 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.173e-06/0.007902, allocations: 0 / 387.3 MB, free: 14.94 MB / 314.7 MB Notification: Performance of sorting global known variables: time 1.568e-05/0.007918, allocations: 119.2 kB / 387.5 MB, free: 14.82 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007918, allocations: 0 / 387.5 MB, free: 14.82 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000255/0.008173, allocations: 159.5 kB / 387.6 MB, free: 14.67 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.0004852/0.008658, allocations: 431.8 kB / 388 MB, free: 14.24 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 7.819e-05/0.008736, allocations: 118.5 kB / 388.1 MB, free: 14.1 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.323e-06/0.008738, allocations: 0 / 388.1 MB, free: 14.1 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 2.152e-05/0.008759, allocations: 100.7 kB / 388.2 MB, free: 13.98 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.269e-05/0.008852, allocations: 13.64 kB / 388.3 MB, free: 13.96 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001426/0.008995, allocations: 103.6 kB / 388.4 MB, free: 13.83 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.016e-05/0.009015, allocations: 59.22 kB / 388.4 MB, free: 13.75 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 6.141e-06/0.009021, allocations: 4 kB / 388.4 MB, free: 13.75 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.711e-05/0.009048, allocations: 70.2 kB / 388.5 MB, free: 13.68 MB / 314.7 MB Notification: Performance of SimCode: time 5.51e-07/0.009049, allocations: 0 / 388.5 MB, free: 13.68 MB / 314.7 MB Notification: Performance of Templates: time 0.006168/0.01522, allocations: 6.095 MB / 394.6 MB, free: 7.578 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexOperations.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexOperations.sim & ./ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexOperations -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_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","",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.260491126216948]