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.001278/0.001278, allocations: 104.2 kB / 17.63 MB, free: 5.523 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.001428/0.001428, allocations: 191.9 kB / 18.56 MB, free: 4.605 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.296/1.296, allocations: 222.9 MB / 242.2 MB, free: 15.21 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.2042/0.2042, allocations: 44.18 MB / 336.6 MB, free: 2.766 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001154/0.001155, allocations: 61.23 kB / 408.4 MB, free: 27.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1167/0.1179, allocations: 60.83 MB / 469.2 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001805/0.1197, allocations: 490.9 kB / 469.7 MB, free: 13.9 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001765/0.1215, allocations: 1.387 MB / 471.1 MB, free: 12.5 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.256e-05/0.1216, allocations: 0 / 471.1 MB, free: 12.5 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.272e-05/0.1216, allocations: 0 / 471.1 MB, free: 12.5 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.441e-06/0.1216, allocations: 0 / 471.1 MB, free: 12.5 MB / 350.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.0005463/0.1221, allocations: 107.6 kB / 471.2 MB, free: 12.39 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.766e-05/0.1222, allocations: 4 kB / 471.2 MB, free: 12.39 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.638e-05/0.1223, allocations: 4 kB / 471.2 MB, free: 12.39 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.717e-05/0.1223, allocations: 0 / 471.2 MB, free: 12.39 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.406e-05/0.1223, allocations: 0 / 471.2 MB, free: 12.39 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.193e-05/0.1223, allocations: 3.984 kB / 471.2 MB, free: 12.38 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001876/0.1225, allocations: 47.84 kB / 471.3 MB, free: 12.34 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.243e-06/0.1225, allocations: 4 kB / 471.3 MB, free: 12.33 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.959e-05/0.1226, allocations: 0 / 471.3 MB, free: 12.33 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001144/0.1227, allocations: 39.92 kB / 471.3 MB, free: 12.29 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.249e-06/0.1227, allocations: 0 / 471.3 MB, free: 12.29 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.176e-06/0.1227, allocations: 4 kB / 471.3 MB, free: 12.29 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.162e-06/0.1227, allocations: 0 / 471.3 MB, free: 12.29 MB / 350.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.0003177/0.123, allocations: 341.3 kB / 471.7 MB, free: 11.9 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.185e-05/0.1231, allocations: 12.03 kB / 471.7 MB, free: 11.89 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.269e-05/0.1231, allocations: 0.9375 kB / 471.7 MB, free: 11.89 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.427e-05/0.1232, allocations: 164.4 kB / 471.8 MB, free: 11.69 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.155e-05/0.1232, allocations: 4.375 kB / 471.8 MB, free: 11.69 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.082e-05/0.1233, allocations: 384 / 471.8 MB, free: 11.69 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.549e-05/0.1234, allocations: 34.02 kB / 471.9 MB, free: 11.65 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.655e-06/0.1234, allocations: 0 / 471.9 MB, free: 11.65 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.02e-05/0.1234, allocations: 0 / 471.9 MB, free: 11.65 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.659e-06/0.1234, allocations: 0 / 471.9 MB, free: 11.65 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.096e-05/0.1234, allocations: 7.938 kB / 471.9 MB, free: 11.64 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001244/0.1235, allocations: 149.7 kB / 472 MB, free: 11.45 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.969e-05/0.1236, allocations: 18.58 kB / 472 MB, free: 11.42 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.56e-05/0.1236, allocations: 12.89 kB / 472.1 MB, free: 11.4 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.374e-06/0.1236, allocations: 0 / 472.1 MB, free: 11.4 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.541e-05/0.1237, allocations: 60.2 kB / 472.1 MB, free: 11.33 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 9.72e-07/0.1237, allocations: 3.938 kB / 472.1 MB, free: 11.32 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001674/0.1239, allocations: 71.33 kB / 472.2 MB, free: 11.24 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.667e-05/0.1239, allocations: 77.11 kB / 472.3 MB, free: 11.15 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.915e-05/0.124, allocations: 93.98 kB / 472.4 MB, free: 11.05 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.175e-05/0.124, allocations: 29.7 kB / 472.4 MB, free: 11.01 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.38e-05/0.124, allocations: 80.14 kB / 472.5 MB, free: 10.93 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.607e-05/0.124, allocations: 0 / 472.5 MB, free: 10.93 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.551e-05/0.1241, allocations: 9.719 kB / 472.5 MB, free: 10.91 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.996e-05/0.1242, allocations: 310.8 kB / 472.8 MB, free: 10.6 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.488e-06/0.1242, allocations: 4 kB / 472.8 MB, free: 10.6 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.799e-06/0.1242, allocations: 0 / 472.8 MB, free: 10.6 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.858e-05/0.1243, allocations: 72.31 kB / 472.8 MB, free: 10.51 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.452e-06/0.1243, allocations: 0 / 472.8 MB, free: 10.51 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.211e-05/0.1243, allocations: 63.34 kB / 472.9 MB, free: 10.44 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.324e-05/0.1244, allocations: 33.64 kB / 472.9 MB, free: 10.4 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.9e-06/0.1244, allocations: 0 / 472.9 MB, free: 10.4 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.126e-05/0.1244, allocations: 0 / 472.9 MB, free: 10.4 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.144e-06/0.1244, allocations: 3.984 kB / 472.9 MB, free: 10.39 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.378e-06/0.1244, allocations: 0 / 472.9 MB, free: 10.39 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.64e-05/0.1245, allocations: 4 kB / 472.9 MB, free: 10.39 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.254e-06/0.1245, allocations: 4.031 kB / 473 MB, free: 10.39 MB / 350.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 7.433e-05/0.1245, allocations: 135.5 kB / 473.1 MB, free: 10.24 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.017e-05/0.1246, allocations: 7.938 kB / 473.1 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.818e-06/0.1246, allocations: 7.078 kB / 473.1 MB, free: 10.22 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.42e-07/0.1246, allocations: 0 / 473.1 MB, free: 10.22 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.1246, allocations: 0 / 473.1 MB, free: 10.22 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.285e-06/0.1246, allocations: 0 / 473.1 MB, free: 10.22 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.773e-05/0.1247, allocations: 145.7 kB / 473.2 MB, free: 10.03 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.516e-06/0.1247, allocations: 8 kB / 473.3 MB, free: 10.02 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.51e-07/0.1247, allocations: 4 kB / 473.3 MB, free: 10.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.335e-06/0.1247, allocations: 3.938 kB / 473.3 MB, free: 10.02 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.605e-06/0.1247, allocations: 3.984 kB / 473.3 MB, free: 10.01 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.146e-06/0.1247, allocations: 0 / 473.3 MB, free: 10.01 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.1247, allocations: 3.938 kB / 473.3 MB, free: 10.01 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.36e-05/0.1248, allocations: 98.67 kB / 473.4 MB, free: 9.887 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.44e-05/0.1249, allocations: 77.11 kB / 473.4 MB, free: 9.793 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.293e-05/0.1249, allocations: 3.938 kB / 473.4 MB, free: 9.789 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.308e-06/0.1249, allocations: 8.031 kB / 473.4 MB, free: 9.781 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.517e-05/0.1249, allocations: 0 / 473.4 MB, free: 9.781 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.214e-06/0.1249, allocations: 0 / 473.4 MB, free: 9.781 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.225e-05/0.125, allocations: 75.28 kB / 473.5 MB, free: 9.707 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.125, allocations: 0 / 473.5 MB, free: 9.707 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0001964/0.1252, allocations: 19.92 kB / 473.5 MB, free: 9.688 MB / 350.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.00028/0.1255, allocations: 143.6 kB / 473.7 MB, free: 9.547 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.906e-05/0.1256, allocations: 59.41 kB / 473.7 MB, free: 9.477 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.977e-06/0.1256, allocations: 0 / 473.7 MB, free: 9.477 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.258e-05/0.1256, allocations: 63.34 kB / 473.8 MB, free: 9.402 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001217/0.1257, allocations: 0 / 473.8 MB, free: 9.402 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001669/0.1259, allocations: 76.92 kB / 473.9 MB, free: 9.301 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002501/0.1262, allocations: 0.669 MB / 474.5 MB, free: 8.605 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.614e-06/0.1262, allocations: 128 / 474.5 MB, free: 8.605 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.39e-05/0.1262, allocations: 15.44 kB / 474.6 MB, free: 8.59 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1262, allocations: 0 / 474.6 MB, free: 8.59 MB / 350.1 MB Notification: Performance of Templates: time 0.003552/0.1298, allocations: 0.7147 MB / 475.3 MB, free: 7.879 MB / 350.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