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.0009018/0.0009018, allocations: 81.97 kB / 22.21 MB, free: 2.289 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.0009444/0.0009444, allocations: 167.9 kB / 25.61 MB, free: 8.582 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.8894/0.8894, allocations: 177.2 MB / 206.1 MB, free: 4.477 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.1406/0.1406, allocations: 34.26 MB / 296.9 MB, free: 13.9 MB / 282.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.553e-06/1.553e-06, allocations: 0 / 379.3 MB, free: 23.42 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.162e-05/1.318e-05, allocations: 2.312 kB / 379.3 MB, free: 23.41 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.0008355/0.0008487, allocations: 489.1 kB / 379.8 MB, free: 22.93 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.001278/0.002126, allocations: 1.626 MB / 381.4 MB, free: 21.29 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.379e-05/0.00215, allocations: 0 / 381.4 MB, free: 21.29 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 1.45e-05/0.002165, allocations: 0 / 381.4 MB, free: 21.29 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 5.741e-06/0.002171, allocations: 0 / 381.4 MB, free: 21.29 MB / 314.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.0004054/0.002576, allocations: 175.1 kB / 381.5 MB, free: 21.12 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 4.924e-05/0.002625, allocations: 4 kB / 381.6 MB, free: 21.11 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.468e-05/0.00266, allocations: 0 / 381.6 MB, free: 21.11 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.207e-05/0.002682, allocations: 0 / 381.6 MB, free: 21.11 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.521e-05/0.002707, allocations: 4 kB / 381.6 MB, free: 21.11 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 7.885e-06/0.002715, allocations: 0 / 381.6 MB, free: 21.11 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000249/0.002964, allocations: 119.8 kB / 381.7 MB, free: 20.99 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 6.973e-06/0.002971, allocations: 4 kB / 381.7 MB, free: 20.99 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 1.094e-05/0.002982, allocations: 0 / 381.7 MB, free: 20.99 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 8.045e-05/0.003062, allocations: 43.89 kB / 381.7 MB, free: 20.95 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.643e-06/0.003064, allocations: 4 kB / 381.7 MB, free: 20.94 MB / 314.7 MB Notification: Performance of FrontEnd: time 5.41e-07/0.003065, allocations: 0 / 381.7 MB, free: 20.94 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.828e-06/0.003068, allocations: 0 / 381.7 MB, free: 20.94 MB / 314.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.000176/0.003244, allocations: 374 kB / 382.1 MB, free: 20.54 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.718e-05/0.003272, allocations: 8.031 kB / 382.1 MB, free: 20.53 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.388e-05/0.003295, allocations: 8.938 kB / 382.1 MB, free: 20.52 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 3.64e-05/0.003332, allocations: 104.6 kB / 382.2 MB, free: 20.39 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.047e-05/0.003342, allocations: 8.375 kB / 382.2 MB, free: 20.38 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.689e-06/0.003347, allocations: 4.312 kB / 382.2 MB, free: 20.38 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.093e-05/0.003398, allocations: 59.95 kB / 382.3 MB, free: 20.31 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.981e-06/0.003404, allocations: 192 / 382.3 MB, free: 20.31 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.23e-06/0.003409, allocations: 384 / 382.3 MB, free: 20.31 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.06e-06/0.003414, allocations: 3.938 kB / 382.3 MB, free: 20.3 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.948e-06/0.003424, allocations: 29.7 kB / 382.3 MB, free: 20.27 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 4.928e-05/0.003473, allocations: 93.2 kB / 382.4 MB, free: 20.15 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 2.858e-05/0.003502, allocations: 56.78 kB / 382.5 MB, free: 20.08 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.077e-05/0.003513, allocations: 41.31 kB / 382.5 MB, free: 20.03 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.142e-06/0.003519, allocations: 4 kB / 382.5 MB, free: 20.02 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.03e-05/0.003539, allocations: 63.16 kB / 382.6 MB, free: 19.95 MB / 314.7 MB Notification: Performance of pre-optimization done (n=1): time 6.01e-07/0.00354, allocations: 0 / 382.6 MB, free: 19.95 MB / 314.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001127/0.003653, allocations: 114.8 kB / 382.7 MB, free: 19.81 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.871e-05/0.003671, allocations: 81.09 kB / 382.8 MB, free: 19.71 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.814e-05/0.003689, allocations: 142.2 kB / 382.9 MB, free: 19.56 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.166e-06/0.003693, allocations: 25.7 kB / 382.9 MB, free: 19.53 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.848e-06/0.003702, allocations: 130.9 kB / 383 MB, free: 19.39 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.151e-05/0.003714, allocations: 0 / 383 MB, free: 19.39 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.674e-05/0.003731, allocations: 15.38 kB / 383.1 MB, free: 19.37 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 3.783e-05/0.003768, allocations: 0.4963 MB / 383.6 MB, free: 18.86 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.994e-06/0.003775, allocations: 29.64 kB / 383.6 MB, free: 18.83 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.132e-06/0.003782, allocations: 25.72 kB / 383.6 MB, free: 18.8 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.686e-05/0.003808, allocations: 71.08 kB / 383.7 MB, free: 18.71 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.362e-06/0.00381, allocations: 0 / 383.7 MB, free: 18.71 MB / 314.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 3.399e-05/0.003844, allocations: 85.11 kB / 383.8 MB, free: 18.61 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.625e-05/0.00386, allocations: 29.7 kB / 383.8 MB, free: 18.57 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.126e-06/0.003863, allocations: 0 / 383.8 MB, free: 18.57 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.693e-06/0.00387, allocations: 4 kB / 383.8 MB, free: 18.57 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.583e-06/0.003871, allocations: 8.078 kB / 383.8 MB, free: 18.56 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.084e-06/0.003874, allocations: 0 / 383.8 MB, free: 18.56 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.776e-06/0.003882, allocations: 3.938 kB / 383.8 MB, free: 18.56 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.589e-06/0.003887, allocations: 3.938 kB / 383.8 MB, free: 18.55 MB / 314.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 3.525e-05/0.003922, allocations: 182.3 kB / 384 MB, free: 18.36 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.188e-06/0.003926, allocations: 352 / 384 MB, free: 18.36 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.241e-06/0.003933, allocations: 3 kB / 384 MB, free: 18.36 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.282e-06/0.003934, allocations: 4 kB / 384 MB, free: 18.36 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.463e-06/0.003935, allocations: 0 / 384 MB, free: 18.36 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.094e-06/0.003937, allocations: 0 / 384 MB, free: 18.36 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.136e-05/0.003969, allocations: 101.1 kB / 384.1 MB, free: 18.23 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.51e-07/0.003969, allocations: 4 kB / 384.1 MB, free: 18.23 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.81e-07/0.00397, allocations: 0 / 384.1 MB, free: 18.23 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.01e-07/0.00397, allocations: 0 / 384.1 MB, free: 18.23 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.426e-06/0.003974, allocations: 7.938 kB / 384.1 MB, free: 18.22 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.5e-07/0.003974, allocations: 0 / 384.1 MB, free: 18.22 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.11e-07/0.003975, allocations: 4 kB / 384.1 MB, free: 18.21 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.504e-05/0.00402, allocations: 139.8 kB / 384.3 MB, free: 18.04 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.565e-06/0.004023, allocations: 0 / 384.3 MB, free: 18.04 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.777e-06/0.004031, allocations: 4 kB / 384.3 MB, free: 18.04 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.167e-06/0.004035, allocations: 3.938 kB / 384.3 MB, free: 18.04 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.234e-06/0.004043, allocations: 4.031 kB / 384.3 MB, free: 18.03 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.422e-06/0.004044, allocations: 0 / 384.3 MB, free: 18.03 MB / 314.7 MB Notification: Performance of sorting global known variables: time 1.017e-05/0.004054, allocations: 119.2 kB / 384.4 MB, free: 17.91 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.004054, allocations: 0 / 384.4 MB, free: 17.91 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0001288/0.004183, allocations: 16 kB / 384.4 MB, free: 17.9 MB / 314.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.0001794/0.004363, allocations: 158.9 kB / 384.6 MB, free: 17.74 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 6.651e-05/0.004429, allocations: 122.5 kB / 384.7 MB, free: 17.59 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 9.22e-07/0.00443, allocations: 0 / 384.7 MB, free: 17.59 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 1.387e-05/0.004444, allocations: 88.8 kB / 384.8 MB, free: 17.48 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.028e-05/0.004524, allocations: 7.938 kB / 384.8 MB, free: 17.48 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001032/0.004627, allocations: 111.6 kB / 384.9 MB, free: 17.33 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 1.397e-05/0.004641, allocations: 59.16 kB / 384.9 MB, free: 17.25 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 4.488e-06/0.004646, allocations: 0 / 384.9 MB, free: 17.25 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.23e-05/0.004668, allocations: 70.2 kB / 385 MB, free: 17.18 MB / 314.7 MB Notification: Performance of SimCode: time 5.81e-07/0.004669, allocations: 0 / 385 MB, free: 17.18 MB / 314.7 MB Notification: Performance of Templates: time 0.001809/0.006478, allocations: 0.7475 MB / 385.7 MB, free: 16.44 MB / 314.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 -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.732110375072807]