Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_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_ModelicaTest.Math.TestScalarFunctions") translateModel(ModelicaTest.Math.TestScalarFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001044/0.001044, allocations: 200.7 kB / 18.1 MB, free: 3.715 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.47/1.47, allocations: 226.5 MB / 245.4 MB, free: 6.508 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008915/0.0008917, allocations: 106.1 kB / 297.5 MB, free: 6.664 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.436/0.436, allocations: 44.82 MB / 394.3 MB, free: 35.7 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000357/0.0003575, allocations: 8 kB / 467.9 MB, free: 12.04 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4569/0.4573, allocations: 62.96 MB / 0.5184 GB, free: 37.7 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.134/0.5913, allocations: 87.47 MB / 0.6038 GB, free: 1.84 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002826/0.5917, allocations: 63.97 kB / 0.6039 GB, free: 1.781 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02198/0.6137, allocations: 7.647 MB / 0.6114 GB, free: 10.12 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.786e-06/0.6137, allocations: 4 kB / 0.6114 GB, free: 10.12 MB / 426.7 MB Notification: Performance of Transformations before backend: time 6.472e-06/0.6138, allocations: 4 kB / 0.6114 GB, free: 10.11 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.0004669/0.6142, allocations: 409 kB / 0.6118 GB, free: 9.656 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.151e-05/0.6143, allocations: 11.97 kB / 0.6118 GB, free: 9.645 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.232e-05/0.6143, allocations: 0.9375 kB / 0.6118 GB, free: 9.645 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001056/0.6144, allocations: 160.4 kB / 0.6119 GB, free: 9.449 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.728e-05/0.6145, allocations: 4.375 kB / 0.6119 GB, free: 9.445 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.578e-05/0.6145, allocations: 16.23 kB / 0.6119 GB, free: 9.43 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.638e-05/0.6146, allocations: 34.25 kB / 0.612 GB, free: 9.391 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.887e-06/0.6146, allocations: 192 / 0.612 GB, free: 9.391 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.153e-05/0.6146, allocations: 3.938 kB / 0.612 GB, free: 9.387 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.059e-06/0.6146, allocations: 0 / 0.612 GB, free: 9.387 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.765e-05/0.6147, allocations: 4 kB / 0.612 GB, free: 9.383 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001547/0.6148, allocations: 145.7 kB / 0.6121 GB, free: 9.191 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.553e-05/0.6149, allocations: 18.61 kB / 0.6121 GB, free: 9.164 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.549e-05/0.6149, allocations: 8.797 kB / 0.6121 GB, free: 9.152 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.857e-06/0.6149, allocations: 4 kB / 0.6121 GB, free: 9.148 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.365e-05/0.615, allocations: 60.25 kB / 0.6122 GB, free: 9.074 MB / 426.7 MB Notification: Performance of pre-optimization done (n=1): time 1.202e-06/0.615, allocations: 0 / 0.6122 GB, free: 9.074 MB / 426.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001915/0.6152, allocations: 71.39 kB / 0.6123 GB, free: 8.992 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.313e-05/0.6152, allocations: 77.11 kB / 0.6123 GB, free: 8.898 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.059e-05/0.6153, allocations: 97.77 kB / 0.6124 GB, free: 8.793 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 1.52e-05/0.6153, allocations: 25.7 kB / 0.6125 GB, free: 8.762 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.856e-05/0.6154, allocations: 84.27 kB / 0.6125 GB, free: 8.676 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.141e-05/0.6154, allocations: 0 / 0.6125 GB, free: 8.676 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.425e-06/0.6154, allocations: 0 / 0.6125 GB, free: 8.676 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000138/0.6156, allocations: 314.8 kB / 0.6128 GB, free: 8.359 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.165e-05/0.6156, allocations: 3.938 kB / 0.6128 GB, free: 8.355 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.749e-06/0.6156, allocations: 4 kB / 0.6129 GB, free: 8.352 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.948e-05/0.6157, allocations: 60.27 kB / 0.6129 GB, free: 8.277 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.6157, allocations: 4 kB / 0.6129 GB, free: 8.273 MB / 426.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.347e-05/0.6157, allocations: 59.47 kB / 0.613 GB, free: 8.203 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.799e-05/0.6158, allocations: 37.69 kB / 0.613 GB, free: 8.16 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.698e-06/0.6158, allocations: 0 / 0.613 GB, free: 8.16 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.517e-05/0.6158, allocations: 3.938 kB / 0.613 GB, free: 8.156 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.162e-06/0.6158, allocations: 0 / 0.613 GB, free: 8.156 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.342e-06/0.6158, allocations: 0 / 0.613 GB, free: 8.156 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.241e-05/0.6159, allocations: 0 / 0.613 GB, free: 8.156 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.112e-06/0.6159, allocations: 0 / 0.613 GB, free: 8.156 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 0.0001102/0.616, allocations: 139.5 kB / 0.6131 GB, free: 8.004 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.532e-06/0.616, allocations: 4.031 kB / 0.6131 GB, free: 8 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.934e-05/0.616, allocations: 14.66 kB / 0.6132 GB, free: 7.988 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.959e-06/0.616, allocations: 3.984 kB / 0.6132 GB, free: 7.984 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.559e-06/0.616, allocations: 7.938 kB / 0.6132 GB, free: 7.977 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.996e-06/0.6161, allocations: 0 / 0.6132 GB, free: 7.977 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001022/0.6162, allocations: 145.6 kB / 0.6133 GB, free: 7.785 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.81e-07/0.6162, allocations: 0 / 0.6133 GB, free: 7.785 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.32e-07/0.6162, allocations: 0 / 0.6133 GB, free: 7.785 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.052e-06/0.6162, allocations: 0 / 0.6133 GB, free: 7.785 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.024e-05/0.6162, allocations: 7.938 kB / 0.6133 GB, free: 7.777 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-06/0.6162, allocations: 0 / 0.6133 GB, free: 7.777 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.6162, allocations: 4 kB / 0.6133 GB, free: 7.773 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.571e-05/0.6163, allocations: 86.83 kB / 0.6134 GB, free: 7.664 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.474e-05/0.6164, allocations: 81.11 kB / 0.6135 GB, free: 7.566 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.629e-05/0.6164, allocations: 7.922 kB / 0.6135 GB, free: 7.559 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.806e-06/0.6164, allocations: 0 / 0.6135 GB, free: 7.559 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.834e-05/0.6164, allocations: 0 / 0.6135 GB, free: 7.559 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.224e-06/0.6164, allocations: 4 kB / 0.6135 GB, free: 7.555 MB / 426.7 MB Notification: Performance of sorting global known variables: time 3.226e-05/0.6165, allocations: 87.25 kB / 0.6136 GB, free: 7.469 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.6165, allocations: 0 / 0.6136 GB, free: 7.469 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0002473/0.6167, allocations: 4 kB / 0.6136 GB, free: 7.465 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.0002924/0.617, allocations: 115.3 kB / 0.6137 GB, free: 7.352 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0001107/0.6172, allocations: 63.39 kB / 0.6138 GB, free: 7.277 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.265e-06/0.6172, allocations: 0 / 0.6138 GB, free: 7.277 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 3.382e-05/0.6172, allocations: 59.47 kB / 0.6138 GB, free: 7.207 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001829/0.6174, allocations: 0 / 0.6138 GB, free: 7.207 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002113/0.6176, allocations: 70.77 kB / 0.6139 GB, free: 7.109 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002809/0.6179, allocations: 0.677 MB / 0.6145 GB, free: 6.406 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 5.761e-06/0.6179, allocations: 0 / 0.6145 GB, free: 6.406 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.184e-05/0.6179, allocations: 15.38 kB / 0.6146 GB, free: 6.391 MB / 426.7 MB Notification: Performance of SimCode: time 3.21e-07/0.618, allocations: 0 / 0.6146 GB, free: 6.391 MB / 426.7 MB Notification: Performance of Templates: time 0.002297/0.6203, allocations: 288.3 kB / 0.6148 GB, free: 6.109 MB / 426.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.sim & ./ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.TestScalarFunctions.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_ModelicaTest.Math.TestScalarFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches