Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001058/0.001058, allocations: 80.11 kB / 9.934 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001789/0.002847, allocations: 449.7 kB / 10.37 MB, free: 324 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001027/0.001027, allocations: 165.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001252/0.002279, allocations: 463.6 kB / 11.72 MB, free: 2.453 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.069/1.069, allocations: 177.4 MB / 189.9 MB, free: 4.836 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09036/1.159, allocations: 53.86 MB / 243.7 MB, free: 14.91 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2617/0.2617, allocations: 34.86 MB / 279.3 MB, free: 14.92 MB / 282.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.03022/0.2919, allocations: 13.23 MB / 292.6 MB, free: 6.477 MB / 282.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Math.TestScalarFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions") translateModel(ModelicaTest.Math.TestScalarFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.773e-06/1.773e-06, allocations: 0 / 293.8 MB, free: 5.215 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.319e-05/2.497e-05, allocations: 3.734 kB / 293.8 MB, free: 5.211 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001812/0.001837, allocations: 0.5441 MB / 294.4 MB, free: 4.664 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002182/0.004019, allocations: 1.646 MB / 296 MB, free: 3.004 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.417e-05/0.004033, allocations: 0 / 296 MB, free: 3.004 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 4.789e-06/0.004038, allocations: 4 kB / 296 MB, free: 3 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 9.01e-07/0.004039, allocations: 0 / 296 MB, free: 3 MB / 282.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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.0005509/0.00459, allocations: 151.1 kB / 296.2 MB, free: 2.852 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 6.222e-05/0.004652, allocations: 4 kB / 296.2 MB, free: 2.848 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.865e-05/0.00469, allocations: 3.984 kB / 296.2 MB, free: 2.844 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.592e-05/0.004726, allocations: 3.938 kB / 296.2 MB, free: 2.84 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.336e-05/0.00476, allocations: 8 kB / 296.2 MB, free: 2.832 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 9.939e-06/0.00477, allocations: 0 / 296.2 MB, free: 2.832 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000358/0.005128, allocations: 115.9 kB / 296.3 MB, free: 2.719 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 8.285e-06/0.005136, allocations: 4 kB / 296.3 MB, free: 2.715 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 1.368e-05/0.00515, allocations: 3.984 kB / 296.3 MB, free: 2.711 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001237/0.005273, allocations: 35.86 kB / 296.4 MB, free: 2.676 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.916e-05/0.005292, allocations: 0 / 296.4 MB, free: 2.676 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.905e-06/0.005295, allocations: 7.922 kB / 296.4 MB, free: 2.668 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.764e-05/0.005313, allocations: 4 kB / 296.4 MB, free: 2.664 MB / 282.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.0003075/0.00562, allocations: 254.3 kB / 296.6 MB, free: 2.387 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.754e-05/0.005658, allocations: 12.92 kB / 296.6 MB, free: 2.375 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.61e-05/0.005694, allocations: 0.9375 kB / 296.6 MB, free: 2.375 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.199e-05/0.005766, allocations: 105.8 kB / 296.7 MB, free: 2.246 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.188e-05/0.005778, allocations: 4.375 kB / 296.7 MB, free: 2.242 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.344e-06/0.005785, allocations: 4.375 kB / 296.7 MB, free: 2.238 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.43e-05/0.00587, allocations: 55.97 kB / 296.8 MB, free: 2.172 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.705e-06/0.005877, allocations: 192 / 296.8 MB, free: 2.172 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.943e-06/0.005884, allocations: 4.359 kB / 296.8 MB, free: 2.168 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.923e-06/0.005891, allocations: 3.938 kB / 296.8 MB, free: 2.164 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.266e-05/0.005914, allocations: 33.64 kB / 296.8 MB, free: 2.125 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.685e-05/0.005991, allocations: 57.05 kB / 296.9 MB, free: 2.055 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.051e-05/0.006041, allocations: 44.31 kB / 296.9 MB, free: 1.996 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.96e-05/0.006061, allocations: 30.56 kB / 297 MB, free: 1.957 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.306e-06/0.006064, allocations: 0 / 297 MB, free: 1.957 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.248e-05/0.006107, allocations: 60.33 kB / 297 MB, free: 1.883 MB / 282.7 MB Notification: Performance of pre-optimization done (n=1): time 9.91e-07/0.006108, allocations: 0 / 297 MB, free: 1.883 MB / 282.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001434/0.006251, allocations: 118.7 kB / 297.1 MB, free: 1.742 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.277e-05/0.006294, allocations: 81.11 kB / 297.2 MB, free: 1.645 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.965e-05/0.006333, allocations: 93.98 kB / 297.3 MB, free: 1.543 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.095e-05/0.006344, allocations: 25.7 kB / 297.3 MB, free: 1.512 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.441e-05/0.006369, allocations: 80.14 kB / 297.4 MB, free: 1.43 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.679e-05/0.006386, allocations: 0.6875 kB / 297.4 MB, free: 1.43 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.111e-05/0.006417, allocations: 17.7 kB / 297.4 MB, free: 1.406 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 9.171e-05/0.006508, allocations: 314.8 kB / 297.7 MB, free: 1.09 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.139e-05/0.00653, allocations: 29.7 kB / 297.8 MB, free: 1.055 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.649e-05/0.006546, allocations: 29.7 kB / 297.8 MB, free: 1.02 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.714e-05/0.006603, allocations: 60.27 kB / 297.9 MB, free: 0.9453 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.897e-06/0.006607, allocations: 3.984 kB / 297.9 MB, free: 0.9414 MB / 282.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.208e-05/0.006689, allocations: 97.05 kB / 298 MB, free: 0.8281 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.916e-05/0.006728, allocations: 29.7 kB / 298 MB, free: 0.793 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.44e-06/0.006734, allocations: 0 / 298 MB, free: 0.793 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.019e-05/0.006744, allocations: 0 / 298 MB, free: 0.793 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.98e-06/0.006749, allocations: 0 / 298 MB, free: 0.793 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.935e-06/0.006752, allocations: 0 / 298 MB, free: 0.793 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.025e-05/0.006772, allocations: 7.984 kB / 298 MB, free: 0.7852 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.238e-06/0.006782, allocations: 7.922 kB / 298 MB, free: 0.7773 MB / 282.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 8.003e-05/0.006862, allocations: 143.5 kB / 298.1 MB, free: 0.6211 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.684e-06/0.006869, allocations: 0 / 298.1 MB, free: 0.6211 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.097e-06/0.006878, allocations: 7.031 kB / 298.2 MB, free: 0.6172 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.00688, allocations: 0 / 298.2 MB, free: 0.6172 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.543e-06/0.006881, allocations: 0 / 298.2 MB, free: 0.6172 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.385e-06/0.006884, allocations: 0 / 298.2 MB, free: 0.6172 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.865e-05/0.006942, allocations: 65.84 kB / 298.2 MB, free: 0.5352 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.253e-06/0.006944, allocations: 0 / 298.2 MB, free: 0.5352 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.723e-06/0.006945, allocations: 3.984 kB / 298.2 MB, free: 0.5312 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.24e-06/0.006951, allocations: 0 / 298.2 MB, free: 0.5312 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.783e-06/0.006952, allocations: 0 / 298.2 MB, free: 0.5312 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.949e-06/0.006957, allocations: 4 kB / 298.2 MB, free: 0.5273 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.81e-07/0.006958, allocations: 0 / 298.2 MB, free: 0.5273 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.006959, allocations: 4 kB / 298.2 MB, free: 0.5234 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.108e-05/0.007051, allocations: 116.4 kB / 298.3 MB, free: 388 kB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.627e-05/0.007067, allocations: 4 kB / 298.3 MB, free: 384 kB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.086e-05/0.007078, allocations: 0 / 298.3 MB, free: 384 kB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.836e-06/0.007086, allocations: 0 / 298.3 MB, free: 384 kB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.785e-06/0.007089, allocations: 0 / 298.3 MB, free: 384 kB / 282.7 MB Notification: Performance of sorting global known variables: time 7.073e-06/0.007096, allocations: 4.859 kB / 298.4 MB, free: 376 kB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.007096, allocations: 0 / 298.4 MB, free: 376 kB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001963/0.007293, allocations: 23.94 kB / 298.4 MB, free: 352 kB / 282.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.0003429/0.007636, allocations: 154 kB / 298.5 MB, free: 212 kB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.000106/0.007742, allocations: 123.5 kB / 298.6 MB, free: 60 kB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.566e-06/0.007745, allocations: 0 / 298.6 MB, free: 60 kB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 5.33e-05/0.007798, allocations: 89.95 kB / 298.7 MB, free: 15.95 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 5.98e-05/0.007858, allocations: 15.92 kB / 298.8 MB, free: 15.93 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001716/0.00803, allocations: 105.4 kB / 298.9 MB, free: 15.8 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.525e-05/0.008065, allocations: 55.47 kB / 298.9 MB, free: 15.72 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 6.002e-06/0.008071, allocations: 4 kB / 298.9 MB, free: 15.72 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.666e-05/0.008118, allocations: 55.38 kB / 299 MB, free: 15.66 MB / 298.7 MB Notification: Performance of SimCode: time 9.21e-07/0.008119, allocations: 0 / 299 MB, free: 15.66 MB / 298.7 MB Notification: Performance of Templates: time 0.003138/0.01126, allocations: 0.7451 MB / 299.7 MB, free: 14.93 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.sim & ./ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_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.7516463939100504]