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.001236/0.001236, allocations: 176.7 kB / 17.06 MB, free: 5.098 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.362/1.362, allocations: 223.2 MB / 241 MB, free: 10.14 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.0008853/0.0008852, allocations: 93.16 kB / 292.2 MB, free: 10.7 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.3469/0.3469, allocations: 44.21 MB / 387.5 MB, free: 38.55 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004739/0.0004742, allocations: 8 kB / 459.9 MB, free: 1.555 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4099/0.4104, allocations: 61.9 MB / 0.5095 GB, free: 37.84 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.146/0.5565, allocations: 86.53 MB / 0.594 GB, free: 8.613 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002677/0.5568, allocations: 71.95 kB / 0.5941 GB, free: 8.543 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01798/0.5748, allocations: 6.473 MB / 0.6004 GB, free: 2.062 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.685e-06/0.5749, allocations: 0 / 0.6004 GB, free: 2.062 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.23e-06/0.5749, allocations: 8 kB / 0.6004 GB, free: 2.055 MB / 410.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.0003905/0.5753, allocations: 373 kB / 0.6008 GB, free: 1.637 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.126e-05/0.5753, allocations: 8.031 kB / 0.6008 GB, free: 1.629 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.066e-05/0.5754, allocations: 0 / 0.6008 GB, free: 1.629 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001129/0.5755, allocations: 159.1 kB / 0.601 GB, free: 1.434 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.764e-05/0.5755, allocations: 4 kB / 0.601 GB, free: 1.43 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.141e-05/0.5756, allocations: 0 / 0.601 GB, free: 1.43 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.63e-05/0.5757, allocations: 29.66 kB / 0.601 GB, free: 1.395 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.999e-06/0.5757, allocations: 11.92 kB / 0.601 GB, free: 1.383 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.388e-05/0.5757, allocations: 4 kB / 0.601 GB, free: 1.379 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.867e-06/0.5757, allocations: 4 kB / 0.601 GB, free: 1.375 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.923e-05/0.5757, allocations: 3.984 kB / 0.601 GB, free: 1.371 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001212/0.5759, allocations: 141.7 kB / 0.6011 GB, free: 1.184 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.135e-05/0.5759, allocations: 22.61 kB / 0.6012 GB, free: 1.152 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.743e-06/0.5759, allocations: 3.938 kB / 0.6012 GB, free: 1.148 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.774e-05/0.576, allocations: 60.27 kB / 0.6012 GB, free: 1.074 MB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 9.91e-07/0.576, allocations: 0 / 0.6012 GB, free: 1.074 MB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001721/0.5762, allocations: 71.34 kB / 0.6013 GB, free: 0.9922 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.543e-05/0.5762, allocations: 77.11 kB / 0.6014 GB, free: 0.8984 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.041e-05/0.5763, allocations: 92.91 kB / 0.6015 GB, free: 0.8008 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.23e-05/0.5763, allocations: 25.7 kB / 0.6015 GB, free: 0.7695 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.848e-05/0.5763, allocations: 84.14 kB / 0.6016 GB, free: 0.6836 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.383e-05/0.5763, allocations: 0 / 0.6016 GB, free: 0.6836 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.743e-06/0.5764, allocations: 0 / 0.6016 GB, free: 0.6836 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001203/0.5765, allocations: 318.9 kB / 0.6019 GB, free: 372 kB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.735e-06/0.5765, allocations: 0 / 0.6019 GB, free: 372 kB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.422e-06/0.5765, allocations: 4 kB / 0.6019 GB, free: 368 kB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.612e-05/0.5765, allocations: 29.69 kB / 0.6019 GB, free: 332 kB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.5765, allocations: 0 / 0.6019 GB, free: 332 kB / 410.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.447e-05/0.5766, allocations: 63.34 kB / 0.602 GB, free: 256 kB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.159e-05/0.5767, allocations: 33.7 kB / 0.602 GB, free: 216 kB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.529e-06/0.5767, allocations: 0 / 0.602 GB, free: 216 kB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.3e-05/0.5767, allocations: 96 / 0.602 GB, free: 216 kB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.455e-06/0.5767, allocations: 7.953 kB / 0.602 GB, free: 208 kB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.713e-06/0.5767, allocations: 4 kB / 0.602 GB, free: 204 kB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.201e-05/0.5767, allocations: 0 / 0.602 GB, free: 204 kB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.572e-06/0.5767, allocations: 0 / 0.602 GB, free: 204 kB / 410.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.512e-05/0.5768, allocations: 136.1 kB / 0.6021 GB, free: 52 kB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.082e-06/0.5768, allocations: 4 kB / 0.6021 GB, free: 48 kB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.607e-05/0.5769, allocations: 6.719 kB / 0.6021 GB, free: 44 kB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.41e-07/0.5769, allocations: 0 / 0.6021 GB, free: 44 kB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/0.5769, allocations: 3.953 kB / 0.6021 GB, free: 40 kB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.294e-06/0.5769, allocations: 4 kB / 0.6022 GB, free: 36 kB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001006/0.577, allocations: 145.7 kB / 0.6023 GB, free: 15.84 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.31e-07/0.577, allocations: 4 kB / 0.6023 GB, free: 15.84 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.61e-07/0.577, allocations: 0 / 0.6023 GB, free: 15.84 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.242e-06/0.577, allocations: 0 / 0.6023 GB, free: 15.84 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.652e-06/0.577, allocations: 0 / 0.6023 GB, free: 15.84 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.81e-07/0.577, allocations: 0 / 0.6023 GB, free: 15.84 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.577, allocations: 0 / 0.6023 GB, free: 15.84 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.505e-05/0.5771, allocations: 106.7 kB / 0.6024 GB, free: 15.71 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.088e-05/0.5772, allocations: 77.11 kB / 0.6025 GB, free: 15.62 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.141e-05/0.5772, allocations: 0 / 0.6025 GB, free: 15.62 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.054e-05/0.5772, allocations: 4 kB / 0.6025 GB, free: 15.61 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.804e-05/0.5772, allocations: 4 kB / 0.6025 GB, free: 15.61 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.335e-06/0.5772, allocations: 0 / 0.6025 GB, free: 15.61 MB / 426.7 MB Notification: Performance of sorting global known variables: time 2.539e-05/0.5773, allocations: 75.28 kB / 0.6025 GB, free: 15.54 MB / 426.7 MB Notification: Performance of sort global known variables: time 9e-08/0.5773, allocations: 0 / 0.6025 GB, free: 15.54 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0001957/0.5775, allocations: 15.95 kB / 0.6026 GB, free: 15.52 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.0002793/0.5778, allocations: 129.2 kB / 0.6027 GB, free: 15.39 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 9.506e-05/0.5779, allocations: 59.41 kB / 0.6027 GB, free: 15.32 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.215e-06/0.5779, allocations: 0 / 0.6027 GB, free: 15.32 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 3.503e-05/0.5779, allocations: 55.34 kB / 0.6028 GB, free: 15.26 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.783e-05/0.578, allocations: 9.391 kB / 0.6028 GB, free: 15.25 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001912/0.5782, allocations: 78.89 kB / 0.6029 GB, free: 15.14 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002682/0.5785, allocations: 0.677 MB / 0.6035 GB, free: 14.44 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 8.105e-06/0.5785, allocations: 3.984 kB / 0.6035 GB, free: 14.44 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.054e-05/0.5785, allocations: 7.438 kB / 0.6036 GB, free: 14.43 MB / 426.7 MB Notification: Performance of SimCode: time 2.1e-07/0.5785, allocations: 0 / 0.6036 GB, free: 14.43 MB / 426.7 MB Notification: Performance of Templates: time 0.002213/0.5807, allocations: 288.3 kB / 0.6038 GB, free: 14.15 MB / 426.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/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