Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.00129/0.00129, 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.001288/0.001288, allocations: 169.5 kB / 24.91 MB, free: 9.152 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 0.9298/0.9298, allocations: 177.1 MB / 205.3 MB, free: 5.461 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2573/0.2573, allocations: 34.26 MB / 296.1 MB, free: 0.7422 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.1.0_ModelicaTest.Math.TestScalarFunctions") translateModel(ModelicaTest.Math.TestScalarFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.232e-06/1.232e-06, allocations: 0 / 325.3 MB, free: 7.684 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.166e-05/2.289e-05, allocations: 9.812 kB / 325.3 MB, free: 7.676 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001484/0.001507, allocations: 0.5409 MB / 325.8 MB, free: 7.133 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.005948/0.007454, allocations: 1.638 MB / 327.5 MB, free: 5.477 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.181e-05/0.007476, allocations: 0 / 327.5 MB, free: 5.477 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.241e-05/0.007489, allocations: 0 / 327.5 MB, free: 5.477 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.503e-06/0.007495, allocations: 0 / 327.5 MB, free: 5.477 MB / 298.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.000485/0.00798, allocations: 159.1 kB / 327.6 MB, free: 5.32 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 5.058e-05/0.008031, allocations: 3.984 kB / 327.6 MB, free: 5.316 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.538e-05/0.008066, allocations: 4 kB / 327.6 MB, free: 5.312 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.173e-05/0.008098, allocations: 3.938 kB / 327.6 MB, free: 5.309 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.401e-05/0.008122, allocations: 0 / 327.6 MB, free: 5.309 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 8.206e-06/0.00813, allocations: 0 / 327.6 MB, free: 5.309 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003211/0.008451, allocations: 115.9 kB / 327.7 MB, free: 5.195 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.294e-06/0.008459, allocations: 4 kB / 327.7 MB, free: 5.191 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 1.406e-05/0.008473, allocations: 7.984 kB / 327.7 MB, free: 5.184 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001003/0.008573, allocations: 48.45 kB / 327.8 MB, free: 5.137 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.284e-06/0.008575, allocations: 0 / 327.8 MB, free: 5.137 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.052e-06/0.008576, allocations: 0 / 327.8 MB, free: 5.137 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.875e-06/0.008579, allocations: 0 / 327.8 MB, free: 5.137 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.0002121/0.008791, allocations: 246.3 kB / 328 MB, free: 4.867 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.971e-05/0.008831, allocations: 12.03 kB / 328 MB, free: 4.855 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.466e-05/0.008856, allocations: 0.9375 kB / 328 MB, free: 4.855 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.878e-05/0.008914, allocations: 105.8 kB / 328.1 MB, free: 4.727 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.033e-05/0.008925, allocations: 4.375 kB / 328.2 MB, free: 4.723 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.233e-06/0.008932, allocations: 4.375 kB / 328.2 MB, free: 4.719 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.443e-05/0.008996, allocations: 55.91 kB / 328.2 MB, free: 4.652 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.144e-06/0.009003, allocations: 192 / 328.2 MB, free: 4.652 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.741e-06/0.009009, allocations: 384 / 328.2 MB, free: 4.652 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.071e-06/0.009015, allocations: 7.938 kB / 328.2 MB, free: 4.645 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.709e-05/0.009032, allocations: 29.64 kB / 328.2 MB, free: 4.609 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.432e-05/0.009107, allocations: 61.05 kB / 328.3 MB, free: 4.535 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.598e-05/0.009153, allocations: 44.27 kB / 328.4 MB, free: 4.477 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.831e-05/0.009171, allocations: 38.66 kB / 328.4 MB, free: 4.43 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.756e-06/0.009174, allocations: 4 kB / 328.4 MB, free: 4.426 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.685e-05/0.009211, allocations: 60.25 kB / 328.5 MB, free: 4.352 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 6.92e-07/0.009211, allocations: 0 / 328.5 MB, free: 4.352 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001173/0.009329, allocations: 118.7 kB / 328.6 MB, free: 4.211 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.355e-05/0.009362, allocations: 77.11 kB / 328.6 MB, free: 4.117 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.165e-05/0.009394, allocations: 89.86 kB / 328.7 MB, free: 4.02 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.837e-06/0.009403, allocations: 25.7 kB / 328.8 MB, free: 3.988 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.858e-05/0.009421, allocations: 80.14 kB / 328.8 MB, free: 3.906 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.725e-05/0.009439, allocations: 5.375 kB / 328.8 MB, free: 3.902 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.687e-05/0.009465, allocations: 17.72 kB / 328.9 MB, free: 3.879 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.177e-05/0.009547, allocations: 322.9 kB / 329.2 MB, free: 3.555 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.295e-05/0.00956, allocations: 25.7 kB / 329.2 MB, free: 3.523 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.416e-05/0.009574, allocations: 29.69 kB / 329.2 MB, free: 3.488 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.844e-05/0.009613, allocations: 60.27 kB / 329.3 MB, free: 3.414 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.009614, allocations: 0 / 329.3 MB, free: 3.414 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.464e-05/0.009669, allocations: 85.05 kB / 329.4 MB, free: 3.312 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.556e-05/0.009694, allocations: 37.69 kB / 329.4 MB, free: 3.27 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.228e-06/0.009699, allocations: 0 / 329.4 MB, free: 3.27 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.154e-05/0.00971, allocations: 0 / 329.4 MB, free: 3.27 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.232e-06/0.009711, allocations: 4.094 kB / 329.4 MB, free: 3.266 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.485e-06/0.009714, allocations: 0 / 329.4 MB, free: 3.266 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.554e-05/0.00973, allocations: 4 kB / 329.4 MB, free: 3.262 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.542e-06/0.009736, allocations: 3.938 kB / 329.4 MB, free: 3.258 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 5.601e-05/0.009792, allocations: 131.5 kB / 329.5 MB, free: 3.113 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.723e-06/0.009799, allocations: 4 kB / 329.5 MB, free: 3.109 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.646e-06/0.009807, allocations: 3 kB / 329.6 MB, free: 3.109 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.072e-06/0.009808, allocations: 0 / 329.6 MB, free: 3.109 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.224e-06/0.009811, allocations: 3.984 kB / 329.6 MB, free: 3.105 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.816e-06/0.009814, allocations: 3.938 kB / 329.6 MB, free: 3.102 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.19e-05/0.009865, allocations: 73.83 kB / 329.6 MB, free: 3.012 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.31e-07/0.009866, allocations: 4 kB / 329.6 MB, free: 3.008 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.2e-07/0.009867, allocations: 0 / 329.6 MB, free: 3.008 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.042e-06/0.009868, allocations: 0 / 329.6 MB, free: 3.008 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.041e-06/0.009874, allocations: 7.984 kB / 329.6 MB, free: 3 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.21e-07/0.009874, allocations: 0 / 329.6 MB, free: 3 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.01e-07/0.009875, allocations: 0 / 329.6 MB, free: 3 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.777e-05/0.009953, allocations: 120.4 kB / 329.8 MB, free: 2.852 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.727e-06/0.009956, allocations: 352 / 329.8 MB, free: 2.852 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.093e-05/0.009967, allocations: 0 / 329.8 MB, free: 2.852 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.494e-06/0.009975, allocations: 4 kB / 329.8 MB, free: 2.848 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.115e-06/0.009983, allocations: 4.031 kB / 329.8 MB, free: 2.844 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.853e-06/0.009985, allocations: 0 / 329.8 MB, free: 2.844 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.282e-06/0.009991, allocations: 4.859 kB / 329.8 MB, free: 2.836 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.009991, allocations: 0 / 329.8 MB, free: 2.836 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001623/0.01015, allocations: 23.92 kB / 329.8 MB, free: 2.812 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.0002567/0.01041, allocations: 123 kB / 329.9 MB, free: 2.695 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 8.457e-05/0.01049, allocations: 124.1 kB / 330 MB, free: 2.547 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.0105, allocations: 0 / 330 MB, free: 2.547 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 2.874e-05/0.01053, allocations: 89.95 kB / 330.1 MB, free: 2.438 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 5.059e-05/0.01058, allocations: 7.875 kB / 330.1 MB, free: 2.43 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001399/0.01072, allocations: 112.6 kB / 330.2 MB, free: 2.285 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.714e-05/0.01074, allocations: 55.34 kB / 330.3 MB, free: 2.211 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 5.32e-06/0.01075, allocations: 4 kB / 330.3 MB, free: 2.207 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.326e-05/0.01078, allocations: 51.38 kB / 330.4 MB, free: 2.156 MB / 298.7 MB Notification: Performance of SimCode: time 6.01e-07/0.01078, allocations: 0 / 330.4 MB, free: 2.156 MB / 298.7 MB Notification: Performance of Templates: time 0.002969/0.01375, allocations: 0.7513 MB / 331.1 MB, free: 1.41 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions.sim & ./ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Math.TestScalarFunctions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.718989602290094]