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.001593/0.001593, allocations: 112.5 kB / 21.19 MB, free: 0.7578 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.00207/0.00207, allocations: 209.8 kB / 24.49 MB, free: 4.133 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.484/1.484, allocations: 230.6 MB / 258.3 MB, free: 8.215 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.23/0.23, allocations: 44.91 MB / 359.6 MB, free: 6.328 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.001964/0.001964, allocations: 67.89 kB / 0.4943 GB, free: 10.24 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3618/0.3638, allocations: 65.46 MB / 0.5582 GB, free: 7.711 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.00174/0.3655, allocations: 0.4886 MB / 0.5587 GB, free: 7.258 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002368/0.3679, allocations: 1.664 MB / 0.5603 GB, free: 5.578 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.481e-05/0.3679, allocations: 0 / 0.5603 GB, free: 5.578 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 8.115e-06/0.3679, allocations: 0 / 0.5603 GB, free: 5.578 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 4.048e-06/0.368, allocations: 4 kB / 0.5603 GB, free: 5.574 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.000616/0.3686, allocations: 159.3 kB / 0.5605 GB, free: 5.422 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.515e-05/0.3686, allocations: 7.984 kB / 0.5605 GB, free: 5.414 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.129e-05/0.3686, allocations: 3.938 kB / 0.5605 GB, free: 5.41 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.33e-05/0.3687, allocations: 0 / 0.5605 GB, free: 5.41 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.164e-05/0.3687, allocations: 8 kB / 0.5605 GB, free: 5.402 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.634e-06/0.3687, allocations: 0 / 0.5605 GB, free: 5.402 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003502/0.369, allocations: 119.9 kB / 0.5606 GB, free: 5.285 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.111e-06/0.369, allocations: 0 / 0.5606 GB, free: 5.285 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.457e-05/0.3691, allocations: 0 / 0.5606 GB, free: 5.285 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001168/0.3692, allocations: 43.61 kB / 0.5607 GB, free: 5.246 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.3692, allocations: 0 / 0.5607 GB, free: 5.246 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.3692, allocations: 0 / 0.5607 GB, free: 5.246 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.991e-06/0.3692, allocations: 0 / 0.5607 GB, free: 5.246 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.000329/0.3695, allocations: 278.8 kB / 0.5609 GB, free: 4.941 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.009e-05/0.3695, allocations: 15.91 kB / 0.5609 GB, free: 4.926 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.054e-05/0.3696, allocations: 4.875 kB / 0.561 GB, free: 4.922 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.55e-05/0.3697, allocations: 106.5 kB / 0.5611 GB, free: 4.793 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.613e-06/0.3697, allocations: 384 / 0.5611 GB, free: 4.793 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.008e-05/0.3697, allocations: 384 / 0.5611 GB, free: 4.793 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.808e-05/0.3698, allocations: 38 kB / 0.5611 GB, free: 4.75 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.672e-06/0.3698, allocations: 0 / 0.5611 GB, free: 4.75 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.082e-06/0.3698, allocations: 0 / 0.5611 GB, free: 4.75 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.456e-06/0.3698, allocations: 4 kB / 0.5611 GB, free: 4.746 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.52e-05/0.3698, allocations: 3.984 kB / 0.5611 GB, free: 4.742 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001312/0.3699, allocations: 116.8 kB / 0.5612 GB, free: 4.586 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.309e-05/0.37, allocations: 22.52 kB / 0.5612 GB, free: 4.555 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.66e-05/0.37, allocations: 8.953 kB / 0.5612 GB, free: 4.543 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.066e-06/0.37, allocations: 0 / 0.5612 GB, free: 4.543 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.949e-05/0.37, allocations: 68.19 kB / 0.5613 GB, free: 4.461 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 7.81e-07/0.37, allocations: 0 / 0.5613 GB, free: 4.461 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001504/0.3702, allocations: 59.41 kB / 0.5614 GB, free: 4.391 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.395e-05/0.3702, allocations: 85.05 kB / 0.5614 GB, free: 4.289 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.068e-05/0.3703, allocations: 93.81 kB / 0.5615 GB, free: 4.188 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.441e-05/0.3703, allocations: 25.7 kB / 0.5616 GB, free: 4.156 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.342e-05/0.3703, allocations: 80.14 kB / 0.5616 GB, free: 4.074 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.884e-05/0.3704, allocations: 4 kB / 0.5616 GB, free: 4.07 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.656e-05/0.3704, allocations: 13.83 kB / 0.5616 GB, free: 4.051 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001319/0.3705, allocations: 314.8 kB / 0.5619 GB, free: 3.734 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.129e-05/0.3705, allocations: 8 kB / 0.562 GB, free: 3.727 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.498e-06/0.3705, allocations: 0 / 0.562 GB, free: 3.727 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.123e-05/0.3706, allocations: 64.27 kB / 0.562 GB, free: 3.648 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.52e-07/0.3706, allocations: 0 / 0.562 GB, free: 3.648 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.302e-05/0.3707, allocations: 63.39 kB / 0.5621 GB, free: 3.574 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.241e-05/0.3707, allocations: 37.64 kB / 0.5621 GB, free: 3.531 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.027e-06/0.3707, allocations: 8.031 kB / 0.5621 GB, free: 3.523 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.468e-05/0.3707, allocations: 0 / 0.5621 GB, free: 3.523 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.1e-07/0.3707, allocations: 0 / 0.5621 GB, free: 3.523 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.546e-06/0.3707, allocations: 0 / 0.5621 GB, free: 3.523 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.348e-05/0.3707, allocations: 0 / 0.5621 GB, free: 3.523 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.216e-05/0.3707, allocations: 4 kB / 0.5621 GB, free: 3.52 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 8.72e-05/0.3708, allocations: 139.5 kB / 0.5623 GB, free: 3.367 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.071e-05/0.3708, allocations: 7.875 kB / 0.5623 GB, free: 3.359 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.158e-05/0.3709, allocations: 10.98 kB / 0.5623 GB, free: 3.348 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.103e-06/0.3709, allocations: 4 kB / 0.5623 GB, free: 3.344 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.745e-06/0.3709, allocations: 0 / 0.5623 GB, free: 3.344 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.252e-06/0.3709, allocations: 0 / 0.5623 GB, free: 3.344 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.154e-05/0.371, allocations: 116.7 kB / 0.5624 GB, free: 3.188 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.12e-07/0.371, allocations: 0 / 0.5624 GB, free: 3.188 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.2e-07/0.371, allocations: 4 kB / 0.5624 GB, free: 3.184 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.188e-06/0.371, allocations: 3.938 kB / 0.5624 GB, free: 3.18 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.99e-06/0.371, allocations: 0 / 0.5624 GB, free: 3.18 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.675e-06/0.371, allocations: 3.984 kB / 0.5624 GB, free: 3.176 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.01e-07/0.371, allocations: 0 / 0.5624 GB, free: 3.176 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.865e-05/0.3711, allocations: 94.78 kB / 0.5625 GB, free: 3.059 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.297e-06/0.3711, allocations: 0 / 0.5625 GB, free: 3.059 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.475e-05/0.3711, allocations: 7.922 kB / 0.5625 GB, free: 3.051 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.504e-05/0.3711, allocations: 4 kB / 0.5625 GB, free: 3.047 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.056e-05/0.3711, allocations: 3.984 kB / 0.5625 GB, free: 3.043 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.205e-06/0.3711, allocations: 0 / 0.5625 GB, free: 3.043 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.907e-05/0.3711, allocations: 75.28 kB / 0.5626 GB, free: 2.969 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3711, allocations: 0 / 0.5626 GB, free: 2.969 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002137/0.3714, allocations: 23.97 kB / 0.5626 GB, free: 2.945 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.0002761/0.3716, allocations: 140.2 kB / 0.5627 GB, free: 2.805 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.274e-05/0.3717, allocations: 59.41 kB / 0.5628 GB, free: 2.734 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.3717, allocations: 0 / 0.5628 GB, free: 2.734 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.888e-05/0.3718, allocations: 59.39 kB / 0.5628 GB, free: 2.664 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001149/0.3719, allocations: 4.125 kB / 0.5629 GB, free: 2.66 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001903/0.3721, allocations: 118.7 kB / 0.563 GB, free: 2.512 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002812/0.3724, allocations: 0.669 MB / 0.5636 GB, free: 1.816 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.187e-05/0.3724, allocations: 7.438 kB / 0.5636 GB, free: 1.809 MB / 398.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3724, allocations: 0 / 0.5636 GB, free: 1.809 MB / 398.1 MB Notification: Performance of Templates: time 0.002037/0.3744, allocations: 0.675 MB / 0.5643 GB, free: 1.133 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/TestScalarFunctions/TestScalarFunctions.csv","/var/lib/jenkins1/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: 7.343455987051129]