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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Math.TestScalarFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions") translateModel(ModelicaTest.Math.TestScalarFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001236/0.001236, allocations: 112.8 kB / 17.74 MB, free: 5.43 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001344/0.001344, allocations: 187.1 kB / 18.66 MB, free: 4.508 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.297/1.297, allocations: 222.9 MB / 242.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1915/0.1915, allocations: 44.19 MB / 336.7 MB, free: 2.695 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001169/0.001169, allocations: 60.09 kB / 470.4 MB, free: 13.24 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3154/0.3166, allocations: 60.83 MB / 0.5188 GB, free: 3.605 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001481/0.3181, allocations: 0.4923 MB / 0.5193 GB, free: 3.309 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001494/0.3196, allocations: 1.387 MB / 0.5207 GB, free: 2.301 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.418e-05/0.3196, allocations: 1.406 kB / 0.5207 GB, free: 2.301 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.598e-05/0.3196, allocations: 0 / 0.5207 GB, free: 2.301 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 4.87e-06/0.3197, allocations: 3.938 kB / 0.5207 GB, free: 2.297 MB / 382.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.0004687/0.3201, allocations: 101.2 kB / 0.5208 GB, free: 2.242 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.132e-05/0.3202, allocations: 2.141 kB / 0.5208 GB, free: 2.242 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.842e-05/0.3202, allocations: 1.906 kB / 0.5208 GB, free: 2.242 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.345e-05/0.3203, allocations: 5.312 kB / 0.5208 GB, free: 2.238 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.143e-05/0.3203, allocations: 3.938 kB / 0.5208 GB, free: 2.234 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.314e-06/0.3203, allocations: 5.531 kB / 0.5208 GB, free: 2.23 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002926/0.3206, allocations: 69.55 kB / 0.5208 GB, free: 2.203 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.737e-06/0.3206, allocations: 0.7031 kB / 0.5208 GB, free: 2.203 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 1.733e-05/0.3206, allocations: 1.031 kB / 0.5208 GB, free: 2.203 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 9.016e-05/0.3207, allocations: 24.77 kB / 0.5209 GB, free: 2.195 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.3207, allocations: 4 kB / 0.5209 GB, free: 2.191 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.3208, allocations: 0 / 0.5209 GB, free: 2.191 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.1e-06/0.3208, allocations: 1.188 kB / 0.5209 GB, free: 2.191 MB / 382.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.0002446/0.321, allocations: 345.1 kB / 0.5212 GB, free: 1.812 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.971e-05/0.3211, allocations: 9.531 kB / 0.5212 GB, free: 1.812 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.758e-05/0.3211, allocations: 1.547 kB / 0.5212 GB, free: 1.812 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.557e-05/0.3212, allocations: 161.3 kB / 0.5214 GB, free: 1.617 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.099e-05/0.3212, allocations: 1.625 kB / 0.5214 GB, free: 1.617 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.684e-06/0.3212, allocations: 1.781 kB / 0.5214 GB, free: 1.617 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.325e-05/0.3213, allocations: 36.89 kB / 0.5214 GB, free: 1.578 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.325e-06/0.3213, allocations: 4.938 kB / 0.5214 GB, free: 1.574 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.007e-06/0.3213, allocations: 0 / 0.5214 GB, free: 1.574 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.499e-06/0.3213, allocations: 1.25 kB / 0.5214 GB, free: 1.574 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.92e-05/0.3213, allocations: 6.188 kB / 0.5214 GB, free: 1.57 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.52e-05/0.3214, allocations: 144.6 kB / 0.5216 GB, free: 1.383 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.125e-05/0.3215, allocations: 15.95 kB / 0.5216 GB, free: 1.359 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.435e-05/0.3215, allocations: 7.125 kB / 0.5216 GB, free: 1.352 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.975e-06/0.3215, allocations: 7.938 kB / 0.5216 GB, free: 1.344 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.046e-05/0.3215, allocations: 62.16 kB / 0.5216 GB, free: 1.27 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.403e-06/0.3215, allocations: 3.984 kB / 0.5216 GB, free: 1.266 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001476/0.3217, allocations: 70.55 kB / 0.5217 GB, free: 1.195 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.967e-05/0.3217, allocations: 77.86 kB / 0.5218 GB, free: 1.102 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.317e-05/0.3217, allocations: 89.86 kB / 0.5219 GB, free: 1.004 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.931e-06/0.3217, allocations: 26.92 kB / 0.5219 GB, free: 0.9727 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.124e-05/0.3218, allocations: 84.27 kB / 0.522 GB, free: 0.8867 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.721e-05/0.3218, allocations: 1.719 kB / 0.522 GB, free: 0.8867 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.745e-05/0.3218, allocations: 16.56 kB / 0.522 GB, free: 0.8672 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.388e-05/0.3219, allocations: 311.7 kB / 0.5223 GB, free: 0.5547 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.288e-06/0.3219, allocations: 1.469 kB / 0.5223 GB, free: 0.5547 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.62e-06/0.3219, allocations: 1.031 kB / 0.5223 GB, free: 0.5547 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.451e-05/0.3219, allocations: 65.45 kB / 0.5224 GB, free: 492 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.3219, allocations: 4.062 kB / 0.5224 GB, free: 488 kB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.042e-05/0.322, allocations: 63.95 kB / 0.5224 GB, free: 420 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.186e-05/0.322, allocations: 35.34 kB / 0.5225 GB, free: 384 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.649e-06/0.322, allocations: 1.406 kB / 0.5225 GB, free: 384 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.345e-05/0.3221, allocations: 0 / 0.5225 GB, free: 384 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.525e-06/0.3221, allocations: 4.656 kB / 0.5225 GB, free: 380 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.959e-06/0.3221, allocations: 5.281 kB / 0.5225 GB, free: 376 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.504e-05/0.3221, allocations: 0 / 0.5225 GB, free: 376 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.714e-06/0.3221, allocations: 2.078 kB / 0.5225 GB, free: 376 kB / 382.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 4.977e-05/0.3222, allocations: 142.3 kB / 0.5226 GB, free: 220 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.987e-06/0.3222, allocations: 5.688 kB / 0.5226 GB, free: 216 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.347e-06/0.3222, allocations: 7.875 kB / 0.5226 GB, free: 208 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.21e-07/0.3222, allocations: 0 / 0.5226 GB, free: 208 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.577e-06/0.3222, allocations: 1 kB / 0.5226 GB, free: 208 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.335e-06/0.3222, allocations: 0 / 0.5226 GB, free: 208 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.054e-05/0.3223, allocations: 146.5 kB / 0.5228 GB, free: 16 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.11e-07/0.3223, allocations: 0 / 0.5228 GB, free: 16 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.71e-07/0.3223, allocations: 0 / 0.5228 GB, free: 16 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.815e-06/0.3223, allocations: 5.734 kB / 0.5228 GB, free: 12 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.001e-06/0.3223, allocations: 0 / 0.5228 GB, free: 12 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.61e-07/0.3223, allocations: 8.781 kB / 0.5228 GB, free: 4 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.963e-06/0.3223, allocations: 0.5625 kB / 0.5228 GB, free: 4 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000107/0.3224, allocations: 93.45 kB / 0.5229 GB, free: 15.9 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.259e-05/0.3225, allocations: 81.86 kB / 0.5229 GB, free: 15.8 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.432e-05/0.3225, allocations: 5.734 kB / 0.5229 GB, free: 15.8 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.666e-06/0.3225, allocations: 1.094 kB / 0.5229 GB, free: 15.8 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.177e-05/0.3225, allocations: 0.7969 kB / 0.5229 GB, free: 15.8 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.265e-06/0.3225, allocations: 5.031 kB / 0.523 GB, free: 15.8 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.606e-05/0.3225, allocations: 76.19 kB / 0.523 GB, free: 15.72 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3226, allocations: 0 / 0.523 GB, free: 15.72 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0001969/0.3228, allocations: 10.2 kB / 0.523 GB, free: 15.72 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.0002586/0.323, allocations: 122.8 kB / 0.5232 GB, free: 15.63 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001026/0.3231, allocations: 70.39 kB / 0.5232 GB, free: 15.56 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.3231, allocations: 0 / 0.5232 GB, free: 15.56 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.402e-05/0.3232, allocations: 56.05 kB / 0.5233 GB, free: 15.5 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001368/0.3233, allocations: 5.844 kB / 0.5233 GB, free: 15.49 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001693/0.3235, allocations: 82.3 kB / 0.5234 GB, free: 15.39 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002274/0.3237, allocations: 0.675 MB / 0.524 GB, free: 14.7 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 4.95e-06/0.3237, allocations: 0 / 0.524 GB, free: 14.7 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.969e-06/0.3238, allocations: 8.344 kB / 0.524 GB, free: 14.69 MB / 398.1 MB Notification: Performance of SimCode: time 1.91e-07/0.3238, allocations: 1.344 kB / 0.524 GB, free: 14.69 MB / 398.1 MB Notification: Performance of Templates: time 0.002513/0.3263, allocations: 0.5269 MB / 0.5245 GB, free: 14.59 MB / 398.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.makefile (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) 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) Reference file matches