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.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.001393/0.001393, allocations: 87.58 kB / 21.19 MB, free: 3.371 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.001579/0.001579, allocations: 165 kB / 24.56 MB, free: 4 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.012/1.012, allocations: 177.1 MB / 205 MB, free: 5.59 MB / 186.7 MB " [Timeout remaining time 179] 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.2819/0.2819, allocations: 32.8 MB / 294.3 MB, free: 1.199 MB / 266.7 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.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.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 2.184e-06/2.184e-06, allocations: 0 / 376 MB, free: 4.648 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.653e-05/3.871e-05, allocations: 2.312 kB / 376 MB, free: 4.645 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.00223/0.002269, allocations: 0.5078 MB / 376.5 MB, free: 4.137 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002739/0.005008, allocations: 1.633 MB / 378.1 MB, free: 2.484 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.868e-05/0.005037, allocations: 4 kB / 378.1 MB, free: 2.48 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 2.166e-05/0.005058, allocations: 0 / 378.1 MB, free: 2.48 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 7.614e-06/0.005066, allocations: 0 / 378.1 MB, free: 2.48 MB / 346.7 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.0009736/0.006039, allocations: 171.1 kB / 378.3 MB, free: 2.312 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 6.025e-05/0.0061, allocations: 0 / 378.3 MB, free: 2.312 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.626e-05/0.006146, allocations: 4 kB / 378.3 MB, free: 2.309 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.004e-05/0.006176, allocations: 0 / 378.3 MB, free: 2.309 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.989e-05/0.006206, allocations: 3.984 kB / 378.3 MB, free: 2.305 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 1.155e-05/0.006217, allocations: 0 / 378.3 MB, free: 2.305 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004963/0.006714, allocations: 111.9 kB / 378.4 MB, free: 2.195 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 9.719e-06/0.006724, allocations: 4 kB / 378.4 MB, free: 2.191 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 2.453e-05/0.006748, allocations: 3.984 kB / 378.4 MB, free: 2.188 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001534/0.006901, allocations: 51.83 kB / 378.5 MB, free: 2.137 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.538e-06/0.006906, allocations: 0 / 378.5 MB, free: 2.137 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.793e-06/0.006908, allocations: 0 / 378.5 MB, free: 2.137 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.41e-06/0.006913, allocations: 3.938 kB / 378.5 MB, free: 2.133 MB / 346.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.0003446/0.007258, allocations: 374 kB / 378.9 MB, free: 1.727 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.239e-05/0.00731, allocations: 16.02 kB / 378.9 MB, free: 1.711 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.5e-05/0.007355, allocations: 0.9375 kB / 378.9 MB, free: 1.711 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.826e-05/0.007433, allocations: 104.6 kB / 379 MB, free: 1.582 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.38e-05/0.007447, allocations: 384 / 379 MB, free: 1.582 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.639e-05/0.007464, allocations: 4.375 kB / 379 MB, free: 1.578 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001103/0.007574, allocations: 55.97 kB / 379 MB, free: 1.512 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.034e-05/0.007584, allocations: 192 / 379 MB, free: 1.512 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.054e-05/0.007595, allocations: 4.375 kB / 379 MB, free: 1.508 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.012e-05/0.007605, allocations: 3.938 kB / 379 MB, free: 1.504 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.945e-05/0.007634, allocations: 33.64 kB / 379.1 MB, free: 1.465 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001131/0.007748, allocations: 112.6 kB / 379.2 MB, free: 1.32 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.914e-05/0.007807, allocations: 48.77 kB / 379.2 MB, free: 1.254 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.951e-05/0.007836, allocations: 41.48 kB / 379.3 MB, free: 1.203 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.28e-06/0.007841, allocations: 0 / 379.3 MB, free: 1.203 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.457e-05/0.007886, allocations: 59.09 kB / 379.3 MB, free: 1.129 MB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 1.362e-06/0.007887, allocations: 4 kB / 379.3 MB, free: 1.125 MB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002158/0.008103, allocations: 122.7 kB / 379.5 MB, free: 0.9805 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.935e-05/0.008152, allocations: 85.05 kB / 379.5 MB, free: 0.8789 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.851e-05/0.008211, allocations: 142.2 kB / 379.7 MB, free: 0.7266 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.246e-05/0.008223, allocations: 25.7 kB / 379.7 MB, free: 0.6953 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.786e-05/0.008261, allocations: 126.9 kB / 379.8 MB, free: 0.5664 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.792e-05/0.008289, allocations: 352 / 379.8 MB, free: 0.5664 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.955e-05/0.008329, allocations: 23.38 kB / 379.8 MB, free: 0.5352 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001419/0.008471, allocations: 496.1 kB / 380.3 MB, free: 40 kB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.43e-05/0.008495, allocations: 25.7 kB / 380.4 MB, free: 8 kB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.868e-05/0.008534, allocations: 33.83 kB / 380.4 MB, free: 15.97 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.827e-05/0.008592, allocations: 63.09 kB / 380.5 MB, free: 15.89 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.295e-06/0.008594, allocations: 0 / 380.5 MB, free: 15.89 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.719e-05/0.008691, allocations: 101 kB / 380.6 MB, free: 15.77 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.104e-05/0.008732, allocations: 33.64 kB / 380.6 MB, free: 15.73 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.083e-06/0.00874, allocations: 0 / 380.6 MB, free: 15.73 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.72e-05/0.008757, allocations: 0 / 380.6 MB, free: 15.73 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.719e-06/0.008761, allocations: 0 / 380.6 MB, free: 15.73 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.738e-06/0.008771, allocations: 3.938 kB / 380.6 MB, free: 15.73 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.95e-05/0.008791, allocations: 4 kB / 380.6 MB, free: 15.73 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.923e-06/0.008798, allocations: 4.094 kB / 380.6 MB, free: 15.72 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 9.456e-05/0.008892, allocations: 182.3 kB / 380.8 MB, free: 15.53 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.221e-05/0.008904, allocations: 4 kB / 380.8 MB, free: 15.52 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.451e-05/0.008919, allocations: 3 kB / 380.8 MB, free: 15.52 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.008921, allocations: 0 / 380.8 MB, free: 15.52 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.008925, allocations: 0 / 380.8 MB, free: 15.52 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.699e-06/0.00893, allocations: 3.938 kB / 380.8 MB, free: 15.52 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.229e-05/0.009002, allocations: 108.6 kB / 380.9 MB, free: 15.38 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.009004, allocations: 0 / 380.9 MB, free: 15.38 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.31e-07/0.009005, allocations: 0 / 380.9 MB, free: 15.38 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.914e-06/0.009007, allocations: 4 kB / 380.9 MB, free: 15.38 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.859e-06/0.009017, allocations: 4 kB / 380.9 MB, free: 15.37 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.296e-06/0.00902, allocations: 3.984 kB / 380.9 MB, free: 15.37 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.916e-06/0.009023, allocations: 4 kB / 380.9 MB, free: 15.36 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001389/0.009162, allocations: 131.7 kB / 381 MB, free: 15.2 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.085e-06/0.00917, allocations: 3.984 kB / 381 MB, free: 15.2 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.721e-05/0.009187, allocations: 0 / 381 MB, free: 15.2 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.233e-05/0.0092, allocations: 4 kB / 381 MB, free: 15.19 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.518e-05/0.009215, allocations: 4 kB / 381 MB, free: 15.19 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.258e-06/0.009219, allocations: 0 / 381 MB, free: 15.19 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.685e-05/0.009256, allocations: 127.2 kB / 381.2 MB, free: 15.06 MB / 362.7 MB Notification: Performance of sort global known variables: time 8e-08/0.009256, allocations: 0 / 381.2 MB, free: 15.06 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002321/0.009488, allocations: 15.94 kB / 381.2 MB, free: 15.05 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.0003642/0.009852, allocations: 143.5 kB / 381.3 MB, free: 14.91 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001229/0.009975, allocations: 126.5 kB / 381.4 MB, free: 14.75 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.009977, allocations: 7.875 kB / 381.5 MB, free: 14.75 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 4.634e-05/0.01002, allocations: 92.86 kB / 381.5 MB, free: 14.63 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000141/0.01016, allocations: 3.938 kB / 381.6 MB, free: 14.63 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002376/0.0104, allocations: 109.7 kB / 381.7 MB, free: 14.48 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002062/0.01061, allocations: 59.34 kB / 381.7 MB, free: 14.41 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 7.494e-06/0.01062, allocations: 0 / 381.7 MB, free: 14.41 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.76e-05/0.01063, allocations: 8.5 kB / 381.7 MB, free: 14.4 MB / 362.7 MB Notification: Performance of SimCode: time 9.32e-07/0.01063, allocations: 0 / 381.7 MB, free: 14.4 MB / 362.7 MB Notification: Performance of Templates: time 0.003599/0.01423, allocations: 0.6874 MB / 382.4 MB, free: 13.71 MB / 362.7 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=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.pipe 2>&1) [Timeout 240] 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","",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.1275353808887303]