Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.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.001429/0.001429, allocations: 106 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.001456/0.001456, allocations: 189.2 kB / 24.51 MB, free: 4.051 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.537/1.537, allocations: 225.6 MB / 253.3 MB, free: 13.03 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.262/0.262, allocations: 44.9 MB / 353.5 MB, free: 11.86 MB / 286.1 MB
"
[Timeout remaining time 180]
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.Math.TestScalarFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions")
translateModel(ModelicaTest.Math.TestScalarFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.002778/0.002778, allocations: 79.86 kB / 497.7 MB, free: 1.059 MB / 350.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.3459/0.3486, allocations: 64.28 MB / 0.5488 GB, free: 13.16 MB / 398.1 MB
Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001544/0.3502, allocations: 0.4962 MB / 0.5493 GB, free: 12.79 MB / 398.1 MB
Notification: Performance of NFInst.instExpressions: time 0.002049/0.3522, allocations: 1.413 MB / 0.5507 GB, free: 11.67 MB / 398.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 2.117e-05/0.3522, allocations: 0 / 0.5507 GB, free: 11.67 MB / 398.1 MB
Notification: Performance of NFTyping.typeComponents: time 1.498e-05/0.3523, allocations: 0 / 0.5507 GB, free: 11.67 MB / 398.1 MB
Notification: Performance of NFTyping.typeBindings: time 5.079e-06/0.3523, allocations: 1.469 kB / 0.5507 GB, free: 11.67 MB / 398.1 MB
[/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/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.0005032/0.3528, allocations: 111 kB / 0.5508 GB, free: 11.6 MB / 398.1 MB
Notification: Performance of NFFlatten.flatten: time 5.482e-05/0.3528, allocations: 1.531 kB / 0.5508 GB, free: 11.6 MB / 398.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 4.88e-05/0.3529, allocations: 5.344 kB / 0.5508 GB, free: 11.59 MB / 398.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 2.356e-05/0.3529, allocations: 9.641 kB / 0.5508 GB, free: 11.59 MB / 398.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 2.387e-05/0.3529, allocations: 0 / 0.5508 GB, free: 11.59 MB / 398.1 MB
Notification: Performance of NFPackage.collectConstants: time 8.406e-06/0.3529, allocations: 4 kB / 0.5508 GB, free: 11.58 MB / 398.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.000296/0.3532, allocations: 67.09 kB / 0.5508 GB, free: 11.55 MB / 398.1 MB
Notification: Performance of NFScalarize.scalarize: time 7.684e-06/0.3532, allocations: 0 / 0.5508 GB, free: 11.55 MB / 398.1 MB
Notification: Performance of NFVerifyModel.verify: time 1.667e-05/0.3532, allocations: 1.062 kB / 0.5509 GB, free: 11.55 MB / 398.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0001104/0.3534, allocations: 26.17 kB / 0.5509 GB, free: 11.54 MB / 398.1 MB
Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.3534, allocations: 1.25 kB / 0.5509 GB, free: 11.54 MB / 398.1 MB
Notification: Performance of FrontEnd: time 1.282e-06/0.3534, allocations: 0 / 0.5509 GB, free: 11.54 MB / 398.1 MB
Notification: Performance of Transformations before backend: time 4.809e-06/0.3534, allocations: 4 kB / 0.5509 GB, free: 11.53 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.0002953/0.3537, allocations: 262.5 kB / 0.5511 GB, free: 11.25 MB / 398.1 MB
Notification: Performance of prepare preOptimizeDAE: time 3.647e-05/0.3537, allocations: 17.72 kB / 0.5511 GB, free: 11.24 MB / 398.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 2.59e-05/0.3537, allocations: 2 kB / 0.5511 GB, free: 11.24 MB / 398.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 7.909e-05/0.3538, allocations: 107.7 kB / 0.5513 GB, free: 11.11 MB / 398.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.367e-05/0.3538, allocations: 5.453 kB / 0.5513 GB, free: 11.11 MB / 398.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 1.038e-05/0.3538, allocations: 1.469 kB / 0.5513 GB, free: 11.11 MB / 398.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 8.777e-05/0.3539, allocations: 32.27 kB / 0.5513 GB, free: 11.07 MB / 398.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.087e-05/0.3539, allocations: 4 kB / 0.5513 GB, free: 11.07 MB / 398.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.095e-06/0.3539, allocations: 0 / 0.5513 GB, free: 11.07 MB / 398.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.849e-06/0.3539, allocations: 1.031 kB / 0.5513 GB, free: 11.07 MB / 398.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 1.831e-05/0.354, allocations: 8.812 kB / 0.5513 GB, free: 11.06 MB / 398.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001318/0.3541, allocations: 118.7 kB / 0.5514 GB, free: 10.91 MB / 398.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 4.499e-05/0.3541, allocations: 20.67 kB / 0.5514 GB, free: 10.88 MB / 398.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 1.408e-05/0.3541, allocations: 6.016 kB / 0.5514 GB, free: 10.87 MB / 398.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 6.392e-06/0.3542, allocations: 0 / 0.5514 GB, free: 10.87 MB / 398.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.898e-05/0.3542, allocations: 65.08 kB / 0.5515 GB, free: 10.79 MB / 398.1 MB
Notification: Performance of pre-optimization done (n=1): time 9.31e-07/0.3542, allocations: 1.156 kB / 0.5515 GB, free: 10.79 MB / 398.1 MB
Notification: Performance of matching and sorting (n=1): time 0.0001741/0.3544, allocations: 66.39 kB / 0.5516 GB, free: 10.72 MB / 398.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 6.114e-05/0.3544, allocations: 78.02 kB / 0.5516 GB, free: 10.63 MB / 398.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.944e-05/0.3545, allocations: 93.86 kB / 0.5517 GB, free: 10.53 MB / 398.1 MB
Notification: Performance of collectPreVariables (initialization): time 1.453e-05/0.3545, allocations: 26.8 kB / 0.5518 GB, free: 10.5 MB / 398.1 MB
Notification: Performance of collectInitialEqns (initialization): time 3.252e-05/0.3545, allocations: 80.14 kB / 0.5518 GB, free: 10.41 MB / 398.1 MB
Notification: Performance of collectInitialBindings (initialization): time 1.54e-05/0.3546, allocations: 4.844 kB / 0.5518 GB, free: 10.41 MB / 398.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 2.825e-05/0.3546, allocations: 16 kB / 0.5519 GB, free: 10.39 MB / 398.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001277/0.3547, allocations: 310.8 kB / 0.5522 GB, free: 10.08 MB / 398.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 8.857e-06/0.3547, allocations: 1.094 kB / 0.5522 GB, free: 10.08 MB / 398.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 5.269e-06/0.3547, allocations: 1.062 kB / 0.5522 GB, free: 10.08 MB / 398.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 6.189e-05/0.3548, allocations: 67.66 kB / 0.5522 GB, free: 10 MB / 398.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.372e-06/0.3548, allocations: 0 / 0.5522 GB, free: 10 MB / 398.1 MB
Notification: Performance of matching and sorting (n=1) (initialization): time 7.34e-05/0.3549, allocations: 62.56 kB / 0.5523 GB, free: 9.938 MB / 398.1 MB
Notification: Performance of prepare postOptimizeDAE: time 3.77e-05/0.3549, allocations: 39.7 kB / 0.5523 GB, free: 9.898 MB / 398.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.606e-06/0.3549, allocations: 0 / 0.5523 GB, free: 9.898 MB / 398.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 1.229e-05/0.3549, allocations: 1.156 kB / 0.5523 GB, free: 9.898 MB / 398.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.955e-06/0.3549, allocations: 3.984 kB / 0.5523 GB, free: 9.895 MB / 398.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.577e-06/0.3549, allocations: 0 / 0.5523 GB, free: 9.895 MB / 398.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.347e-05/0.3549, allocations: 1.25 kB / 0.5523 GB, free: 9.895 MB / 398.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.821e-06/0.3549, allocations: 0 / 0.5523 GB, free: 9.895 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 8.854e-05/0.355, allocations: 138.1 kB / 0.5525 GB, free: 9.746 MB / 398.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 1.197e-05/0.355, allocations: 9.047 kB / 0.5525 GB, free: 9.738 MB / 398.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.409e-05/0.3551, allocations: 10.95 kB / 0.5525 GB, free: 9.723 MB / 398.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.102e-06/0.3551, allocations: 0.875 kB / 0.5525 GB, free: 9.723 MB / 398.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 2.806e-06/0.3551, allocations: 0 / 0.5525 GB, free: 9.723 MB / 398.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.754e-06/0.3551, allocations: 1.156 kB / 0.5525 GB, free: 9.723 MB / 398.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.937e-05/0.3552, allocations: 125.8 kB / 0.5526 GB, free: 9.559 MB / 398.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.795e-06/0.3552, allocations: 5.031 kB / 0.5526 GB, free: 9.555 MB / 398.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.62e-07/0.3552, allocations: 0 / 0.5526 GB, free: 9.555 MB / 398.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 4.719e-06/0.3552, allocations: 9 kB / 0.5526 GB, free: 9.547 MB / 398.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.64e-06/0.3552, allocations: 0 / 0.5526 GB, free: 9.547 MB / 398.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.61e-07/0.3552, allocations: 1.125 kB / 0.5526 GB, free: 9.547 MB / 398.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.3552, allocations: 0 / 0.5526 GB, free: 9.547 MB / 398.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001067/0.3553, allocations: 98.45 kB / 0.5527 GB, free: 9.438 MB / 398.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 3.536e-06/0.3553, allocations: 0 / 0.5527 GB, free: 9.438 MB / 398.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.386e-05/0.3553, allocations: 5.281 kB / 0.5527 GB, free: 9.434 MB / 398.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.438e-06/0.3553, allocations: 1.406 kB / 0.5527 GB, free: 9.434 MB / 398.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 1.274e-05/0.3553, allocations: 0 / 0.5527 GB, free: 9.434 MB / 398.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.417e-06/0.3553, allocations: 1.375 kB / 0.5527 GB, free: 9.434 MB / 398.1 MB
Notification: Performance of sorting global known variables: time 3.337e-05/0.3554, allocations: 79.31 kB / 0.5528 GB, free: 9.355 MB / 398.1 MB
Notification: Performance of sort global known variables: time 9e-08/0.3554, allocations: 4 kB / 0.5528 GB, free: 9.352 MB / 398.1 MB
Notification: Performance of remove unused functions: time 0.0001987/0.3556, allocations: 11.16 kB / 0.5528 GB, free: 9.352 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.0002796/0.3558, allocations: 143.8 kB / 0.5529 GB, free: 9.234 MB / 398.1 MB
Notification: Performance of simCode: created initialization part: time 0.0001027/0.3559, allocations: 57.28 kB / 0.553 GB, free: 9.172 MB / 398.1 MB
Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.3559, allocations: 0 / 0.553 GB, free: 9.172 MB / 398.1 MB
Notification: Performance of simCode: created simulation system equations: time 3.833e-05/0.356, allocations: 65.58 kB / 0.5531 GB, free: 9.098 MB / 398.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001222/0.3561, allocations: 4.938 kB / 0.5531 GB, free: 9.098 MB / 398.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001984/0.3563, allocations: 80.02 kB / 0.5531 GB, free: 9 MB / 398.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003267/0.3566, allocations: 0.6738 MB / 0.5538 GB, free: 8.301 MB / 398.1 MB
Notification: Performance of simCode: alias equations: time 5.3e-06/0.3566, allocations: 1.125 kB / 0.5538 GB, free: 8.301 MB / 398.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 1.628e-05/0.3566, allocations: 8.438 kB / 0.5538 GB, free: 8.293 MB / 398.1 MB
Notification: Performance of SimCode: time 4.91e-07/0.3566, allocations: 0 / 0.5538 GB, free: 8.293 MB / 398.1 MB
Notification: Performance of Templates: time 0.003056/0.3597, allocations: 0.522 MB / 0.5543 GB, free: 8.016 MB / 398.1 MB
"
[Timeout remaining time 660]
make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.makefile [Timeout 660]
(rm -f ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.sim & ./ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.pipe 2>&1) [Timeout 480]
diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_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: 5.349447916261852]