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.0009149/0.0009149, allocations: 202.2 kB / 15.8 MB, free: 6.332 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.316/1.316, allocations: 226.5 MB / 243.1 MB, free: 12.57 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008042/0.000804, allocations: 96.91 kB / 295.1 MB, free: 4.324 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1902/0.1902, allocations: 44.83 MB / 391.9 MB, free: 11.39 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002376/0.0002375, allocations: 8 kB / 464.7 MB, free: 68.09 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09188/0.09213, allocations: 62.95 MB / 0.5153 GB, free: 5.133 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.0004713/0.09264, allocations: 212.6 kB / 0.5155 GB, free: 4.922 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001502/0.09416, allocations: 1.55 MB / 0.517 GB, free: 3.355 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.793e-05/0.0942, allocations: 0 / 0.517 GB, free: 3.355 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 9.357e-06/0.09422, allocations: 0 / 0.517 GB, free: 3.355 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 5.19e-06/0.09423, allocations: 0 / 0.517 GB, free: 3.355 MB / 346.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.000519/0.09475, allocations: 135.8 kB / 0.5172 GB, free: 3.223 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 2.959e-05/0.09479, allocations: 7.922 kB / 0.5172 GB, free: 3.215 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.612e-05/0.09483, allocations: 0 / 0.5172 GB, free: 3.215 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.499e-05/0.09485, allocations: 4 kB / 0.5172 GB, free: 3.211 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.232e-05/0.09488, allocations: 0 / 0.5172 GB, free: 3.211 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 7.755e-06/0.09489, allocations: 0 / 0.5172 GB, free: 3.211 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002482/0.09514, allocations: 99.92 kB / 0.5173 GB, free: 3.113 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 5.19e-06/0.09516, allocations: 0 / 0.5173 GB, free: 3.113 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 2.199e-05/0.09519, allocations: 29.64 kB / 0.5173 GB, free: 3.078 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001157/0.09531, allocations: 63.86 kB / 0.5174 GB, free: 3.016 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.09532, allocations: 4 kB / 0.5174 GB, free: 3.012 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.763e-06/0.09533, allocations: 0 / 0.5174 GB, free: 3.012 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.157e-06/0.09534, allocations: 0 / 0.5174 GB, free: 3.012 MB / 346.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.0002078/0.09555, allocations: 365.1 kB / 0.5177 GB, free: 2.602 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.229e-05/0.09559, allocations: 8.031 kB / 0.5177 GB, free: 2.594 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.521e-05/0.09562, allocations: 3.938 kB / 0.5177 GB, free: 2.59 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.096e-05/0.09567, allocations: 171 kB / 0.5179 GB, free: 2.383 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.38e-05/0.09569, allocations: 3.938 kB / 0.5179 GB, free: 2.379 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.191e-06/0.0957, allocations: 0 / 0.5179 GB, free: 2.379 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.5e-05/0.09577, allocations: 37.7 kB / 0.5179 GB, free: 2.336 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.492e-06/0.09579, allocations: 0 / 0.5179 GB, free: 2.336 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.394e-06/0.0958, allocations: 0 / 0.5179 GB, free: 2.336 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.282e-06/0.09581, allocations: 0 / 0.5179 GB, free: 2.336 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.44e-05/0.09583, allocations: 0 / 0.5179 GB, free: 2.336 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.94e-05/0.09591, allocations: 149.6 kB / 0.5181 GB, free: 2.141 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.077e-05/0.09595, allocations: 22.55 kB / 0.5181 GB, free: 2.109 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.025e-05/0.09597, allocations: 4.859 kB / 0.5181 GB, free: 2.102 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.482e-06/0.09598, allocations: 4 kB / 0.5181 GB, free: 2.098 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.791e-05/0.09601, allocations: 64.33 kB / 0.5182 GB, free: 2.02 MB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 9.72e-07/0.09602, allocations: 0 / 0.5182 GB, free: 2.02 MB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001376/0.09616, allocations: 63.39 kB / 0.5182 GB, free: 1.945 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.514e-05/0.09619, allocations: 77.11 kB / 0.5183 GB, free: 1.852 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.783e-05/0.09621, allocations: 89.86 kB / 0.5184 GB, free: 1.754 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.861e-06/0.09623, allocations: 25.7 kB / 0.5184 GB, free: 1.723 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.022e-05/0.09624, allocations: 84.27 kB / 0.5185 GB, free: 1.637 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.2e-05/0.09626, allocations: 288 / 0.5185 GB, free: 1.637 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.723e-06/0.09626, allocations: 0 / 0.5185 GB, free: 1.637 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 4.424e-05/0.09631, allocations: 318.8 kB / 0.5188 GB, free: 1.316 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.873e-06/0.09632, allocations: 3.938 kB / 0.5188 GB, free: 1.312 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.308e-06/0.09633, allocations: 0 / 0.5188 GB, free: 1.312 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.884e-05/0.09636, allocations: 25.7 kB / 0.5188 GB, free: 1.281 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.09637, allocations: 7.984 kB / 0.5188 GB, free: 1.273 MB / 346.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.922e-05/0.09642, allocations: 63.42 kB / 0.5189 GB, free: 1.199 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.294e-05/0.09645, allocations: 33.7 kB / 0.5189 GB, free: 1.16 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.438e-06/0.09646, allocations: 0 / 0.5189 GB, free: 1.16 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.999e-06/0.09647, allocations: 0 / 0.5189 GB, free: 1.16 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.633e-06/0.09648, allocations: 3.984 kB / 0.5189 GB, free: 1.156 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.899e-06/0.09649, allocations: 0 / 0.5189 GB, free: 1.156 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.486e-05/0.09651, allocations: 3.938 kB / 0.5189 GB, free: 1.152 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.951e-06/0.09652, allocations: 0 / 0.5189 GB, free: 1.152 MB / 346.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.006e-05/0.09657, allocations: 147.5 kB / 0.5191 GB, free: 0.9922 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.666e-06/0.09659, allocations: 7.891 kB / 0.5191 GB, free: 0.9844 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.107e-06/0.0966, allocations: 11.11 kB / 0.5191 GB, free: 0.9766 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.343e-06/0.09661, allocations: 0 / 0.5191 GB, free: 0.9766 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.09662, allocations: 4 kB / 0.5191 GB, free: 0.9727 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.713e-06/0.09662, allocations: 3.938 kB / 0.5191 GB, free: 0.9688 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.695e-05/0.09667, allocations: 145.7 kB / 0.5192 GB, free: 0.7773 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.09668, allocations: 0 / 0.5192 GB, free: 0.7773 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.51e-07/0.09669, allocations: 0 / 0.5192 GB, free: 0.7773 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.09669, allocations: 3.953 kB / 0.5192 GB, free: 0.7734 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.612e-06/0.0967, allocations: 4 kB / 0.5192 GB, free: 0.7695 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.52e-07/0.09671, allocations: 0 / 0.5192 GB, free: 0.7695 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.09671, allocations: 4 kB / 0.5192 GB, free: 0.7656 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.022e-05/0.09678, allocations: 90.83 kB / 0.5193 GB, free: 0.6523 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.329e-05/0.0968, allocations: 77.11 kB / 0.5194 GB, free: 0.5586 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.093e-05/0.09681, allocations: 7.953 kB / 0.5194 GB, free: 0.5508 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.088e-06/0.09683, allocations: 0 / 0.5194 GB, free: 0.5508 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.426e-05/0.09684, allocations: 0 / 0.5194 GB, free: 0.5508 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.967e-06/0.09685, allocations: 7.984 kB / 0.5194 GB, free: 0.543 MB / 346.7 MB Notification: Performance of sorting global known variables: time 1.19e-05/0.09687, allocations: 79.31 kB / 0.5195 GB, free: 476 kB / 346.7 MB Notification: Performance of sort global known variables: time 9e-08/0.09688, allocations: 0 / 0.5195 GB, free: 476 kB / 346.7 MB Notification: Performance of remove unused functions: time 0.000242/0.09712, allocations: 39.98 kB / 0.5195 GB, free: 436 kB / 346.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.000283/0.09741, allocations: 178.7 kB / 0.5197 GB, free: 256 kB / 346.7 MB Notification: Performance of simCode: created initialization part: time 6.597e-05/0.09749, allocations: 59.41 kB / 0.5198 GB, free: 184 kB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.0975, allocations: 4 kB / 0.5198 GB, free: 180 kB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.534e-05/0.09752, allocations: 59.45 kB / 0.5198 GB, free: 108 kB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000124/0.09765, allocations: 10.05 kB / 0.5198 GB, free: 100 kB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001589/0.09781, allocations: 100.4 kB / 0.5199 GB, free: 15.96 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002531/0.09807, allocations: 0.6731 MB / 0.5206 GB, free: 15.27 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.006e-05/0.0981, allocations: 7.438 kB / 0.5206 GB, free: 15.26 MB / 362.7 MB Notification: Performance of SimCode: time 2.3e-07/0.0981, allocations: 0 / 0.5206 GB, free: 15.26 MB / 362.7 MB Notification: Performance of Templates: time 0.002347/0.1005, allocations: 1.135 MB / 0.5217 GB, free: 14.12 MB / 362.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