Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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.001306/0.001306, allocations: 89.05 kB / 9.989 MB, free: 0.6992 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.002242/0.003548, allocations: 452 kB / 10.43 MB, free: 264 kB / 10.45 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.001132/0.001132, allocations: 161.1 kB / 11.33 MB, free: 2.84 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.002236/0.003368, allocations: 483.5 kB / 11.8 MB, free: 2.363 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9015/0.9015, allocations: 158.6 MB / 171.2 MB, free: 2.504 MB / 170.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1462/1.048, allocations: 49.51 MB / 220.7 MB, free: 1.355 MB / 218.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1465/0.1465, allocations: 32.35 MB / 253.8 MB, free: 220 kB / 250.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.01922/0.1657, allocations: 12.3 MB / 266.1 MB, free: 3.875 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_ModelicaTest.Math.TestScalarFunctions") translateModel(ModelicaTest.Math.TestScalarFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Math.TestScalarFunctions") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 3.406e-06/3.406e-06, allocations: 4 kB / 267.4 MB, free: 2.574 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.293e-05/2.634e-05, allocations: 6.25 kB / 267.4 MB, free: 2.566 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.00143/0.001457, allocations: 0.5478 MB / 267.9 MB, free: 2.012 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001375/0.002831, allocations: 1.451 MB / 269.4 MB, free: 0.5391 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.233e-05/0.002844, allocations: 0 / 269.4 MB, free: 0.5391 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 3.246e-06/0.002847, allocations: 0 / 269.4 MB, free: 0.5391 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 1.102e-06/0.002848, allocations: 0 / 269.4 MB, free: 0.5391 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003276/0.003176, allocations: 103.4 kB / 269.5 MB, free: 448 kB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 4.91e-05/0.003225, allocations: 8 kB / 269.5 MB, free: 440 kB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.038e-05/0.003255, allocations: 3.984 kB / 269.5 MB, free: 436 kB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.873e-05/0.003284, allocations: 4 kB / 269.5 MB, free: 432 kB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.876e-05/0.003313, allocations: 0 / 269.5 MB, free: 432 kB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 8.797e-06/0.003321, allocations: 3.938 kB / 269.5 MB, free: 428 kB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002366/0.003558, allocations: 67.88 kB / 269.6 MB, free: 360 kB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 9.177e-06/0.003567, allocations: 0 / 269.6 MB, free: 360 kB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 1.127e-05/0.003578, allocations: 0 / 269.6 MB, free: 360 kB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 8.685e-05/0.003665, allocations: 27.92 kB / 269.6 MB, free: 332 kB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.103e-05/0.003676, allocations: 0 / 269.6 MB, free: 332 kB / 266.7 MB Notification: Performance of FrontEnd: time 7.21e-07/0.003677, allocations: 0 / 269.6 MB, free: 332 kB / 266.7 MB Notification: Performance of Transformations before backend: time 8.005e-06/0.003685, allocations: 0 / 269.6 MB, free: 332 kB / 266.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.0002197/0.003905, allocations: 246.5 kB / 269.8 MB, free: 56 kB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.694e-05/0.003932, allocations: 16.03 kB / 269.9 MB, free: 40 kB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.141e-05/0.003963, allocations: 0.9375 kB / 269.9 MB, free: 40 kB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.162e-05/0.004035, allocations: 109.8 kB / 270 MB, free: 15.91 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.01e-05/0.004045, allocations: 4.375 kB / 270 MB, free: 15.9 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.487e-05/0.00406, allocations: 4.312 kB / 270 MB, free: 15.9 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.303e-05/0.004133, allocations: 59.91 kB / 270 MB, free: 15.83 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.51e-06/0.004138, allocations: 192 / 270 MB, free: 15.83 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.034e-06/0.004145, allocations: 384 / 270 MB, free: 15.83 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.468e-06/0.00415, allocations: 3.938 kB / 270 MB, free: 15.82 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.834e-05/0.004168, allocations: 25.7 kB / 270.1 MB, free: 15.79 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.719e-05/0.004245, allocations: 76.97 kB / 270.1 MB, free: 15.7 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.9e-05/0.004294, allocations: 44.31 kB / 270.2 MB, free: 15.64 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.547e-05/0.00431, allocations: 30.56 kB / 270.2 MB, free: 15.61 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.927e-06/0.004314, allocations: 0 / 270.2 MB, free: 15.61 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.648e-05/0.00435, allocations: 64.27 kB / 270.3 MB, free: 15.53 MB / 282.7 MB Notification: Performance of pre-optimization done (n=1): time 8.12e-07/0.004351, allocations: 0 / 270.3 MB, free: 15.53 MB / 282.7 MB Notification: Performance of matching and sorting (n=1): time 0.000131/0.004482, allocations: 118.8 kB / 270.4 MB, free: 15.39 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.805e-05/0.00454, allocations: 154.2 kB / 270.5 MB, free: 15.2 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.492e-05/0.004575, allocations: 89.86 kB / 270.6 MB, free: 15.1 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 8.827e-06/0.004584, allocations: 25.83 kB / 270.6 MB, free: 15.07 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.273e-05/0.004606, allocations: 84.14 kB / 270.7 MB, free: 14.98 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.33e-05/0.00463, allocations: 4 kB / 270.7 MB, free: 14.98 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.647e-05/0.004656, allocations: 13.7 kB / 270.7 MB, free: 14.96 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 8.563e-05/0.004742, allocations: 318.8 kB / 271.1 MB, free: 14.64 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.945e-05/0.004761, allocations: 29.7 kB / 271.1 MB, free: 14.61 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.902e-05/0.00478, allocations: 25.7 kB / 271.1 MB, free: 14.57 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.753e-05/0.004828, allocations: 64.2 kB / 271.2 MB, free: 14.5 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.965e-06/0.004831, allocations: 0 / 271.2 MB, free: 14.5 MB / 282.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.757e-05/0.004898, allocations: 93.09 kB / 271.3 MB, free: 14.39 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.973e-05/0.004938, allocations: 33.8 kB / 271.3 MB, free: 14.35 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.621e-06/0.004944, allocations: 0 / 271.3 MB, free: 14.35 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.807e-06/0.004953, allocations: 0 / 271.3 MB, free: 14.35 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.885e-06/0.004955, allocations: 4 kB / 271.3 MB, free: 14.34 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.986e-06/0.004958, allocations: 0 / 271.3 MB, free: 14.34 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.974e-05/0.004978, allocations: 0 / 271.3 MB, free: 14.34 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.653e-05/0.004995, allocations: 7.938 kB / 271.3 MB, free: 14.34 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 6.089e-05/0.005056, allocations: 139.5 kB / 271.4 MB, free: 14.18 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.366e-06/0.005064, allocations: 0 / 271.4 MB, free: 14.18 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.845e-06/0.005072, allocations: 3 kB / 271.5 MB, free: 14.18 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.005074, allocations: 4 kB / 271.5 MB, free: 14.18 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.373e-06/0.005075, allocations: 3.938 kB / 271.5 MB, free: 14.18 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.384e-06/0.005078, allocations: 7.938 kB / 271.5 MB, free: 14.17 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.419e-05/0.005122, allocations: 65.8 kB / 271.5 MB, free: 14.09 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.283e-06/0.005123, allocations: 0 / 271.5 MB, free: 14.09 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.41e-07/0.005124, allocations: 0 / 271.5 MB, free: 14.09 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.695e-06/0.005131, allocations: 11.97 kB / 271.5 MB, free: 14.07 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.082e-06/0.005132, allocations: 0 / 271.5 MB, free: 14.07 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.437e-06/0.005136, allocations: 0 / 271.5 MB, free: 14.07 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.005138, allocations: 3.984 kB / 271.5 MB, free: 14.07 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.784e-06/0.005139, allocations: 0 / 271.5 MB, free: 14.07 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.427e-05/0.005214, allocations: 120.5 kB / 271.7 MB, free: 13.92 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.031e-05/0.005224, allocations: 0 / 271.7 MB, free: 13.92 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.776e-06/0.005233, allocations: 0 / 271.7 MB, free: 13.92 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.215e-06/0.005241, allocations: 0 / 271.7 MB, free: 13.92 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.687e-06/0.005245, allocations: 4 kB / 271.7 MB, free: 13.92 MB / 282.7 MB Notification: Performance of sorting global known variables: time 9.488e-06/0.005254, allocations: 8.859 kB / 271.7 MB, free: 13.91 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.005254, allocations: 0 / 271.7 MB, free: 13.91 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001136/0.005368, allocations: 8 kB / 271.7 MB, free: 13.9 MB / 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.0002446/0.005612, allocations: 136 kB / 271.8 MB, free: 13.76 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 8.906e-05/0.005701, allocations: 119.7 kB / 271.9 MB, free: 13.61 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.916e-06/0.005704, allocations: 0 / 271.9 MB, free: 13.61 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 3.213e-05/0.005736, allocations: 85.97 kB / 272 MB, free: 13.51 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 5.275e-05/0.005789, allocations: 11.94 kB / 272 MB, free: 13.5 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001462/0.005935, allocations: 104 kB / 272.1 MB, free: 13.36 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.513e-05/0.00596, allocations: 55.36 kB / 272.2 MB, free: 13.29 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 5.21e-06/0.005966, allocations: 0 / 272.2 MB, free: 13.29 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.256e-05/0.005998, allocations: 59.5 kB / 272.2 MB, free: 13.23 MB / 282.7 MB Notification: Performance of SimCode: time 4.91e-07/0.005999, allocations: 0 / 272.2 MB, free: 13.23 MB / 282.7 MB Notification: Performance of Templates: time 0.001933/0.007932, allocations: 0.6423 MB / 272.9 MB, free: 12.59 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Math.TestScalarFunctions.makefile [Timeout 660] (rm -f ModelicaTest_3.2.3_ModelicaTest.Math.TestScalarFunctions.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Math.TestScalarFunctions.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Math.TestScalarFunctions.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Math.TestScalarFunctions.sim & ./ModelicaTest_3.2.3_ModelicaTest.Math.TestScalarFunctions -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Math.TestScalarFunctions.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Math.TestScalarFunctions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Math/TestScalarFunctions/TestScalarFunctions.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.5554703334346414]