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.001487/0.001487, allocations: 111.1 kB / 20.44 MB, free: 1.062 MB / 14.72 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.001959/0.001959, allocations: 215.8 kB / 23.73 MB, free: 4.156 MB / 14.72 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.555/1.555, allocations: 230.6 MB / 257.5 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] 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.2229/0.2229, allocations: 44.93 MB / 358.8 MB, free: 6.121 MB / 286.1 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: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.003249/0.003249, allocations: 71.89 kB / 0.4935 GB, free: 10.03 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3688/0.372, allocations: 65.47 MB / 0.5574 GB, free: 7.434 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001788/0.3738, allocations: 491.7 kB / 0.5579 GB, free: 6.953 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002517/0.3763, allocations: 1.579 MB / 0.5595 GB, free: 5.359 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.931e-05/0.3763, allocations: 3.938 kB / 0.5595 GB, free: 5.355 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.629e-05/0.3764, allocations: 0 / 0.5595 GB, free: 5.355 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.111e-06/0.3764, allocations: 0 / 0.5595 GB, free: 5.355 MB / 398.1 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.0007072/0.3771, allocations: 166.6 kB / 0.5596 GB, free: 5.195 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.013e-05/0.3771, allocations: 4 kB / 0.5596 GB, free: 5.191 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.989e-05/0.3772, allocations: 0 / 0.5596 GB, free: 5.191 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.905e-05/0.3772, allocations: 7.938 kB / 0.5596 GB, free: 5.184 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.911e-05/0.3772, allocations: 0 / 0.5596 GB, free: 5.184 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.085e-05/0.3772, allocations: 3.984 kB / 0.5596 GB, free: 5.18 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003978/0.3776, allocations: 115.8 kB / 0.5597 GB, free: 5.066 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.997e-06/0.3777, allocations: 0 / 0.5597 GB, free: 5.066 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.779e-05/0.3777, allocations: 4 kB / 0.5597 GB, free: 5.062 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001275/0.3778, allocations: 47.59 kB / 0.5598 GB, free: 5.02 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.207e-06/0.3778, allocations: 0 / 0.5598 GB, free: 5.02 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.3778, allocations: 0 / 0.5598 GB, free: 5.02 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.58e-06/0.3778, allocations: 0 / 0.5598 GB, free: 5.02 MB / 398.1 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.000347/0.3782, allocations: 274.8 kB / 0.56 GB, free: 4.719 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.523e-05/0.3782, allocations: 11.97 kB / 0.5601 GB, free: 4.707 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.105e-05/0.3782, allocations: 0.9375 kB / 0.5601 GB, free: 4.707 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.457e-05/0.3783, allocations: 102.5 kB / 0.5602 GB, free: 4.582 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.921e-05/0.3783, allocations: 8.312 kB / 0.5602 GB, free: 4.574 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.238e-05/0.3784, allocations: 384 / 0.5602 GB, free: 4.574 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001142/0.3785, allocations: 67.66 kB / 0.5602 GB, free: 4.496 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.105e-06/0.3785, allocations: 4 kB / 0.5602 GB, free: 4.492 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.265e-05/0.3785, allocations: 3.984 kB / 0.5602 GB, free: 4.488 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.368e-06/0.3785, allocations: 0 / 0.5602 GB, free: 4.488 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.576e-05/0.3785, allocations: 29.69 kB / 0.5603 GB, free: 4.453 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001176/0.3787, allocations: 97.33 kB / 0.5604 GB, free: 4.328 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.54e-05/0.3787, allocations: 40.28 kB / 0.5604 GB, free: 4.273 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.624e-05/0.3788, allocations: 38.66 kB / 0.5604 GB, free: 4.227 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.207e-06/0.3788, allocations: 0 / 0.5604 GB, free: 4.227 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.471e-05/0.3788, allocations: 60.25 kB / 0.5605 GB, free: 4.152 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 8.12e-07/0.3788, allocations: 7.938 kB / 0.5605 GB, free: 4.145 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002218/0.379, allocations: 114.8 kB / 0.5606 GB, free: 4.008 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.701e-05/0.3791, allocations: 85.11 kB / 0.5607 GB, free: 3.906 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.562e-05/0.3792, allocations: 93.81 kB / 0.5608 GB, free: 3.805 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.587e-05/0.3792, allocations: 25.7 kB / 0.5608 GB, free: 3.773 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.127e-05/0.3792, allocations: 84.12 kB / 0.5609 GB, free: 3.688 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.607e-05/0.3793, allocations: 0 / 0.5609 GB, free: 3.688 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.166e-05/0.3793, allocations: 13.72 kB / 0.5609 GB, free: 3.668 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001393/0.3794, allocations: 310.8 kB / 0.5612 GB, free: 3.355 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.483e-05/0.3795, allocations: 25.7 kB / 0.5612 GB, free: 3.324 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.764e-05/0.3795, allocations: 37.83 kB / 0.5613 GB, free: 3.281 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.363e-05/0.3796, allocations: 68.2 kB / 0.5613 GB, free: 3.199 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.3796, allocations: 0 / 0.5613 GB, free: 3.199 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.062e-05/0.3797, allocations: 85.09 kB / 0.5614 GB, free: 3.098 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.448e-05/0.3797, allocations: 33.7 kB / 0.5614 GB, free: 3.059 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.692e-06/0.3797, allocations: 0 / 0.5614 GB, free: 3.059 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.78e-05/0.3797, allocations: 3.938 kB / 0.5614 GB, free: 3.055 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.22e-07/0.3797, allocations: 0 / 0.5614 GB, free: 3.055 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.972e-06/0.3797, allocations: 0 / 0.5614 GB, free: 3.055 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.411e-05/0.3797, allocations: 0 / 0.5614 GB, free: 3.055 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.241e-06/0.3797, allocations: 8.094 kB / 0.5614 GB, free: 3.047 MB / 398.1 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 0.0001055/0.3798, allocations: 139.5 kB / 0.5616 GB, free: 2.895 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.099e-05/0.3799, allocations: 4 kB / 0.5616 GB, free: 2.891 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.484e-05/0.3799, allocations: 6.938 kB / 0.5616 GB, free: 2.883 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.403e-06/0.3799, allocations: 3.938 kB / 0.5616 GB, free: 2.879 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.269e-06/0.3799, allocations: 0 / 0.5616 GB, free: 2.879 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.773e-06/0.3799, allocations: 0 / 0.5616 GB, free: 2.879 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.327e-05/0.38, allocations: 97.27 kB / 0.5617 GB, free: 2.754 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.01e-07/0.38, allocations: 4 kB / 0.5617 GB, free: 2.75 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.017e-06/0.38, allocations: 7.984 kB / 0.5617 GB, free: 2.742 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.022e-06/0.38, allocations: 7.938 kB / 0.5617 GB, free: 2.734 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.023e-06/0.38, allocations: 0 / 0.5617 GB, free: 2.734 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.876e-06/0.38, allocations: 3.938 kB / 0.5617 GB, free: 2.73 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.38, allocations: 0 / 0.5617 GB, free: 2.73 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001322/0.3801, allocations: 116.5 kB / 0.5618 GB, free: 2.586 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.785e-06/0.3801, allocations: 4 kB / 0.5618 GB, free: 2.582 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.142e-05/0.3801, allocations: 0 / 0.5618 GB, free: 2.582 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.032e-05/0.3801, allocations: 3.938 kB / 0.5618 GB, free: 2.578 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.509e-05/0.3802, allocations: 0 / 0.5618 GB, free: 2.578 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.328e-06/0.3802, allocations: 4 kB / 0.5618 GB, free: 2.574 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.992e-05/0.3802, allocations: 83.31 kB / 0.5619 GB, free: 2.492 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3802, allocations: 0 / 0.5619 GB, free: 2.492 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002176/0.3804, allocations: 15.94 kB / 0.5619 GB, free: 2.477 MB / 398.1 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.0002942/0.3807, allocations: 140.4 kB / 0.5621 GB, free: 2.336 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001353/0.3808, allocations: 118.7 kB / 0.5622 GB, free: 2.195 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.3808, allocations: 0 / 0.5622 GB, free: 2.195 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.645e-05/0.3809, allocations: 81.11 kB / 0.5623 GB, free: 2.098 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001233/0.381, allocations: 8.125 kB / 0.5623 GB, free: 2.09 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002102/0.3812, allocations: 118.8 kB / 0.5624 GB, free: 1.941 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.247e-05/0.3813, allocations: 51.36 kB / 0.5624 GB, free: 1.871 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.272e-06/0.3813, allocations: 0 / 0.5624 GB, free: 1.871 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.264e-05/0.3813, allocations: 11.44 kB / 0.5624 GB, free: 1.859 MB / 398.1 MB Notification: Performance of SimCode: time 3e-07/0.3813, allocations: 0 / 0.5624 GB, free: 1.859 MB / 398.1 MB Notification: Performance of Templates: time 0.003228/0.3845, allocations: 0.6419 MB / 0.5631 GB, free: 1.223 MB / 398.1 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=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.2077008076012135]