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.001065/0.001065, allocations: 187 kB / 18.09 MB, free: 3.727 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.348/1.348, allocations: 223.3 MB / 242.1 MB, free: 11.61 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.0007851/0.0007852, allocations: 94.02 kB / 293.3 MB, free: 10.77 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.3783/0.3783, allocations: 44.14 MB / 388.5 MB, free: 38.75 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004319/0.0004319, allocations: 8 kB / 461.1 MB, free: 1.336 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3992/0.3996, allocations: 61.88 MB / 0.5107 GB, free: 38.37 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1288/0.5285, allocations: 86.53 MB / 0.5952 GB, free: 8.555 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002005/0.5288, allocations: 67.95 kB / 0.5953 GB, free: 8.492 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01795/0.5467, allocations: 6.434 MB / 0.6016 GB, free: 2.047 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.322e-06/0.5468, allocations: 8 kB / 0.6016 GB, free: 2.039 MB / 410.7 MB Notification: Performance of Transformations before backend: time 8.126e-06/0.5468, allocations: 0 / 0.6016 GB, free: 2.039 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.000346/0.5471, allocations: 369.2 kB / 0.6019 GB, free: 1.621 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.112e-05/0.5472, allocations: 8.031 kB / 0.6019 GB, free: 1.613 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.216e-05/0.5472, allocations: 0.9375 kB / 0.6019 GB, free: 1.613 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001065/0.5473, allocations: 172.1 kB / 0.6021 GB, free: 1.41 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.219e-05/0.5474, allocations: 4.375 kB / 0.6021 GB, free: 1.406 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.037e-06/0.5474, allocations: 384 / 0.6021 GB, free: 1.406 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.122e-05/0.5475, allocations: 34.25 kB / 0.6021 GB, free: 1.367 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.624e-06/0.5475, allocations: 4.188 kB / 0.6021 GB, free: 1.363 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.035e-05/0.5475, allocations: 3.938 kB / 0.6021 GB, free: 1.359 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.938e-06/0.5475, allocations: 0 / 0.6021 GB, free: 1.359 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.504e-05/0.5475, allocations: 0 / 0.6021 GB, free: 1.359 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001399/0.5477, allocations: 141.7 kB / 0.6023 GB, free: 1.172 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.061e-05/0.5477, allocations: 30.53 kB / 0.6023 GB, free: 1.133 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.545e-05/0.5477, allocations: 4.859 kB / 0.6023 GB, free: 1.125 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.454e-06/0.5477, allocations: 4 kB / 0.6023 GB, free: 1.121 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.233e-05/0.5478, allocations: 60.33 kB / 0.6024 GB, free: 1.047 MB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 1.052e-06/0.5478, allocations: 0 / 0.6024 GB, free: 1.047 MB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001714/0.548, allocations: 63.34 kB / 0.6024 GB, free: 0.9727 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.06e-05/0.548, allocations: 85.09 kB / 0.6025 GB, free: 0.8711 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.093e-05/0.5481, allocations: 93.77 kB / 0.6026 GB, free: 0.7695 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.373e-05/0.5481, allocations: 25.7 kB / 0.6026 GB, free: 0.7383 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.089e-05/0.5482, allocations: 84.2 kB / 0.6027 GB, free: 0.6523 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.97e-05/0.5482, allocations: 4 kB / 0.6027 GB, free: 0.6484 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.994e-06/0.5482, allocations: 3.938 kB / 0.6027 GB, free: 0.6445 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001252/0.5483, allocations: 310.8 kB / 0.603 GB, free: 340 kB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.725e-06/0.5483, allocations: 4 kB / 0.603 GB, free: 336 kB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.178e-06/0.5483, allocations: 0 / 0.603 GB, free: 336 kB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.834e-05/0.5484, allocations: 60.27 kB / 0.6031 GB, free: 260 kB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.5484, allocations: 0 / 0.6031 GB, free: 260 kB / 410.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.55e-05/0.5485, allocations: 71.45 kB / 0.6031 GB, free: 176 kB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.389e-05/0.5485, allocations: 29.7 kB / 0.6032 GB, free: 140 kB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.709e-06/0.5485, allocations: 0 / 0.6032 GB, free: 140 kB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.328e-05/0.5486, allocations: 3.938 kB / 0.6032 GB, free: 136 kB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.052e-06/0.5486, allocations: 0 / 0.6032 GB, free: 136 kB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.171e-06/0.5486, allocations: 0 / 0.6032 GB, free: 136 kB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.471e-05/0.5486, allocations: 7.938 kB / 0.6032 GB, free: 128 kB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.226e-06/0.5486, allocations: 4 kB / 0.6032 GB, free: 124 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 0.0001133/0.5487, allocations: 135.5 kB / 0.6033 GB, free: 15.97 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.096e-06/0.5487, allocations: 8.031 kB / 0.6033 GB, free: 15.96 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.712e-05/0.5488, allocations: 14.59 kB / 0.6033 GB, free: 15.95 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.062e-06/0.5488, allocations: 0 / 0.6033 GB, free: 15.95 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.499e-06/0.5488, allocations: 0 / 0.6033 GB, free: 15.95 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.405e-06/0.5488, allocations: 0 / 0.6033 GB, free: 15.95 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001003/0.5489, allocations: 145.7 kB / 0.6035 GB, free: 15.76 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.41e-07/0.5489, allocations: 0 / 0.6035 GB, free: 15.76 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.827e-06/0.5489, allocations: 7.984 kB / 0.6035 GB, free: 15.75 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.072e-06/0.5489, allocations: 0 / 0.6035 GB, free: 15.75 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.444e-06/0.5489, allocations: 3.938 kB / 0.6035 GB, free: 15.75 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.32e-07/0.5489, allocations: 0 / 0.6035 GB, free: 15.75 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.02e-07/0.5489, allocations: 4 kB / 0.6035 GB, free: 15.75 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001/0.5491, allocations: 90.83 kB / 0.6036 GB, free: 15.63 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.291e-05/0.5491, allocations: 77.11 kB / 0.6037 GB, free: 15.54 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.298e-05/0.5491, allocations: 3.938 kB / 0.6037 GB, free: 15.54 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.666e-06/0.5491, allocations: 0 / 0.6037 GB, free: 15.54 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.426e-05/0.5491, allocations: 7.938 kB / 0.6037 GB, free: 15.53 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.205e-06/0.5492, allocations: 0 / 0.6037 GB, free: 15.53 MB / 426.7 MB Notification: Performance of sorting global known variables: time 3.103e-05/0.5492, allocations: 79.31 kB / 0.6037 GB, free: 15.45 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.01e-07/0.5492, allocations: 3.938 kB / 0.6037 GB, free: 15.45 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0001927/0.5494, allocations: 8 kB / 0.6038 GB, free: 15.44 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.0002705/0.5497, allocations: 119 kB / 0.6039 GB, free: 15.32 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 9.188e-05/0.5498, allocations: 55.41 kB / 0.6039 GB, free: 15.25 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.629e-06/0.5498, allocations: 4 kB / 0.6039 GB, free: 15.25 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 2.73e-05/0.5498, allocations: 59.47 kB / 0.604 GB, free: 15.18 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001187/0.5499, allocations: 4 kB / 0.604 GB, free: 15.18 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001737/0.5501, allocations: 78.69 kB / 0.6041 GB, free: 15.07 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002624/0.5504, allocations: 0.6731 MB / 0.6047 GB, free: 14.37 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 6.031e-06/0.5504, allocations: 0 / 0.6047 GB, free: 14.37 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.148e-05/0.5504, allocations: 7.438 kB / 0.6047 GB, free: 14.36 MB / 426.7 MB Notification: Performance of SimCode: time 2.31e-07/0.5504, allocations: 7.875 kB / 0.6047 GB, free: 14.36 MB / 426.7 MB Notification: Performance of Templates: time 0.002027/0.5525, allocations: 287.3 kB / 0.605 GB, free: 14.08 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/jenkins1/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