Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.001839/0.001839, allocations: 91.61 kB / 20.96 MB, free: 3.465 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.00197/0.00197, allocations: 169.3 kB / 24.28 MB, free: 152 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.664/1.664, allocations: 177.1 MB / 204.6 MB, free: 5.602 MB / 186.7 MB " [Timeout remaining time 178] 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.4024/0.4024, allocations: 34.26 MB / 295.3 MB, free: 0.6836 MB / 266.7 MB " [Timeout remaining time 179] 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.TestComplexFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions") translateModel(ModelicaTest.ComplexMath.TestComplexFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.204e-06/2.204e-06, allocations: 0 / 377.2 MB, free: 3.023 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 4.138e-05/4.358e-05, allocations: 2.312 kB / 377.2 MB, free: 3.02 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.002407/0.002451, allocations: 481.1 kB / 377.7 MB, free: 2.547 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.00648/0.008931, allocations: 2.334 MB / 380 MB, free: 196 kB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.051e-05/0.008971, allocations: 0 / 380 MB, free: 196 kB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.683e-05/0.008988, allocations: 4 kB / 380.1 MB, free: 192 kB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 1.112e-05/0.008999, allocations: 3.938 kB / 380.1 MB, free: 188 kB / 346.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.004959/0.01396, allocations: 1.117 MB / 381.2 MB, free: 15.06 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 6.2e-05/0.01402, allocations: 0 / 381.2 MB, free: 15.06 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.165e-05/0.01407, allocations: 3.984 kB / 381.2 MB, free: 15.06 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.18e-05/0.01411, allocations: 4 kB / 381.2 MB, free: 15.05 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.983e-05/0.01414, allocations: 4 kB / 381.2 MB, free: 15.05 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 1.006e-05/0.01415, allocations: 0 / 381.2 MB, free: 15.05 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002897/0.01705, allocations: 0.9791 MB / 382.2 MB, free: 14.07 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 1.402e-05/0.01706, allocations: 0 / 382.2 MB, free: 14.07 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 4.175e-05/0.01711, allocations: 3.938 kB / 382.2 MB, free: 14.07 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001456/0.01856, allocations: 0.5338 MB / 382.7 MB, free: 13.53 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.833e-06/0.01857, allocations: 0 / 382.7 MB, free: 13.53 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.923e-06/0.01857, allocations: 0 / 382.7 MB, free: 13.53 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.086e-05/0.01858, allocations: 3.984 kB / 382.7 MB, free: 13.53 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.0008072/0.01939, allocations: 473.2 kB / 383.2 MB, free: 13.02 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.236e-05/0.01945, allocations: 12.03 kB / 383.2 MB, free: 13.01 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.195e-05/0.01951, allocations: 0.9375 kB / 383.2 MB, free: 13.01 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001508/0.01966, allocations: 104.6 kB / 383.3 MB, free: 12.88 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.883e-05/0.01968, allocations: 384 / 383.3 MB, free: 12.88 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.482e-05/0.0197, allocations: 4.375 kB / 383.3 MB, free: 12.88 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001614/0.01986, allocations: 51.97 kB / 383.3 MB, free: 12.82 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.26e-05/0.01987, allocations: 192 / 383.3 MB, free: 12.82 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.114e-05/0.01988, allocations: 384 / 383.3 MB, free: 12.82 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.197e-06/0.01989, allocations: 7.938 kB / 383.3 MB, free: 12.81 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.261e-05/0.01995, allocations: 41.56 kB / 383.4 MB, free: 12.76 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002137/0.02017, allocations: 112.7 kB / 383.5 MB, free: 12.62 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000116/0.02028, allocations: 48.77 kB / 383.5 MB, free: 12.55 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.729e-05/0.02034, allocations: 37.45 kB / 383.6 MB, free: 12.5 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.378e-05/0.02036, allocations: 0 / 383.6 MB, free: 12.5 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.549e-05/0.02044, allocations: 59.09 kB / 383.6 MB, free: 12.43 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 1.152e-06/0.02044, allocations: 0 / 383.6 MB, free: 12.43 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0003473/0.02079, allocations: 122.7 kB / 383.8 MB, free: 12.29 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001072/0.0209, allocations: 85.05 kB / 383.8 MB, free: 12.18 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001323/0.02103, allocations: 142.2 kB / 384 MB, free: 12.03 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.679e-05/0.02106, allocations: 25.83 kB / 384 MB, free: 12 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001126/0.02117, allocations: 130.9 kB / 384.1 MB, free: 11.87 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.238e-05/0.0212, allocations: 4 kB / 384.1 MB, free: 11.86 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.117e-05/0.02126, allocations: 23.36 kB / 384.2 MB, free: 11.83 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0003527/0.02161, allocations: 492.1 kB / 384.6 MB, free: 11.34 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.813e-05/0.02165, allocations: 25.7 kB / 384.7 MB, free: 11.31 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.41e-05/0.02169, allocations: 29.7 kB / 384.7 MB, free: 11.27 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001011/0.02179, allocations: 67.09 kB / 384.8 MB, free: 11.19 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.424e-06/0.02179, allocations: 0 / 384.8 MB, free: 11.19 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.000163/0.02195, allocations: 93.12 kB / 384.9 MB, free: 11.08 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.362e-05/0.02201, allocations: 33.7 kB / 384.9 MB, free: 11.04 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.02201, allocations: 0 / 384.9 MB, free: 11.04 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.852e-05/0.02203, allocations: 0 / 384.9 MB, free: 11.04 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.673e-06/0.02203, allocations: 4 kB / 384.9 MB, free: 11.04 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.34e-05/0.02205, allocations: 3.938 kB / 384.9 MB, free: 11.04 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.228e-05/0.02207, allocations: 0 / 384.9 MB, free: 11.04 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.604e-06/0.02208, allocations: 0 / 384.9 MB, free: 11.04 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.0002064/0.02228, allocations: 186.3 kB / 385.1 MB, free: 10.84 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.127e-05/0.0223, allocations: 7.953 kB / 385.1 MB, free: 10.83 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.252e-05/0.02232, allocations: 3 kB / 385.1 MB, free: 10.83 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.964e-06/0.02232, allocations: 4 kB / 385.1 MB, free: 10.82 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.147e-06/0.02232, allocations: 0 / 385.1 MB, free: 10.82 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.863e-06/0.02233, allocations: 7.938 kB / 385.1 MB, free: 10.82 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001498/0.02248, allocations: 108.6 kB / 385.2 MB, free: 10.68 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.02248, allocations: 0 / 385.2 MB, free: 10.68 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.102e-06/0.02248, allocations: 0 / 385.2 MB, free: 10.68 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.02248, allocations: 3.938 kB / 385.2 MB, free: 10.67 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.186e-05/0.0225, allocations: 4 kB / 385.2 MB, free: 10.67 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.879e-06/0.0225, allocations: 3.984 kB / 385.2 MB, free: 10.66 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.905e-06/0.02251, allocations: 7.922 kB / 385.2 MB, free: 10.66 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002357/0.02274, allocations: 131.8 kB / 385.3 MB, free: 10.49 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.928e-06/0.02275, allocations: 3.984 kB / 385.4 MB, free: 10.49 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.153e-05/0.02278, allocations: 4 kB / 385.4 MB, free: 10.48 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.334e-05/0.02279, allocations: 0 / 385.4 MB, free: 10.48 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.032e-05/0.02281, allocations: 0 / 385.4 MB, free: 10.48 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.376e-06/0.02281, allocations: 0 / 385.4 MB, free: 10.48 MB / 362.7 MB Notification: Performance of sorting global known variables: time 9.032e-05/0.0229, allocations: 123.1 kB / 385.5 MB, free: 10.36 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.0229, allocations: 0 / 385.5 MB, free: 10.36 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008462/0.02375, allocations: 159.5 kB / 385.6 MB, free: 10.21 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.001337/0.02509, allocations: 422.2 kB / 386 MB, free: 9.797 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002322/0.02532, allocations: 126.4 kB / 386.2 MB, free: 9.645 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.02532, allocations: 0 / 386.2 MB, free: 9.645 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000108/0.02543, allocations: 96.86 kB / 386.3 MB, free: 9.527 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002112/0.02564, allocations: 0 / 386.3 MB, free: 9.527 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003632/0.026, allocations: 117.6 kB / 386.4 MB, free: 9.375 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.68e-05/0.02608, allocations: 51.36 kB / 386.4 MB, free: 9.305 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 7.404e-06/0.02609, allocations: 0 / 386.4 MB, free: 9.305 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.391e-05/0.02611, allocations: 12.5 kB / 386.4 MB, free: 9.293 MB / 362.7 MB Notification: Performance of SimCode: time 7.22e-07/0.02611, allocations: 0 / 386.4 MB, free: 9.293 MB / 362.7 MB Notification: Performance of Templates: time 0.01544/0.04156, allocations: 4.727 MB / 391.2 MB, free: 4.562 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions.sim & ./ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/ComplexMath/TestComplexFunctions/TestComplexFunctions.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions.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.390421353047714]