Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001032/0.001032, allocations: 177.2 kB / 17.41 MB, free: 4.285 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.39/1.39, allocations: 225.7 MB / 243.9 MB, free: 8.469 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007537/0.0007538, allocations: 94.33 kB / 295.1 MB, free: 9.52 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3518/0.3518, allocations: 44.32 MB / 390.5 MB, free: 38.06 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003774/0.0003775, allocations: 8 kB / 463.1 MB, free: 0.5078 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3425/0.3429, allocations: 61.91 MB / 0.5127 GB, free: 37.98 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.0006024/0.3436, allocations: 223.8 kB / 0.5129 GB, free: 37.84 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001603/0.3452, allocations: 1.56 MB / 0.5145 GB, free: 36.59 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.386e-05/0.3452, allocations: 0 / 0.5145 GB, free: 36.59 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.215e-05/0.3452, allocations: 2.844 kB / 0.5145 GB, free: 36.59 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 5.791e-06/0.3452, allocations: 2.062 kB / 0.5145 GB, free: 36.59 MB / 378.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-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.0004663/0.3457, allocations: 89.69 kB / 0.5146 GB, free: 36.55 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 3.365e-05/0.3458, allocations: 0 / 0.5146 GB, free: 36.55 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.907e-05/0.3458, allocations: 0 / 0.5146 GB, free: 36.55 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.796e-05/0.3458, allocations: 2.875 kB / 0.5146 GB, free: 36.55 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.927e-05/0.3459, allocations: 7.281 kB / 0.5146 GB, free: 36.54 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 6.051e-06/0.3459, allocations: 0 / 0.5146 GB, free: 36.54 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001987/0.3461, allocations: 37.58 kB / 0.5146 GB, free: 36.53 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 9.077e-06/0.3461, allocations: 0 / 0.5146 GB, free: 36.53 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 3.621e-05/0.3462, allocations: 32.83 kB / 0.5146 GB, free: 36.5 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000122/0.3463, allocations: 37.42 kB / 0.5147 GB, free: 36.48 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.3463, allocations: 0 / 0.5147 GB, free: 36.48 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.3463, allocations: 0 / 0.5147 GB, free: 36.48 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.959e-06/0.3463, allocations: 0 / 0.5147 GB, free: 36.48 MB / 378.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.000262/0.3466, allocations: 350.6 kB / 0.515 GB, free: 36.09 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.2e-05/0.3466, allocations: 10.66 kB / 0.515 GB, free: 36.09 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.135e-05/0.3467, allocations: 4.359 kB / 0.515 GB, free: 36.09 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.898e-05/0.3467, allocations: 164.4 kB / 0.5152 GB, free: 35.89 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.555e-05/0.3468, allocations: 384 / 0.5152 GB, free: 35.89 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.165e-06/0.3468, allocations: 3.031 kB / 0.5152 GB, free: 35.89 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.802e-05/0.3469, allocations: 30.02 kB / 0.5152 GB, free: 35.86 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.856e-06/0.3469, allocations: 2.656 kB / 0.5152 GB, free: 35.86 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.056e-05/0.3469, allocations: 0 / 0.5152 GB, free: 35.86 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.291e-06/0.3469, allocations: 0 / 0.5152 GB, free: 35.86 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.872e-05/0.3469, allocations: 6.578 kB / 0.5152 GB, free: 35.86 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001174/0.3471, allocations: 156.5 kB / 0.5154 GB, free: 35.66 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.118e-05/0.3471, allocations: 21.39 kB / 0.5154 GB, free: 35.63 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.392e-05/0.3471, allocations: 8.188 kB / 0.5154 GB, free: 35.62 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.819e-06/0.3471, allocations: 0 / 0.5154 GB, free: 35.62 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.736e-05/0.3472, allocations: 62.89 kB / 0.5155 GB, free: 35.55 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 2.024e-06/0.3472, allocations: 0 / 0.5155 GB, free: 35.55 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001511/0.3473, allocations: 68.88 kB / 0.5155 GB, free: 35.47 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.256e-05/0.3474, allocations: 86.94 kB / 0.5156 GB, free: 35.38 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.458e-05/0.3474, allocations: 89.86 kB / 0.5157 GB, free: 35.28 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.674e-06/0.3474, allocations: 25.7 kB / 0.5157 GB, free: 35.25 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.413e-05/0.3474, allocations: 80.14 kB / 0.5158 GB, free: 35.16 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.784e-05/0.3475, allocations: 0 / 0.5158 GB, free: 35.16 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.934e-06/0.3475, allocations: 2.688 kB / 0.5158 GB, free: 35.16 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.191e-05/0.3475, allocations: 310.8 kB / 0.5161 GB, free: 34.85 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.644e-06/0.3476, allocations: 4.125 kB / 0.5161 GB, free: 34.85 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.09e-06/0.3476, allocations: 2.688 kB / 0.5161 GB, free: 34.85 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.402e-05/0.3476, allocations: 62.92 kB / 0.5162 GB, free: 34.77 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.3476, allocations: 3.375 kB / 0.5162 GB, free: 34.77 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.245e-05/0.3477, allocations: 60.84 kB / 0.5162 GB, free: 34.71 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.701e-05/0.3477, allocations: 35.42 kB / 0.5163 GB, free: 34.67 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.388e-06/0.3477, allocations: 0 / 0.5163 GB, free: 34.67 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.381e-05/0.3477, allocations: 2.969 kB / 0.5163 GB, free: 34.67 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.372e-06/0.3477, allocations: 4.094 kB / 0.5163 GB, free: 34.67 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.342e-06/0.3477, allocations: 3.281 kB / 0.5163 GB, free: 34.67 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.492e-05/0.3478, allocations: 0 / 0.5163 GB, free: 34.67 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.013e-06/0.3478, allocations: 0 / 0.5163 GB, free: 34.67 MB / 378.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.191e-05/0.3478, allocations: 139 kB / 0.5164 GB, free: 34.52 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.166e-06/0.3479, allocations: 6.906 kB / 0.5164 GB, free: 34.52 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.06e-05/0.3479, allocations: 6.719 kB / 0.5164 GB, free: 34.51 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.12e-07/0.3479, allocations: 0 / 0.5164 GB, free: 34.51 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.126e-06/0.3479, allocations: 0 / 0.5164 GB, free: 34.51 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.665e-06/0.3479, allocations: 4 kB / 0.5164 GB, free: 34.51 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.169e-05/0.348, allocations: 151.8 kB / 0.5166 GB, free: 34.32 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.92e-07/0.348, allocations: 0 / 0.5166 GB, free: 34.32 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.22e-07/0.348, allocations: 0 / 0.5166 GB, free: 34.32 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.953e-06/0.348, allocations: 3.938 kB / 0.5166 GB, free: 34.31 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.57e-06/0.348, allocations: 0 / 0.5166 GB, free: 34.31 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.763e-06/0.348, allocations: 4 kB / 0.5166 GB, free: 34.31 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.348, allocations: 6.25 kB / 0.5166 GB, free: 34.31 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.406e-05/0.3481, allocations: 91.81 kB / 0.5167 GB, free: 34.2 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.048e-05/0.3481, allocations: 80.39 kB / 0.5167 GB, free: 34.11 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.42e-05/0.3481, allocations: 6.906 kB / 0.5167 GB, free: 34.11 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.107e-06/0.3482, allocations: 7.875 kB / 0.5168 GB, free: 34.1 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.093e-05/0.3482, allocations: 0 / 0.5168 GB, free: 34.1 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.086e-06/0.3482, allocations: 2.562 kB / 0.5168 GB, free: 34.1 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.345e-05/0.3482, allocations: 75.28 kB / 0.5168 GB, free: 34.02 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3482, allocations: 0 / 0.5168 GB, free: 34.02 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002563/0.3485, allocations: 14.88 kB / 0.5168 GB, free: 34.02 MB / 378.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.0002739/0.3487, allocations: 151 kB / 0.517 GB, free: 33.92 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 7.3e-05/0.3488, allocations: 60.56 kB / 0.517 GB, free: 33.86 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.3488, allocations: 0 / 0.517 GB, free: 33.86 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 1.895e-05/0.3489, allocations: 54.38 kB / 0.5171 GB, free: 33.79 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001088/0.349, allocations: 7.75 kB / 0.5171 GB, free: 33.79 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001458/0.3491, allocations: 81.8 kB / 0.5172 GB, free: 33.69 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.272e-05/0.3492, allocations: 0.673 MB / 0.5178 GB, free: 32.99 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 4.819e-06/0.3492, allocations: 0 / 0.5178 GB, free: 32.99 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.546e-06/0.3492, allocations: 7.438 kB / 0.5178 GB, free: 32.98 MB / 378.7 MB Notification: Performance of SimCode: time 2.1e-07/0.3493, allocations: 0 / 0.5178 GB, free: 32.98 MB / 378.7 MB Notification: Performance of Templates: time 0.00264/0.3519, allocations: 0.6894 MB / 0.5185 GB, free: 32.9 MB / 378.7 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","../files/ModelicaTest_4.0.0_ModelicaTest.Math.TestScalarFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches