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.0009513/0.0009513, allocations: 80.92 kB / 21.49 MB, free: 2.996 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.001153/0.001153, allocations: 170.4 kB / 24.91 MB, free: 8.723 MB / 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.056/1.056, allocations: 177.1 MB / 205.3 MB, free: 5.121 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.2839/0.2839, allocations: 32.8 MB / 294.6 MB, free: 1.195 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 1.843e-06/1.843e-06, allocations: 0 / 323.2 MB, free: 9.711 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.638e-05/2.822e-05, allocations: 2.969 kB / 323.2 MB, free: 9.707 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.002042/0.00207, allocations: 0.5404 MB / 323.8 MB, free: 9.164 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002778/0.004848, allocations: 1.641 MB / 325.4 MB, free: 7.504 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.524e-05/0.004873, allocations: 0 / 325.4 MB, free: 7.504 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.575e-05/0.004889, allocations: 0 / 325.4 MB, free: 7.504 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 7.534e-06/0.004897, allocations: 0 / 325.4 MB, free: 7.504 MB / 298.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.0006679/0.005565, allocations: 155.1 kB / 325.6 MB, free: 7.352 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 5.756e-05/0.005622, allocations: 0 / 325.6 MB, free: 7.352 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.319e-05/0.005665, allocations: 4 kB / 325.6 MB, free: 7.348 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.472e-05/0.0057, allocations: 4 kB / 325.6 MB, free: 7.344 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.247e-05/0.005733, allocations: 0 / 325.6 MB, free: 7.344 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.111e-05/0.005744, allocations: 0 / 325.6 MB, free: 7.344 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004347/0.006178, allocations: 119.8 kB / 325.7 MB, free: 7.227 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.664e-06/0.006186, allocations: 0 / 325.7 MB, free: 7.227 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 1.916e-05/0.006205, allocations: 12.62 kB / 325.7 MB, free: 7.215 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00013/0.006335, allocations: 47.83 kB / 325.8 MB, free: 7.168 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.481e-06/0.006341, allocations: 3.984 kB / 325.8 MB, free: 7.164 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.754e-06/0.006342, allocations: 0 / 325.8 MB, free: 7.164 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.268e-06/0.006347, allocations: 0 / 325.8 MB, free: 7.164 MB / 298.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.0002679/0.006615, allocations: 242.4 kB / 326 MB, free: 6.898 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.117e-05/0.006656, allocations: 12.03 kB / 326 MB, free: 6.887 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.001e-05/0.006686, allocations: 0.9375 kB / 326 MB, free: 6.887 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.235e-05/0.006758, allocations: 105.8 kB / 326.1 MB, free: 6.758 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.038e-05/0.006769, allocations: 384 / 326.1 MB, free: 6.758 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.213e-06/0.006776, allocations: 4.375 kB / 326.1 MB, free: 6.754 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.62e-05/0.006852, allocations: 59.91 kB / 326.2 MB, free: 6.684 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.823e-06/0.006859, allocations: 192 / 326.2 MB, free: 6.684 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.633e-06/0.006865, allocations: 384 / 326.2 MB, free: 6.684 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.813e-06/0.006872, allocations: 7.938 kB / 326.2 MB, free: 6.676 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.206e-05/0.006894, allocations: 33.62 kB / 326.2 MB, free: 6.637 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.651e-05/0.006981, allocations: 65.03 kB / 326.3 MB, free: 6.559 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.629e-05/0.007067, allocations: 44.28 kB / 326.3 MB, free: 6.5 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.811e-05/0.007085, allocations: 38.66 kB / 326.4 MB, free: 6.453 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.487e-06/0.007089, allocations: 0 / 326.4 MB, free: 6.453 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.322e-05/0.007122, allocations: 60.2 kB / 326.4 MB, free: 6.379 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 9.72e-07/0.007123, allocations: 4 kB / 326.4 MB, free: 6.375 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001193/0.007242, allocations: 114.8 kB / 326.5 MB, free: 6.238 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.528e-05/0.007277, allocations: 77.11 kB / 326.6 MB, free: 6.145 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.321e-05/0.007311, allocations: 89.86 kB / 326.7 MB, free: 6.047 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.547e-06/0.007319, allocations: 25.7 kB / 326.7 MB, free: 6.016 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.939e-05/0.007339, allocations: 80.14 kB / 326.8 MB, free: 5.934 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.695e-05/0.007355, allocations: 5.203 kB / 326.8 MB, free: 5.93 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.114e-05/0.007377, allocations: 13.72 kB / 326.8 MB, free: 5.91 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.941e-05/0.007446, allocations: 318.8 kB / 327.1 MB, free: 5.59 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.27e-05/0.007459, allocations: 29.69 kB / 327.2 MB, free: 5.555 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.175e-05/0.00747, allocations: 33.83 kB / 327.2 MB, free: 5.516 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.597e-05/0.007506, allocations: 64.2 kB / 327.3 MB, free: 5.438 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.744e-06/0.007508, allocations: 0 / 327.3 MB, free: 5.438 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.963e-05/0.007558, allocations: 85.09 kB / 327.3 MB, free: 5.336 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.119e-05/0.007589, allocations: 36.05 kB / 327.4 MB, free: 5.297 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.639e-06/0.007594, allocations: 0 / 327.4 MB, free: 5.297 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.264e-05/0.007606, allocations: 0 / 327.4 MB, free: 5.297 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.343e-06/0.007608, allocations: 0 / 327.4 MB, free: 5.297 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.687e-06/0.007611, allocations: 3.984 kB / 327.4 MB, free: 5.293 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.358e-05/0.007625, allocations: 8.094 kB / 327.4 MB, free: 5.285 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.462e-06/0.007631, allocations: 3.938 kB / 327.4 MB, free: 5.281 MB / 298.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 6.024e-05/0.007692, allocations: 135.5 kB / 327.5 MB, free: 5.133 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.05e-06/0.007697, allocations: 4 kB / 327.5 MB, free: 5.129 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.758e-06/0.007706, allocations: 6.984 kB / 327.5 MB, free: 5.125 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-06/0.007708, allocations: 0 / 327.5 MB, free: 5.125 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.774e-06/0.00771, allocations: 0 / 327.5 MB, free: 5.125 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.064e-06/0.007712, allocations: 3.938 kB / 327.5 MB, free: 5.121 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.591e-05/0.007758, allocations: 65.84 kB / 327.6 MB, free: 5.039 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.21e-07/0.007758, allocations: 0 / 327.6 MB, free: 5.039 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.7e-07/0.007758, allocations: 0 / 327.6 MB, free: 5.039 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.01e-07/0.007759, allocations: 7.938 kB / 327.6 MB, free: 5.031 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.667e-06/0.007763, allocations: 0 / 327.6 MB, free: 5.031 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.4e-07/0.007763, allocations: 0 / 327.6 MB, free: 5.031 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.007764, allocations: 0 / 327.6 MB, free: 5.031 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.709e-05/0.007831, allocations: 120.5 kB / 327.7 MB, free: 4.883 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.39e-06/0.007837, allocations: 0.9688 kB / 327.7 MB, free: 4.883 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.655e-05/0.007853, allocations: 3.984 kB / 327.7 MB, free: 4.879 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.111e-06/0.007859, allocations: 4 kB / 327.7 MB, free: 4.875 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.809e-06/0.007869, allocations: 3.984 kB / 327.7 MB, free: 4.871 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.146e-06/0.007872, allocations: 4 kB / 327.8 MB, free: 4.867 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.671e-06/0.007878, allocations: 8.891 kB / 327.8 MB, free: 4.855 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007878, allocations: 0 / 327.8 MB, free: 4.855 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001157/0.007994, allocations: 19.94 kB / 327.8 MB, free: 4.836 MB / 298.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.000266/0.00826, allocations: 131.8 kB / 327.9 MB, free: 4.715 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 8.916e-05/0.008349, allocations: 123.7 kB / 328 MB, free: 4.566 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.357e-06/0.008352, allocations: 0 / 328 MB, free: 4.566 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 2.868e-05/0.008381, allocations: 90.03 kB / 328.1 MB, free: 4.457 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 4.839e-05/0.008429, allocations: 7.875 kB / 328.1 MB, free: 4.449 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001353/0.008564, allocations: 109.3 kB / 328.2 MB, free: 4.309 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.487e-05/0.008589, allocations: 51.36 kB / 328.3 MB, free: 4.238 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 6.201e-06/0.008596, allocations: 4 kB / 328.3 MB, free: 4.234 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.46e-05/0.00863, allocations: 51.38 kB / 328.3 MB, free: 4.184 MB / 298.7 MB Notification: Performance of SimCode: time 6.71e-07/0.008631, allocations: 0 / 328.3 MB, free: 4.184 MB / 298.7 MB Notification: Performance of Templates: time 0.002842/0.01147, allocations: 0.7566 MB / 329.1 MB, free: 3.434 MB / 298.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 -s gbode -gbm=radauIIA3 -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: 2.8687634929083288]