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.001091/0.001091, allocations: 193.5 kB / 16.78 MB, free: 5.039 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.374/1.374, allocations: 226.5 MB / 244.1 MB, free: 8.188 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000944/0.0009442, allocations: 96.28 kB / 296.1 MB, free: 6.879 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3857/0.3857, allocations: 44.82 MB / 392.9 MB, free: 35.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003307/0.0003307, allocations: 11.98 kB / 465.9 MB, free: 12.71 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4028/0.4032, allocations: 62.95 MB / 0.5165 GB, free: 37.1 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1198/0.5231, allocations: 87.46 MB / 0.6019 GB, free: 1.93 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001971/0.5233, allocations: 63.97 kB / 0.6019 GB, free: 1.867 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02194/0.5453, allocations: 7.657 MB / 0.6094 GB, free: 10.2 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.753e-06/0.5453, allocations: 0 / 0.6094 GB, free: 10.2 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.042e-05/0.5453, allocations: 8 kB / 0.6094 GB, free: 10.19 MB / 426.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.0004286/0.5458, allocations: 405 kB / 0.6098 GB, free: 9.738 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.51e-05/0.5458, allocations: 8.031 kB / 0.6098 GB, free: 9.73 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.517e-05/0.5459, allocations: 0.9375 kB / 0.6098 GB, free: 9.73 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.176e-05/0.546, allocations: 160.4 kB / 0.61 GB, free: 9.535 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.495e-05/0.546, allocations: 4.312 kB / 0.61 GB, free: 9.531 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.504e-05/0.546, allocations: 4.375 kB / 0.61 GB, free: 9.527 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.934e-05/0.5461, allocations: 34.19 kB / 0.61 GB, free: 9.488 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.927e-06/0.5461, allocations: 192 / 0.61 GB, free: 9.488 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.297e-05/0.5461, allocations: 11.92 kB / 0.61 GB, free: 9.477 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.478e-06/0.5461, allocations: 0 / 0.61 GB, free: 9.477 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.816e-05/0.5462, allocations: 4 kB / 0.61 GB, free: 9.473 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001481/0.5463, allocations: 145.7 kB / 0.6102 GB, free: 9.281 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.625e-05/0.5464, allocations: 22.55 kB / 0.6102 GB, free: 9.25 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.475e-05/0.5464, allocations: 4.859 kB / 0.6102 GB, free: 9.242 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.208e-06/0.5464, allocations: 0 / 0.6102 GB, free: 9.242 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.18e-05/0.5465, allocations: 64.25 kB / 0.6102 GB, free: 9.164 MB / 426.7 MB Notification: Performance of pre-optimization done (n=1): time 9.72e-07/0.5465, allocations: 0 / 0.6102 GB, free: 9.164 MB / 426.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002084/0.5467, allocations: 67.41 kB / 0.6103 GB, free: 9.086 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.668e-05/0.5468, allocations: 77.11 kB / 0.6104 GB, free: 8.992 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.886e-05/0.5468, allocations: 97.77 kB / 0.6105 GB, free: 8.887 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 1.235e-05/0.5468, allocations: 25.7 kB / 0.6105 GB, free: 8.855 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.407e-05/0.5469, allocations: 84.12 kB / 0.6106 GB, free: 8.77 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.285e-05/0.5469, allocations: 0 / 0.6106 GB, free: 8.77 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.084e-06/0.5469, allocations: 4.125 kB / 0.6106 GB, free: 8.766 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001116/0.547, allocations: 314.8 kB / 0.6109 GB, free: 8.449 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.756e-06/0.547, allocations: 3.938 kB / 0.6109 GB, free: 8.445 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.502e-06/0.547, allocations: 4 kB / 0.6109 GB, free: 8.441 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.242e-05/0.5471, allocations: 56.27 kB / 0.611 GB, free: 8.371 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.5471, allocations: 4 kB / 0.611 GB, free: 8.367 MB / 426.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.911e-05/0.5472, allocations: 59.39 kB / 0.611 GB, free: 8.297 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.243e-05/0.5472, allocations: 36.36 kB / 0.611 GB, free: 8.258 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.125e-06/0.5472, allocations: 8.094 kB / 0.6111 GB, free: 8.25 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.738e-05/0.5473, allocations: 3.938 kB / 0.6111 GB, free: 8.246 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.213e-06/0.5473, allocations: 0 / 0.6111 GB, free: 8.246 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.821e-06/0.5473, allocations: 0 / 0.6111 GB, free: 8.246 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.327e-05/0.5473, allocations: 0 / 0.6111 GB, free: 8.246 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.598e-06/0.5473, allocations: 0 / 0.6111 GB, free: 8.246 MB / 426.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 8.991e-05/0.5474, allocations: 147.5 kB / 0.6112 GB, free: 8.086 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.456e-06/0.5474, allocations: 0 / 0.6112 GB, free: 8.086 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.859e-05/0.5474, allocations: 18.58 kB / 0.6112 GB, free: 8.07 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.824e-06/0.5474, allocations: 4 kB / 0.6112 GB, free: 8.066 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.783e-05/0.5475, allocations: 4 kB / 0.6112 GB, free: 8.062 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.5475, allocations: 3.938 kB / 0.6112 GB, free: 8.059 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.556e-05/0.5476, allocations: 141.7 kB / 0.6114 GB, free: 7.871 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.5476, allocations: 0 / 0.6114 GB, free: 7.871 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.022e-06/0.5476, allocations: 0 / 0.6114 GB, free: 7.871 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.5476, allocations: 0 / 0.6114 GB, free: 7.871 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.728e-06/0.5476, allocations: 7.938 kB / 0.6114 GB, free: 7.863 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.975e-06/0.5476, allocations: 3.984 kB / 0.6114 GB, free: 7.859 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.5476, allocations: 0 / 0.6114 GB, free: 7.859 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001148/0.5478, allocations: 86.84 kB / 0.6115 GB, free: 7.75 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.927e-05/0.5478, allocations: 81.11 kB / 0.6115 GB, free: 7.652 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.732e-05/0.5478, allocations: 7.922 kB / 0.6115 GB, free: 7.645 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.236e-06/0.5478, allocations: 0 / 0.6115 GB, free: 7.645 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.538e-05/0.5479, allocations: 0 / 0.6115 GB, free: 7.645 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.426e-06/0.5479, allocations: 3.938 kB / 0.6115 GB, free: 7.641 MB / 426.7 MB Notification: Performance of sorting global known variables: time 2.501e-05/0.5479, allocations: 79.28 kB / 0.6116 GB, free: 7.562 MB / 426.7 MB Notification: Performance of sort global known variables: time 9e-08/0.5479, allocations: 0 / 0.6116 GB, free: 7.562 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0002063/0.5481, allocations: 12.03 kB / 0.6116 GB, free: 7.551 MB / 426.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.0002988/0.5484, allocations: 113.2 kB / 0.6117 GB, free: 7.441 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 9.308e-05/0.5485, allocations: 59.39 kB / 0.6118 GB, free: 7.371 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.5485, allocations: 0 / 0.6118 GB, free: 7.371 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 2.935e-05/0.5486, allocations: 55.41 kB / 0.6118 GB, free: 7.305 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001186/0.5487, allocations: 4.125 kB / 0.6119 GB, free: 7.301 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000191/0.5489, allocations: 108.4 kB / 0.612 GB, free: 7.16 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00021/0.5491, allocations: 0.6692 MB / 0.6126 GB, free: 6.465 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.649e-06/0.5491, allocations: 11.38 kB / 0.6126 GB, free: 6.453 MB / 426.7 MB Notification: Performance of SimCode: time 8.02e-07/0.5492, allocations: 4 kB / 0.6126 GB, free: 6.449 MB / 426.7 MB Notification: Performance of Templates: time 0.001853/0.551, allocations: 448 kB / 0.6131 GB, free: 6.016 MB / 426.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/jenkins1/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