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/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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001689/0.001689, allocations: 186.9 kB / 17.97 MB, free: 3.797 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.374/1.374, allocations: 222.9 MB / 241.6 MB, free: 11.01 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001021/0.001021, allocations: 103.1 kB / 291.9 MB, free: 10.95 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.345/0.345, allocations: 44.12 MB / 386.1 MB, free: 37.89 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001041/0.001041, allocations: 55.92 kB / 457.7 MB, free: 2.324 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.347/0.3481, allocations: 60.8 MB / 0.5064 GB, free: 38.18 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001962/0.3501, allocations: 0.5472 MB / 0.5069 GB, free: 37.86 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002009/0.3521, allocations: 1.383 MB / 0.5083 GB, free: 36.86 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.353e-05/0.3522, allocations: 0 / 0.5083 GB, free: 36.86 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 2.147e-05/0.3522, allocations: 0 / 0.5083 GB, free: 36.86 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 5.15e-06/0.3522, allocations: 0 / 0.5083 GB, free: 36.86 MB / 378.7 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.0004646/0.3527, allocations: 100.9 kB / 0.5084 GB, free: 36.8 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 3.619e-05/0.3527, allocations: 1.469 kB / 0.5084 GB, free: 36.8 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.151e-05/0.3528, allocations: 4 kB / 0.5084 GB, free: 36.79 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.898e-05/0.3528, allocations: 1.469 kB / 0.5084 GB, free: 36.79 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.328e-05/0.3528, allocations: 3.422 kB / 0.5084 GB, free: 36.79 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 9.127e-06/0.3529, allocations: 1.031 kB / 0.5084 GB, free: 36.79 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001783/0.353, allocations: 37.53 kB / 0.5084 GB, free: 36.78 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 7.724e-06/0.3531, allocations: 1.156 kB / 0.5084 GB, free: 36.78 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 2.374e-05/0.3531, allocations: 5.031 kB / 0.5084 GB, free: 36.78 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001161/0.3532, allocations: 41.39 kB / 0.5085 GB, free: 36.76 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.292e-06/0.3532, allocations: 1.094 kB / 0.5085 GB, free: 36.76 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.503e-06/0.3532, allocations: 0 / 0.5085 GB, free: 36.76 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.877e-06/0.3532, allocations: 4 kB / 0.5085 GB, free: 36.76 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.0002794/0.3535, allocations: 344.2 kB / 0.5088 GB, free: 36.38 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.271e-05/0.3536, allocations: 10.12 kB / 0.5088 GB, free: 36.38 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.252e-05/0.3536, allocations: 0.9375 kB / 0.5088 GB, free: 36.38 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.192e-05/0.3537, allocations: 160.4 kB / 0.509 GB, free: 36.18 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.469e-05/0.3537, allocations: 5.719 kB / 0.509 GB, free: 36.18 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.321e-05/0.3537, allocations: 384 / 0.509 GB, free: 36.18 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.869e-05/0.3538, allocations: 32.39 kB / 0.509 GB, free: 36.14 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.257e-06/0.3538, allocations: 3.422 kB / 0.509 GB, free: 36.14 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.004e-05/0.3538, allocations: 5.188 kB / 0.509 GB, free: 36.14 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.122e-06/0.3539, allocations: 0 / 0.509 GB, free: 36.14 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.806e-05/0.3539, allocations: 1.062 kB / 0.509 GB, free: 36.14 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.836e-05/0.354, allocations: 148 kB / 0.5091 GB, free: 35.95 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.646e-05/0.354, allocations: 19.61 kB / 0.5092 GB, free: 35.92 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.299e-05/0.354, allocations: 6.016 kB / 0.5092 GB, free: 35.91 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.464e-06/0.3541, allocations: 1.188 kB / 0.5092 GB, free: 35.91 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.719e-05/0.3541, allocations: 68.66 kB / 0.5092 GB, free: 35.84 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 1.794e-06/0.3541, allocations: 0 / 0.5092 GB, free: 35.84 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001815/0.3543, allocations: 67.28 kB / 0.5093 GB, free: 35.77 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.154e-05/0.3543, allocations: 81.53 kB / 0.5094 GB, free: 35.67 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.371e-05/0.3544, allocations: 89.86 kB / 0.5095 GB, free: 35.57 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.197e-06/0.3544, allocations: 25.7 kB / 0.5095 GB, free: 35.54 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.966e-05/0.3544, allocations: 81.36 kB / 0.5096 GB, free: 35.46 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.637e-05/0.3544, allocations: 0 / 0.5096 GB, free: 35.46 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.609e-05/0.3545, allocations: 16.03 kB / 0.5096 GB, free: 35.44 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.433e-05/0.3545, allocations: 315.9 kB / 0.5099 GB, free: 35.12 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.203e-05/0.3546, allocations: 5.281 kB / 0.5099 GB, free: 35.12 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.492e-06/0.3546, allocations: 0 / 0.5099 GB, free: 35.12 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.997e-05/0.3546, allocations: 66.97 kB / 0.5099 GB, free: 35.05 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.3546, allocations: 1.156 kB / 0.5099 GB, free: 35.05 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.391e-05/0.3547, allocations: 58.06 kB / 0.51 GB, free: 34.98 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.24e-05/0.3547, allocations: 34.7 kB / 0.51 GB, free: 34.95 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.781e-06/0.3547, allocations: 5.25 kB / 0.51 GB, free: 34.95 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.329e-05/0.3548, allocations: 0 / 0.51 GB, free: 34.95 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.813e-06/0.3548, allocations: 3.422 kB / 0.51 GB, free: 34.95 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.561e-06/0.3548, allocations: 2.844 kB / 0.51 GB, free: 34.95 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.703e-05/0.3548, allocations: 0 / 0.51 GB, free: 34.95 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.875e-06/0.3548, allocations: 7.938 kB / 0.5101 GB, free: 34.94 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.79e-05/0.3549, allocations: 138.4 kB / 0.5102 GB, free: 34.79 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.155e-06/0.3549, allocations: 3.938 kB / 0.5102 GB, free: 34.79 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.242e-05/0.3549, allocations: 10.72 kB / 0.5102 GB, free: 34.78 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.585e-06/0.3549, allocations: 2.844 kB / 0.5102 GB, free: 34.78 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.3549, allocations: 0 / 0.5102 GB, free: 34.78 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.3549, allocations: 0 / 0.5102 GB, free: 34.78 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.979e-05/0.355, allocations: 149 kB / 0.5103 GB, free: 34.59 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.913e-06/0.355, allocations: 2.812 kB / 0.5104 GB, free: 34.59 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.01e-07/0.355, allocations: 0 / 0.5104 GB, free: 34.59 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.535e-06/0.355, allocations: 3.938 kB / 0.5104 GB, free: 34.58 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.714e-06/0.355, allocations: 0 / 0.5104 GB, free: 34.58 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-06/0.3551, allocations: 0 / 0.5104 GB, free: 34.58 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.3551, allocations: 3.328 kB / 0.5104 GB, free: 34.58 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002632/0.3553, allocations: 0.6374 MB / 0.511 GB, free: 33.9 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.348e-05/0.3554, allocations: 77.11 kB / 0.5111 GB, free: 33.8 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.727e-05/0.3554, allocations: 6.172 kB / 0.5111 GB, free: 33.8 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.427e-06/0.3554, allocations: 3.938 kB / 0.5111 GB, free: 33.8 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.614e-05/0.3554, allocations: 0 / 0.5111 GB, free: 33.8 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.086e-06/0.3554, allocations: 8.016 kB / 0.5111 GB, free: 33.79 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.607e-05/0.3555, allocations: 78.19 kB / 0.5111 GB, free: 33.72 MB / 378.7 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3555, allocations: 0 / 0.5111 GB, free: 33.72 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003948/0.3559, allocations: 15.28 kB / 0.5112 GB, free: 33.71 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.0002799/0.3561, allocations: 137.1 kB / 0.5113 GB, free: 33.62 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 7.098e-05/0.3562, allocations: 68.36 kB / 0.5114 GB, free: 33.55 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.3562, allocations: 4.062 kB / 0.5114 GB, free: 33.54 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 1.92e-05/0.3563, allocations: 54.25 kB / 0.5114 GB, free: 33.48 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001324/0.3564, allocations: 2.875 kB / 0.5114 GB, free: 33.48 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001931/0.3566, allocations: 184.8 kB / 0.5116 GB, free: 33.27 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.499e-05/0.3567, allocations: 0.6692 MB / 0.5122 GB, free: 32.58 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 5.48e-06/0.3567, allocations: 0 / 0.5122 GB, free: 32.58 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.527e-06/0.3567, allocations: 10.31 kB / 0.5123 GB, free: 32.57 MB / 378.7 MB Notification: Performance of SimCode: time 1.91e-07/0.3567, allocations: 3.938 kB / 0.5123 GB, free: 32.57 MB / 378.7 MB Notification: Performance of Templates: time 0.002476/0.3592, allocations: 0.702 MB / 0.5129 GB, free: 32.48 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@2/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