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.001379/0.001379, allocations: 83.59 kB / 21.18 MB, free: 3.383 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.001783/0.001783, allocations: 165 kB / 24.56 MB, free: 12 kB / 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.11/1.11, allocations: 177.1 MB / 205 MB, free: 5.633 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.276/0.276, allocations: 34.25 MB / 295.7 MB, free: 0.7461 MB / 266.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 2.033e-06/2.033e-06, allocations: 0 / 378 MB, free: 2.707 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.547e-05/2.75e-05, allocations: 2.312 kB / 378 MB, free: 2.703 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.001814/0.001842, allocations: 488.2 kB / 378.5 MB, free: 2.227 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.003309/0.005151, allocations: 2.369 MB / 380.8 MB, free: 15.84 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.282e-05/0.005174, allocations: 0 / 380.8 MB, free: 15.84 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 1.713e-05/0.005191, allocations: 0 / 380.8 MB, free: 15.84 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 6.943e-06/0.005198, allocations: 0 / 380.8 MB, free: 15.84 MB / 362.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.002512/0.007709, allocations: 1.117 MB / 382 MB, free: 14.71 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 5.617e-05/0.007765, allocations: 4 kB / 382 MB, free: 14.71 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.291e-05/0.007798, allocations: 0 / 382 MB, free: 14.71 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.14e-05/0.00783, allocations: 11.97 kB / 382 MB, free: 14.7 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.225e-05/0.007852, allocations: 0 / 382 MB, free: 14.7 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 8.186e-06/0.00786, allocations: 4 kB / 382 MB, free: 14.7 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001565/0.009425, allocations: 0.9909 MB / 383 MB, free: 13.7 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 1.127e-05/0.009437, allocations: 3.938 kB / 383 MB, free: 13.7 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 2.183e-05/0.009458, allocations: 4 kB / 383 MB, free: 13.7 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007539/0.01021, allocations: 0.5261 MB / 383.5 MB, free: 13.17 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.01022, allocations: 0 / 383.5 MB, free: 13.17 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.202e-06/0.01022, allocations: 0 / 383.5 MB, free: 13.17 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.558e-06/0.01022, allocations: 4 kB / 383.5 MB, free: 13.16 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.0004308/0.01065, allocations: 469.2 kB / 384 MB, free: 12.66 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.41e-05/0.0107, allocations: 15.97 kB / 384 MB, free: 12.65 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.103e-05/0.01074, allocations: 0.9375 kB / 384 MB, free: 12.65 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.422e-05/0.0108, allocations: 108.6 kB / 384.1 MB, free: 12.52 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.08e-05/0.01081, allocations: 384 / 384.1 MB, free: 12.52 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.297e-06/0.01082, allocations: 4.375 kB / 384.1 MB, free: 12.51 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.479e-05/0.01092, allocations: 55.97 kB / 384.1 MB, free: 12.45 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.588e-06/0.01093, allocations: 192 / 384.1 MB, free: 12.45 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.006e-05/0.01094, allocations: 4.312 kB / 384.1 MB, free: 12.44 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.175e-06/0.01094, allocations: 11.94 kB / 384.2 MB, free: 12.43 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.043e-05/0.01096, allocations: 25.7 kB / 384.2 MB, free: 12.4 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001053/0.01107, allocations: 112.6 kB / 384.3 MB, free: 12.25 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.335e-05/0.01112, allocations: 52.7 kB / 384.3 MB, free: 12.18 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.336e-05/0.01115, allocations: 33.48 kB / 384.4 MB, free: 12.14 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.859e-06/0.01115, allocations: 4 kB / 384.4 MB, free: 12.14 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.622e-05/0.0112, allocations: 63.09 kB / 384.4 MB, free: 12.06 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 1.192e-06/0.0112, allocations: 0 / 384.4 MB, free: 12.06 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.000195/0.01139, allocations: 114.8 kB / 384.6 MB, free: 11.92 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.019e-05/0.01144, allocations: 89.11 kB / 384.6 MB, free: 11.82 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.746e-05/0.01149, allocations: 146.2 kB / 384.8 MB, free: 11.66 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.064e-05/0.0115, allocations: 25.7 kB / 384.8 MB, free: 11.63 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.229e-05/0.01153, allocations: 126.9 kB / 384.9 MB, free: 11.5 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.069e-05/0.01156, allocations: 4.344 kB / 384.9 MB, free: 11.5 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.62e-05/0.01159, allocations: 19.38 kB / 385 MB, free: 11.47 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001312/0.01172, allocations: 496.1 kB / 385.4 MB, free: 10.97 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.458e-05/0.01175, allocations: 25.7 kB / 385.5 MB, free: 10.94 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.616e-05/0.01176, allocations: 29.7 kB / 385.5 MB, free: 10.91 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.673e-05/0.01181, allocations: 59.09 kB / 385.6 MB, free: 10.83 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.01181, allocations: 8.062 kB / 385.6 MB, free: 10.82 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.155e-05/0.01189, allocations: 96.98 kB / 385.7 MB, free: 10.71 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.262e-05/0.01193, allocations: 35.42 kB / 385.7 MB, free: 10.67 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.999e-06/0.01193, allocations: 0 / 385.7 MB, free: 10.67 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.274e-05/0.01194, allocations: 0 / 385.7 MB, free: 10.67 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.687e-06/0.01195, allocations: 0 / 385.7 MB, free: 10.67 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.592e-06/0.01195, allocations: 3.938 kB / 385.7 MB, free: 10.67 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.461e-05/0.01197, allocations: 0 / 385.7 MB, free: 10.67 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.923e-06/0.01198, allocations: 4 kB / 385.7 MB, free: 10.66 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 8.695e-05/0.01206, allocations: 178.3 kB / 385.9 MB, free: 10.47 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.087e-05/0.01207, allocations: 12.02 kB / 385.9 MB, free: 10.46 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.066e-05/0.01208, allocations: 7 kB / 385.9 MB, free: 10.46 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.834e-06/0.01209, allocations: 0 / 385.9 MB, free: 10.46 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.01209, allocations: 3.984 kB / 385.9 MB, free: 10.45 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.526e-06/0.01209, allocations: 3.938 kB / 385.9 MB, free: 10.45 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.949e-05/0.01216, allocations: 116.6 kB / 386 MB, free: 10.3 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.422e-06/0.01217, allocations: 3.938 kB / 386 MB, free: 10.3 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.21e-07/0.01217, allocations: 0 / 386 MB, free: 10.3 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.573e-06/0.01217, allocations: 0 / 386 MB, free: 10.3 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.243e-06/0.01217, allocations: 0 / 386 MB, free: 10.3 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.01218, allocations: 0 / 386 MB, free: 10.3 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.01218, allocations: 4 kB / 386 MB, free: 10.29 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001112/0.01229, allocations: 139.7 kB / 386.2 MB, free: 10.12 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.04e-06/0.01229, allocations: 0 / 386.2 MB, free: 10.12 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.81e-05/0.01231, allocations: 3.984 kB / 386.2 MB, free: 10.12 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.296e-06/0.01232, allocations: 0 / 386.2 MB, free: 10.12 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.374e-05/0.01233, allocations: 4 kB / 386.2 MB, free: 10.11 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.436e-06/0.01234, allocations: 0 / 386.2 MB, free: 10.11 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.648e-05/0.01237, allocations: 123.1 kB / 386.3 MB, free: 9.992 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01237, allocations: 0 / 386.3 MB, free: 9.992 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004528/0.01283, allocations: 159.5 kB / 386.4 MB, free: 9.836 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.0007601/0.01359, allocations: 421 kB / 386.9 MB, free: 9.422 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001128/0.0137, allocations: 122.5 kB / 387 MB, free: 9.273 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.983e-06/0.0137, allocations: 0 / 387 MB, free: 9.273 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.68e-05/0.01374, allocations: 92.73 kB / 387.1 MB, free: 9.16 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001274/0.01387, allocations: 4 kB / 387.1 MB, free: 9.156 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002117/0.01408, allocations: 117.6 kB / 387.2 MB, free: 9.004 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.416e-05/0.01411, allocations: 51.36 kB / 387.2 MB, free: 8.934 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.571e-06/0.01412, allocations: 0 / 387.2 MB, free: 8.934 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.396e-05/0.01413, allocations: 12.5 kB / 387.2 MB, free: 8.922 MB / 362.7 MB Notification: Performance of SimCode: time 9.62e-07/0.01413, allocations: 0 / 387.2 MB, free: 8.922 MB / 362.7 MB Notification: Performance of Templates: time 0.01328/0.02742, allocations: 7.481 MB / 394.7 MB, free: 1.434 MB / 362.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.381120815873146]