Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Math.TestScalarFunctions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(ModelicaTest.Math.TestScalarFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Math.TestScalarFunctions") translateModel(ModelicaTest.Math.TestScalarFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Math.TestScalarFunctions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001614/0.001614, allocations: 198.2 kB / 16.1 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.313/1.313, allocations: 226.5 MB / 243.4 MB, free: 6.492 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008299/0.0008299, allocations: 92.72 kB / 295.5 MB, free: 6.699 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3101/0.3101, allocations: 44.83 MB / 392.3 MB, free: 35.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003341/0.0003342, allocations: 11.98 kB / 465.3 MB, free: 12.68 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3708/0.3711, allocations: 62.95 MB / 0.5159 GB, free: 37.23 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.000556/0.3717, allocations: 219 kB / 0.5161 GB, free: 37.08 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001602/0.3734, allocations: 1.557 MB / 0.5176 GB, free: 35.95 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.861e-05/0.3734, allocations: 0 / 0.5176 GB, free: 35.95 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.062e-05/0.3734, allocations: 0 / 0.5176 GB, free: 35.95 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 7.374e-06/0.3734, allocations: 0 / 0.5176 GB, free: 35.95 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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.0005247/0.3739, allocations: 135.7 kB / 0.5177 GB, free: 35.88 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 3.505e-05/0.374, allocations: 0 / 0.5177 GB, free: 35.88 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 6.039e-05/0.3741, allocations: 3.984 kB / 0.5177 GB, free: 35.88 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.861e-05/0.3741, allocations: 2.906 kB / 0.5177 GB, free: 35.88 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.92e-05/0.3741, allocations: 0 / 0.5177 GB, free: 35.88 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.033e-05/0.3741, allocations: 0 / 0.5177 GB, free: 35.88 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002727/0.3744, allocations: 110.2 kB / 0.5178 GB, free: 35.84 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 1.064e-05/0.3744, allocations: 4 kB / 0.5178 GB, free: 35.84 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 3.287e-05/0.3745, allocations: 28.52 kB / 0.5179 GB, free: 35.8 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000124/0.3746, allocations: 62.03 kB / 0.5179 GB, free: 35.78 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.623e-06/0.3746, allocations: 2.812 kB / 0.5179 GB, free: 35.78 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.3746, allocations: 0 / 0.5179 GB, free: 35.78 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.288e-06/0.3746, allocations: 0 / 0.5179 GB, free: 35.78 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.0002681/0.3749, allocations: 364.3 kB / 0.5183 GB, free: 35.39 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.927e-05/0.3749, allocations: 8.938 kB / 0.5183 GB, free: 35.39 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.816e-05/0.375, allocations: 0.9375 kB / 0.5183 GB, free: 35.39 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.649e-05/0.375, allocations: 163.7 kB / 0.5184 GB, free: 35.19 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.267e-05/0.3751, allocations: 4.375 kB / 0.5184 GB, free: 35.19 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.194e-05/0.3751, allocations: 7.391 kB / 0.5185 GB, free: 35.18 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.756e-05/0.3752, allocations: 37.95 kB / 0.5185 GB, free: 35.14 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.095e-06/0.3752, allocations: 0 / 0.5185 GB, free: 35.14 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.546e-06/0.3752, allocations: 3.031 kB / 0.5185 GB, free: 35.14 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.98e-06/0.3752, allocations: 0 / 0.5185 GB, free: 35.14 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.611e-05/0.3752, allocations: 3.938 kB / 0.5185 GB, free: 35.14 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.239e-05/0.3753, allocations: 152 kB / 0.5186 GB, free: 34.95 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.287e-05/0.3754, allocations: 22.52 kB / 0.5187 GB, free: 34.91 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.212e-05/0.3754, allocations: 7.859 kB / 0.5187 GB, free: 34.91 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.035e-06/0.3754, allocations: 0 / 0.5187 GB, free: 34.91 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.106e-05/0.3754, allocations: 60.2 kB / 0.5187 GB, free: 34.83 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 7.52e-07/0.3754, allocations: 0 / 0.5187 GB, free: 34.83 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001567/0.3756, allocations: 71.28 kB / 0.5188 GB, free: 34.76 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.617e-05/0.3756, allocations: 77.11 kB / 0.5189 GB, free: 34.67 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.928e-05/0.3757, allocations: 93.98 kB / 0.519 GB, free: 34.57 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.505e-06/0.3757, allocations: 25.7 kB / 0.519 GB, free: 34.54 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.478e-05/0.3757, allocations: 83.02 kB / 0.5191 GB, free: 34.45 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.857e-05/0.3757, allocations: 1.547 kB / 0.5191 GB, free: 34.45 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.793e-06/0.3757, allocations: 0 / 0.5191 GB, free: 34.45 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.774e-05/0.3758, allocations: 314.3 kB / 0.5194 GB, free: 34.14 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.494e-06/0.3758, allocations: 2.75 kB / 0.5194 GB, free: 34.14 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.108e-06/0.3758, allocations: 0 / 0.5194 GB, free: 34.14 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.605e-05/0.3759, allocations: 67.14 kB / 0.5194 GB, free: 34.06 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.362e-06/0.3759, allocations: 3.938 kB / 0.5194 GB, free: 34.06 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.828e-05/0.3759, allocations: 63.22 kB / 0.5195 GB, free: 34 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.343e-05/0.376, allocations: 35.2 kB / 0.5195 GB, free: 33.96 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.298e-06/0.376, allocations: 0 / 0.5195 GB, free: 33.96 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.09e-05/0.376, allocations: 0 / 0.5195 GB, free: 33.96 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.62e-07/0.376, allocations: 0 / 0.5195 GB, free: 33.96 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.06e-06/0.376, allocations: 0 / 0.5195 GB, free: 33.96 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.547e-05/0.376, allocations: 0 / 0.5195 GB, free: 33.96 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.063e-06/0.376, allocations: 2.906 kB / 0.5195 GB, free: 33.96 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.576e-05/0.3761, allocations: 138.5 kB / 0.5197 GB, free: 33.81 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.283e-06/0.3761, allocations: 7.266 kB / 0.5197 GB, free: 33.81 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.396e-06/0.3761, allocations: 10.72 kB / 0.5197 GB, free: 33.8 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.82e-07/0.3761, allocations: 0 / 0.5197 GB, free: 33.8 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.468e-06/0.3761, allocations: 0 / 0.5197 GB, free: 33.8 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.435e-06/0.3761, allocations: 3.938 kB / 0.5197 GB, free: 33.8 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.992e-05/0.3762, allocations: 147.8 kB / 0.5198 GB, free: 33.61 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.12e-07/0.3762, allocations: 0 / 0.5198 GB, free: 33.61 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.91e-07/0.3762, allocations: 0 / 0.5198 GB, free: 33.61 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.813e-06/0.3762, allocations: 7.938 kB / 0.5198 GB, free: 33.61 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.522e-06/0.3763, allocations: 2.969 kB / 0.5198 GB, free: 33.61 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.71e-07/0.3763, allocations: 0 / 0.5198 GB, free: 33.61 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.3763, allocations: 3.938 kB / 0.5198 GB, free: 33.6 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.707e-05/0.3763, allocations: 87.8 kB / 0.5199 GB, free: 33.5 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.66e-05/0.3764, allocations: 79.92 kB / 0.52 GB, free: 33.41 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.243e-05/0.3764, allocations: 3.938 kB / 0.52 GB, free: 33.41 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.376e-06/0.3764, allocations: 32 / 0.52 GB, free: 33.41 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.725e-05/0.3764, allocations: 14.7 kB / 0.52 GB, free: 33.39 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.886e-06/0.3764, allocations: 0 / 0.52 GB, free: 33.39 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.429e-05/0.3764, allocations: 75.28 kB / 0.5201 GB, free: 33.32 MB / 378.7 MB Notification: Performance of sort global known variables: time 9e-08/0.3765, allocations: 0 / 0.5201 GB, free: 33.32 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002497/0.3767, allocations: 43.91 kB / 0.5201 GB, free: 33.31 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003327/0.377, allocations: 178.6 kB / 0.5203 GB, free: 33.2 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 7.907e-05/0.3771, allocations: 73.12 kB / 0.5204 GB, free: 33.12 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.3771, allocations: 0 / 0.5204 GB, free: 33.12 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 1.667e-05/0.3772, allocations: 54.38 kB / 0.5204 GB, free: 33.06 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001166/0.3773, allocations: 6.266 kB / 0.5204 GB, free: 33.06 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001411/0.3774, allocations: 98.16 kB / 0.5205 GB, free: 32.93 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.544e-05/0.3775, allocations: 0.6722 MB / 0.5212 GB, free: 32.24 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.264e-06/0.3776, allocations: 7.438 kB / 0.5212 GB, free: 32.23 MB / 378.7 MB Notification: Performance of SimCode: time 2.1e-07/0.3776, allocations: 128 / 0.5212 GB, free: 32.23 MB / 378.7 MB Notification: Performance of Templates: time 0.002287/0.3798, allocations: 1.136 MB / 0.5223 GB, free: 32.11 MB / 378.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Math.TestScalarFunctions.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Math.TestScalarFunctions.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Math.TestScalarFunctions.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Math.TestScalarFunctions.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Math.TestScalarFunctions.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Math.TestScalarFunctions --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Math.TestScalarFunctions.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_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_trunk_cpp_ModelicaTest.Math.TestScalarFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches