Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.conf.json
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001605/0.001605, allocations: 105.1 kB / 21.23 MB, free: 0.6562 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001887/0.001887, allocations: 213.9 kB / 24.54 MB, free: 4.016 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.391/1.391, allocations: 230.3 MB / 258 MB, free: 8.258 MB / 206.1 MB
"
[Timeout remaining time 178]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2351/0.2351, allocations: 46.89 MB / 361.3 MB, free: 4.449 MB / 286.1 MB
"
[Timeout remaining time 180]
Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo)
Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo)
Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo)
Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo)
Running command: translateModel(ModelicaTest.Math.TestScalarFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions")
translateModel(ModelicaTest.Math.TestScalarFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.002208/0.002208, allocations: 83.84 kB / 0.497 GB, free: 7.609 MB / 366.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.3148/0.317, allocations: 66.03 MB / 0.5615 GB, free: 4.617 MB / 398.1 MB
Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001652/0.3187, allocations: 493 kB / 0.562 GB, free: 4.137 MB / 398.1 MB
Notification: Performance of NFInst.instExpressions: time 0.002299/0.321, allocations: 1.668 MB / 0.5636 GB, free: 2.453 MB / 398.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 2.596e-05/0.321, allocations: 4 kB / 0.5636 GB, free: 2.449 MB / 398.1 MB
Notification: Performance of NFTyping.typeComponents: time 1.566e-05/0.321, allocations: 0 / 0.5636 GB, free: 2.449 MB / 398.1 MB
Notification: Performance of NFTyping.typeBindings: time 5.5e-06/0.321, allocations: 0 / 0.5636 GB, free: 2.449 MB / 398.1 MB
[/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Math.mo:4:3-36:22:writable] Warning: Pure function 'ModelicaTest.Math.ScalarFunctions' contains a call to impure function 'Modelica.Utilities.Streams.print'.
Notification: Performance of NFTyping.typeClassSections: time 0.0006508/0.3217, allocations: 163.4 kB / 0.5638 GB, free: 2.289 MB / 398.1 MB
Notification: Performance of NFFlatten.flatten: time 4.886e-05/0.3217, allocations: 3.938 kB / 0.5638 GB, free: 2.285 MB / 398.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 4.061e-05/0.3218, allocations: 4 kB / 0.5638 GB, free: 2.281 MB / 398.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 1.484e-05/0.3218, allocations: 0 / 0.5638 GB, free: 2.281 MB / 398.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 2.146e-05/0.3218, allocations: 0 / 0.5638 GB, free: 2.281 MB / 398.1 MB
Notification: Performance of NFPackage.collectConstants: time 7.374e-06/0.3218, allocations: 0 / 0.5638 GB, free: 2.281 MB / 398.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.0003873/0.3222, allocations: 131.8 kB / 0.5639 GB, free: 2.152 MB / 398.1 MB
Notification: Performance of NFScalarize.scalarize: time 7.905e-06/0.3222, allocations: 0 / 0.5639 GB, free: 2.152 MB / 398.1 MB
Notification: Performance of NFVerifyModel.verify: time 1.768e-05/0.3222, allocations: 3.938 kB / 0.5639 GB, free: 2.148 MB / 398.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0001323/0.3223, allocations: 38.77 kB / 0.564 GB, free: 2.113 MB / 398.1 MB
Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.3224, allocations: 0 / 0.564 GB, free: 2.113 MB / 398.1 MB
Notification: Performance of FrontEnd: time 1.382e-06/0.3224, allocations: 4 kB / 0.564 GB, free: 2.109 MB / 398.1 MB
Notification: Performance of Transformations before backend: time 9.237e-06/0.3224, allocations: 0 / 0.564 GB, free: 2.109 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.0003378/0.3227, allocations: 275.7 kB / 0.5642 GB, free: 1.809 MB / 398.1 MB
Notification: Performance of prepare preOptimizeDAE: time 3.843e-05/0.3227, allocations: 8.031 kB / 0.5642 GB, free: 1.801 MB / 398.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 2.809e-05/0.3228, allocations: 4.938 kB / 0.5642 GB, free: 1.797 MB / 398.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 8.983e-05/0.3229, allocations: 110.5 kB / 0.5643 GB, free: 1.664 MB / 398.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.154e-05/0.3229, allocations: 384 / 0.5643 GB, free: 1.664 MB / 398.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 1.147e-05/0.3229, allocations: 384 / 0.5643 GB, free: 1.664 MB / 398.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001004/0.323, allocations: 34.02 kB / 0.5644 GB, free: 1.625 MB / 398.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 7.694e-06/0.323, allocations: 0 / 0.5644 GB, free: 1.625 MB / 398.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.554e-06/0.323, allocations: 0 / 0.5644 GB, free: 1.625 MB / 398.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.576e-06/0.323, allocations: 0 / 0.5644 GB, free: 1.625 MB / 398.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 1.957e-05/0.323, allocations: 3.938 kB / 0.5644 GB, free: 1.621 MB / 398.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001341/0.3232, allocations: 128.7 kB / 0.5645 GB, free: 1.453 MB / 398.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 4.569e-05/0.3232, allocations: 18.58 kB / 0.5645 GB, free: 1.426 MB / 398.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 1.48e-05/0.3232, allocations: 4.859 kB / 0.5645 GB, free: 1.418 MB / 398.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 8.977e-06/0.3232, allocations: 3.984 kB / 0.5645 GB, free: 1.414 MB / 398.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.032e-05/0.3233, allocations: 64.3 kB / 0.5646 GB, free: 1.336 MB / 398.1 MB
Notification: Performance of pre-optimization done (n=1): time 8.91e-07/0.3233, allocations: 0 / 0.5646 GB, free: 1.336 MB / 398.1 MB
Notification: Performance of matching and sorting (n=1): time 0.0001834/0.3235, allocations: 71.42 kB / 0.5647 GB, free: 1.254 MB / 398.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 5.937e-05/0.3235, allocations: 77.11 kB / 0.5647 GB, free: 1.16 MB / 398.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.418e-05/0.3236, allocations: 97.81 kB / 0.5648 GB, free: 1.055 MB / 398.1 MB
Notification: Performance of collectPreVariables (initialization): time 1.533e-05/0.3236, allocations: 25.7 kB / 0.5648 GB, free: 1.023 MB / 398.1 MB
Notification: Performance of collectInitialEqns (initialization): time 3.847e-05/0.3236, allocations: 80.14 kB / 0.5649 GB, free: 0.9414 MB / 398.1 MB
Notification: Performance of collectInitialBindings (initialization): time 2.115e-05/0.3236, allocations: 0 / 0.5649 GB, free: 0.9414 MB / 398.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 2.828e-05/0.3237, allocations: 13.72 kB / 0.5649 GB, free: 0.9219 MB / 398.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001361/0.3238, allocations: 314.8 kB / 0.5652 GB, free: 0.6055 MB / 398.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 1.334e-05/0.3238, allocations: 8.031 kB / 0.5652 GB, free: 0.5977 MB / 398.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 6.463e-06/0.3238, allocations: 4 kB / 0.5652 GB, free: 0.5938 MB / 398.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 5.044e-05/0.3239, allocations: 60.27 kB / 0.5653 GB, free: 0.5195 MB / 398.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.3239, allocations: 0 / 0.5653 GB, free: 0.5195 MB / 398.1 MB
Notification: Performance of matching and sorting (n=1) (initialization): time 7.73e-05/0.324, allocations: 63.34 kB / 0.5654 GB, free: 456 kB / 398.1 MB
Notification: Performance of prepare postOptimizeDAE: time 3.518e-05/0.324, allocations: 41.62 kB / 0.5654 GB, free: 408 kB / 398.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.137e-06/0.324, allocations: 0 / 0.5654 GB, free: 408 kB / 398.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 1.341e-05/0.324, allocations: 0 / 0.5654 GB, free: 408 kB / 398.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.91e-07/0.324, allocations: 0 / 0.5654 GB, free: 408 kB / 398.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.178e-06/0.324, allocations: 4.094 kB / 0.5654 GB, free: 404 kB / 398.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.615e-05/0.324, allocations: 0 / 0.5654 GB, free: 404 kB / 398.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.28e-06/0.324, allocations: 3.938 kB / 0.5654 GB, free: 400 kB / 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 9.56e-05/0.3241, allocations: 139.5 kB / 0.5655 GB, free: 244 kB / 398.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 8.966e-06/0.3241, allocations: 3.938 kB / 0.5656 GB, free: 240 kB / 398.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.217e-05/0.3242, allocations: 7 kB / 0.5656 GB, free: 232 kB / 398.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.72e-07/0.3242, allocations: 0 / 0.5656 GB, free: 232 kB / 398.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 3.256e-06/0.3242, allocations: 4 kB / 0.5656 GB, free: 228 kB / 398.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.3242, allocations: 3.984 kB / 0.5656 GB, free: 224 kB / 398.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.765e-05/0.3243, allocations: 116.8 kB / 0.5657 GB, free: 64 kB / 398.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.21e-07/0.3243, allocations: 0 / 0.5657 GB, free: 64 kB / 398.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.214e-06/0.3243, allocations: 4 kB / 0.5657 GB, free: 60 kB / 398.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 3.937e-06/0.3243, allocations: 3.938 kB / 0.5657 GB, free: 56 kB / 398.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.932e-06/0.3243, allocations: 4 kB / 0.5657 GB, free: 52 kB / 398.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.41e-07/0.3243, allocations: 0 / 0.5657 GB, free: 52 kB / 398.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.3243, allocations: 0 / 0.5657 GB, free: 52 kB / 398.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001184/0.3244, allocations: 94.77 kB / 0.5658 GB, free: 15.93 MB / 414.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 4.679e-06/0.3244, allocations: 4.031 kB / 0.5658 GB, free: 15.93 MB / 414.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.202e-05/0.3244, allocations: 3.938 kB / 0.5658 GB, free: 15.93 MB / 414.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.815e-06/0.3244, allocations: 0 / 0.5658 GB, free: 15.93 MB / 414.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 1.762e-05/0.3244, allocations: 4 kB / 0.5658 GB, free: 15.92 MB / 414.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.398e-06/0.3244, allocations: 3.984 kB / 0.5658 GB, free: 15.92 MB / 414.1 MB
Notification: Performance of sorting global known variables: time 3.222e-05/0.3245, allocations: 75.28 kB / 0.5659 GB, free: 15.84 MB / 414.1 MB
Notification: Performance of sort global known variables: time 7e-08/0.3245, allocations: 0 / 0.5659 GB, free: 15.84 MB / 414.1 MB
Notification: Performance of remove unused functions: time 0.0001984/0.3247, allocations: 15.94 kB / 0.5659 GB, free: 15.83 MB / 414.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.0003003/0.325, allocations: 139.1 kB / 0.566 GB, free: 15.69 MB / 414.1 MB
Notification: Performance of simCode: created initialization part: time 9.571e-05/0.3251, allocations: 55.41 kB / 0.5661 GB, free: 15.62 MB / 414.1 MB
Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.3251, allocations: 3.938 kB / 0.5661 GB, free: 15.62 MB / 414.1 MB
Notification: Performance of simCode: created simulation system equations: time 4.729e-05/0.3251, allocations: 55.41 kB / 0.5661 GB, free: 15.55 MB / 414.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001299/0.3252, allocations: 7.938 kB / 0.5661 GB, free: 15.54 MB / 414.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001755/0.3254, allocations: 89.06 kB / 0.5662 GB, free: 15.43 MB / 414.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003094/0.3257, allocations: 0.6769 MB / 0.5669 GB, free: 14.73 MB / 414.1 MB
Notification: Performance of simCode: alias equations: time 5.06e-06/0.3257, allocations: 0 / 0.5669 GB, free: 14.73 MB / 414.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 1.152e-05/0.3257, allocations: 11.38 kB / 0.5669 GB, free: 14.71 MB / 414.1 MB
Notification: Performance of SimCode: time 3.11e-07/0.3257, allocations: 0 / 0.5669 GB, free: 14.71 MB / 414.1 MB
Notification: Performance of Templates: time 0.00304/0.3288, allocations: 0.6577 MB / 0.5675 GB, free: 14.06 MB / 414.1 MB
"
[Timeout remaining time 660]
make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.makefile [Timeout 660]
(rm -f ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.sim & ./ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.pipe 2>&1) [Timeout 480]
diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/TestScalarFunctions/TestScalarFunctions.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.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: 4.746417306363583]