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.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001568/0.001568, allocations: 104.6 kB / 21.22 MB, free: 0.6758 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002072/0.002072, allocations: 189.2 kB / 24.51 MB, free: 4.047 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.551/1.551, allocations: 225.6 MB / 253.3 MB, free: 13 MB / 206.1 MB
"
[Timeout remaining time 178]
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.2279/0.2279, allocations: 44.91 MB / 353.5 MB, free: 11.81 MB / 286.1 MB
"
[Timeout remaining time 179]
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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo)
Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo)
Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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 0.002068/0.002068, allocations: 71.88 kB / 497.7 MB, free: 1.031 MB / 350.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.4973/0.4994, allocations: 64.3 MB / 0.5488 GB, free: 13.13 MB / 398.1 MB
Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.001988/0.5013, allocations: 480 kB / 0.5493 GB, free: 12.79 MB / 398.1 MB
Notification: Performance of NFInst.instExpressions: time 0.004313/0.5057, allocations: 2.324 MB / 0.5515 GB, free: 10.97 MB / 398.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 3.418e-05/0.5057, allocations: 0 / 0.5515 GB, free: 10.97 MB / 398.1 MB
Notification: Performance of NFTyping.typeComponents: time 1.752e-05/0.5057, allocations: 0 / 0.5515 GB, free: 10.97 MB / 398.1 MB
Notification: Performance of NFTyping.typeBindings: time 8.125e-06/0.5057, allocations: 1.25 kB / 0.5515 GB, free: 10.97 MB / 398.1 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.003824/0.5095, allocations: 1.138 MB / 0.5526 GB, free: 10.19 MB / 398.1 MB
Notification: Performance of NFFlatten.flatten: time 7.635e-05/0.5096, allocations: 1.156 kB / 0.5526 GB, free: 10.19 MB / 398.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 6.162e-05/0.5097, allocations: 1.312 kB / 0.5526 GB, free: 10.19 MB / 398.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 2.511e-05/0.5097, allocations: 0 / 0.5526 GB, free: 10.19 MB / 398.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 3.095e-05/0.5097, allocations: 1.062 kB / 0.5526 GB, free: 10.19 MB / 398.1 MB
Notification: Performance of NFPackage.collectConstants: time 8.446e-06/0.5097, allocations: 0 / 0.5526 GB, free: 10.19 MB / 398.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.002396/0.5121, allocations: 1.002 MB / 0.5536 GB, free: 9.703 MB / 398.1 MB
Notification: Performance of NFScalarize.scalarize: time 1.039e-05/0.5122, allocations: 0 / 0.5536 GB, free: 9.703 MB / 398.1 MB
Notification: Performance of NFVerifyModel.verify: time 2.792e-05/0.5122, allocations: 1.25 kB / 0.5536 GB, free: 9.703 MB / 398.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.000807/0.513, allocations: 420.6 kB / 0.554 GB, free: 9.461 MB / 398.1 MB
Notification: Performance of FrontEnd - DAE generated: time 5.73e-06/0.513, allocations: 0 / 0.554 GB, free: 9.461 MB / 398.1 MB
Notification: Performance of FrontEnd: time 2.274e-06/0.513, allocations: 5.062 kB / 0.554 GB, free: 9.457 MB / 398.1 MB
Notification: Performance of Transformations before backend: time 1.472e-05/0.513, allocations: 0 / 0.554 GB, free: 9.457 MB / 398.1 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.000573/0.5136, allocations: 352.5 kB / 0.5544 GB, free: 9.113 MB / 398.1 MB
Notification: Performance of prepare preOptimizeDAE: time 6.471e-05/0.5136, allocations: 10.02 kB / 0.5544 GB, free: 9.113 MB / 398.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 4.705e-05/0.5137, allocations: 4.875 kB / 0.5544 GB, free: 9.109 MB / 398.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001355/0.5138, allocations: 112 kB / 0.5545 GB, free: 8.977 MB / 398.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.18e-05/0.5139, allocations: 1.594 kB / 0.5545 GB, free: 8.977 MB / 398.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 1.751e-05/0.5139, allocations: 1.562 kB / 0.5545 GB, free: 8.977 MB / 398.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001522/0.514, allocations: 43.45 kB / 0.5545 GB, free: 8.93 MB / 398.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.145e-05/0.514, allocations: 0 / 0.5545 GB, free: 8.93 MB / 398.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.137e-05/0.514, allocations: 0.7188 kB / 0.5545 GB, free: 8.93 MB / 398.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.143e-05/0.5141, allocations: 1.562 kB / 0.5545 GB, free: 8.93 MB / 398.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 2.455e-05/0.5141, allocations: 0 / 0.5545 GB, free: 8.93 MB / 398.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000206/0.5143, allocations: 115.4 kB / 0.5546 GB, free: 8.777 MB / 398.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 7.858e-05/0.5144, allocations: 27.73 kB / 0.5547 GB, free: 8.742 MB / 398.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 3.068e-05/0.5144, allocations: 13.97 kB / 0.5547 GB, free: 8.727 MB / 398.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 1.217e-05/0.5144, allocations: 1.531 kB / 0.5547 GB, free: 8.727 MB / 398.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.585e-05/0.5145, allocations: 60.2 kB / 0.5547 GB, free: 8.652 MB / 398.1 MB
Notification: Performance of pre-optimization done (n=1): time 8.22e-07/0.5145, allocations: 4.781 kB / 0.5547 GB, free: 8.648 MB / 398.1 MB
Notification: Performance of matching and sorting (n=1): time 0.000255/0.5147, allocations: 59.47 kB / 0.5548 GB, free: 8.586 MB / 398.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 9.015e-05/0.5148, allocations: 81.23 kB / 0.5549 GB, free: 8.488 MB / 398.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.927e-05/0.5149, allocations: 97.84 kB / 0.555 GB, free: 8.383 MB / 398.1 MB
Notification: Performance of collectPreVariables (initialization): time 1.933e-05/0.5149, allocations: 27.14 kB / 0.555 GB, free: 8.352 MB / 398.1 MB
Notification: Performance of collectInitialEqns (initialization): time 5.699e-05/0.515, allocations: 80.14 kB / 0.5551 GB, free: 8.27 MB / 398.1 MB
Notification: Performance of collectInitialBindings (initialization): time 2.254e-05/0.515, allocations: 0 / 0.5551 GB, free: 8.27 MB / 398.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 2.889e-05/0.515, allocations: 12.56 kB / 0.5551 GB, free: 8.254 MB / 398.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001793/0.5152, allocations: 311.9 kB / 0.5554 GB, free: 7.941 MB / 398.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 9.427e-06/0.5152, allocations: 0 / 0.5554 GB, free: 7.941 MB / 398.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 7.875e-06/0.5152, allocations: 9.5 kB / 0.5554 GB, free: 7.934 MB / 398.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 6.388e-05/0.5153, allocations: 64.02 kB / 0.5554 GB, free: 7.859 MB / 398.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.5153, allocations: 0 / 0.5554 GB, free: 7.859 MB / 398.1 MB
Notification: Performance of matching and sorting (n=1) (initialization): time 8.948e-05/0.5154, allocations: 62.2 kB / 0.5555 GB, free: 7.793 MB / 398.1 MB
Notification: Performance of prepare postOptimizeDAE: time 4.57e-05/0.5154, allocations: 35.36 kB / 0.5555 GB, free: 7.758 MB / 398.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.581e-06/0.5154, allocations: 0 / 0.5555 GB, free: 7.758 MB / 398.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 1.876e-05/0.5155, allocations: 1.125 kB / 0.5555 GB, free: 7.758 MB / 398.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.71e-07/0.5155, allocations: 0 / 0.5555 GB, free: 7.758 MB / 398.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.93e-06/0.5155, allocations: 0 / 0.5555 GB, free: 7.758 MB / 398.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.031e-05/0.5155, allocations: 5.188 kB / 0.5555 GB, free: 7.754 MB / 398.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.435e-06/0.5155, allocations: 1.344 kB / 0.5555 GB, free: 7.754 MB / 398.1 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.0001207/0.5156, allocations: 141.8 kB / 0.5557 GB, free: 7.602 MB / 398.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 1.201e-05/0.5156, allocations: 15.77 kB / 0.5557 GB, free: 7.586 MB / 398.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.091e-05/0.5156, allocations: 12.42 kB / 0.5557 GB, free: 7.57 MB / 398.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.223e-06/0.5156, allocations: 0 / 0.5557 GB, free: 7.57 MB / 398.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.5156, allocations: 0 / 0.5557 GB, free: 7.57 MB / 398.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.988e-06/0.5156, allocations: 1.656 kB / 0.5557 GB, free: 7.57 MB / 398.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001248/0.5158, allocations: 118.1 kB / 0.5558 GB, free: 7.414 MB / 398.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.5158, allocations: 4 kB / 0.5558 GB, free: 7.41 MB / 398.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.808e-06/0.5158, allocations: 3.984 kB / 0.5558 GB, free: 7.406 MB / 398.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 4.128e-06/0.5158, allocations: 5.188 kB / 0.5558 GB, free: 7.402 MB / 398.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.134e-05/0.5158, allocations: 1.375 kB / 0.5558 GB, free: 7.402 MB / 398.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.81e-07/0.5158, allocations: 0 / 0.5558 GB, free: 7.402 MB / 398.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.233e-06/0.5158, allocations: 0 / 0.5558 GB, free: 7.402 MB / 398.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000163/0.516, allocations: 86.12 kB / 0.5559 GB, free: 7.305 MB / 398.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 1.282e-05/0.516, allocations: 5.078 kB / 0.5559 GB, free: 7.301 MB / 398.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.048e-05/0.516, allocations: 9 kB / 0.5559 GB, free: 7.293 MB / 398.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.507e-06/0.516, allocations: 0 / 0.5559 GB, free: 7.293 MB / 398.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 2.427e-05/0.516, allocations: 1.188 kB / 0.5559 GB, free: 7.293 MB / 398.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.288e-06/0.516, allocations: 1.312 kB / 0.5559 GB, free: 7.293 MB / 398.1 MB
Notification: Performance of sorting global known variables: time 4.911e-05/0.5161, allocations: 75.28 kB / 0.556 GB, free: 7.219 MB / 398.1 MB
Notification: Performance of sort global known variables: time 8.1e-08/0.5161, allocations: 3.938 kB / 0.556 GB, free: 7.215 MB / 398.1 MB
Notification: Performance of remove unused functions: time 0.0007895/0.5169, allocations: 154.9 kB / 0.5562 GB, free: 7.156 MB / 398.1 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.001229/0.5181, allocations: 366.6 kB / 0.5565 GB, free: 6.953 MB / 398.1 MB
Notification: Performance of simCode: created initialization part: time 0.0001524/0.5183, allocations: 57.31 kB / 0.5566 GB, free: 6.891 MB / 398.1 MB
Notification: Performance of simCode: created event and clocks part: time 3.396e-06/0.5183, allocations: 0 / 0.5566 GB, free: 6.891 MB / 398.1 MB
Notification: Performance of simCode: created simulation system equations: time 5.446e-05/0.5183, allocations: 62.11 kB / 0.5566 GB, free: 6.82 MB / 398.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001887/0.5185, allocations: 9.219 kB / 0.5566 GB, free: 6.816 MB / 398.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002255/0.5187, allocations: 71.45 kB / 0.5567 GB, free: 6.727 MB / 398.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000369/0.5191, allocations: 0.6739 MB / 0.5574 GB, free: 6.027 MB / 398.1 MB
Notification: Performance of simCode: alias equations: time 7.213e-06/0.5191, allocations: 1.062 kB / 0.5574 GB, free: 6.027 MB / 398.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 1.707e-05/0.5191, allocations: 8.594 kB / 0.5574 GB, free: 6.02 MB / 398.1 MB
Notification: Performance of SimCode: time 3.01e-07/0.5191, allocations: 0 / 0.5574 GB, free: 6.02 MB / 398.1 MB
Notification: Performance of Templates: time 0.009707/0.5288, allocations: 4.309 MB / 0.5616 GB, free: 1.938 MB / 398.1 MB
"
[Timeout remaining time 659]
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=480  -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe 2>&1) [Timeout 480]
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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.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.653827193193138]