Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestUtilities.Test01RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3") translateModel(ModelicaTest.Fluid.TestUtilities.Test01RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002298/0.002303, allocations: 182.8 kB / 16.4 MB, free: 5.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.124/2.124, allocations: 205.4 MB / 222.5 MB, free: 9.109 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001173/0.001173, allocations: 101.5 kB / 270.9 MB, free: 8.363 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.5316/0.5316, allocations: 43.54 MB / 362.7 MB, free: 52.15 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004923/0.0004924, allocations: 16 kB / 431.4 MB, free: 6.172 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1318/0.1323, allocations: 58.85 MB / 490.2 MB, free: 11.23 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test01RegFun3): time 0.0007078/0.1331, allocations: 224.4 kB / 490.4 MB, free: 11.02 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002442/0.1356, allocations: 1.339 MB / 491.8 MB, free: 9.656 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.372e-05/0.1356, allocations: 4 kB / 491.8 MB, free: 9.652 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.277e-05/0.1357, allocations: 0 / 491.8 MB, free: 9.652 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 4.148e-05/0.1357, allocations: 3.984 kB / 491.8 MB, free: 9.648 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008181/0.1365, allocations: 143.7 kB / 491.9 MB, free: 9.508 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 4.563e-05/0.1366, allocations: 3.984 kB / 491.9 MB, free: 9.504 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.692e-05/0.1367, allocations: 3.938 kB / 491.9 MB, free: 9.5 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.152e-05/0.1367, allocations: 4 kB / 491.9 MB, free: 9.496 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.117e-05/0.1368, allocations: 11.92 kB / 491.9 MB, free: 9.484 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.447e-05/0.1368, allocations: 4 kB / 491.9 MB, free: 9.48 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005767/0.1374, allocations: 247.7 kB / 492.2 MB, free: 9.238 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 9.598e-06/0.1374, allocations: 0 / 492.2 MB, free: 9.238 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 2.93e-05/0.1374, allocations: 25.7 kB / 492.2 MB, free: 9.207 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001949/0.1376, allocations: 83.83 kB / 492.3 MB, free: 9.125 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.745e-06/0.1377, allocations: 7.938 kB / 492.3 MB, free: 9.117 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.184e-06/0.1377, allocations: 0 / 492.3 MB, free: 9.117 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.04e-06/0.1377, allocations: 0 / 492.3 MB, free: 9.117 MB / 378.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.0004179/0.1381, allocations: 339.3 kB / 492.6 MB, free: 8.738 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.668e-05/0.1382, allocations: 8.031 kB / 492.6 MB, free: 8.73 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.995e-05/0.1382, allocations: 3.953 kB / 492.6 MB, free: 8.727 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001326/0.1384, allocations: 163.1 kB / 492.8 MB, free: 8.527 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.353e-05/0.1384, allocations: 3.938 kB / 492.8 MB, free: 8.523 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.445e-05/0.1384, allocations: 4 kB / 492.8 MB, free: 8.52 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001039/0.1385, allocations: 29.7 kB / 492.8 MB, free: 8.484 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.258e-06/0.1385, allocations: 0 / 492.8 MB, free: 8.484 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.424e-05/0.1386, allocations: 4 kB / 492.8 MB, free: 8.48 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.521e-06/0.1386, allocations: 0 / 492.8 MB, free: 8.48 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.867e-05/0.1386, allocations: 3.953 kB / 492.9 MB, free: 8.477 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001653/0.1388, allocations: 153.7 kB / 493 MB, free: 8.277 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.019e-05/0.1388, allocations: 18.52 kB / 493 MB, free: 8.25 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.12e-05/0.1389, allocations: 7.984 kB / 493 MB, free: 8.242 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.049e-05/0.1389, allocations: 34.66 kB / 493.1 MB, free: 8.199 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 1.433e-06/0.1389, allocations: 0 / 493.1 MB, free: 8.199 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001599/0.1391, allocations: 37.69 kB / 493.1 MB, free: 8.156 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.964e-05/0.1391, allocations: 51.41 kB / 493.1 MB, free: 8.094 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.255e-05/0.1392, allocations: 93.86 kB / 493.2 MB, free: 7.992 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.707e-05/0.1393, allocations: 25.7 kB / 493.3 MB, free: 7.961 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.389e-05/0.1394, allocations: 154.8 kB / 493.4 MB, free: 7.809 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.927e-05/0.1394, allocations: 8.219 kB / 493.4 MB, free: 7.801 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.587e-06/0.1394, allocations: 0 / 493.4 MB, free: 7.801 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001386/0.1396, allocations: 314.8 kB / 493.7 MB, free: 7.484 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.668e-05/0.1396, allocations: 3.938 kB / 493.7 MB, free: 7.48 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.427e-05/0.1396, allocations: 4.016 kB / 493.7 MB, free: 7.477 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.301e-05/0.1397, allocations: 7.984 kB / 493.7 MB, free: 7.469 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.514e-06/0.1397, allocations: 0 / 493.7 MB, free: 7.469 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.513e-05/0.1398, allocations: 37.77 kB / 493.8 MB, free: 7.426 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.027e-05/0.1398, allocations: 4 kB / 493.8 MB, free: 7.422 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/0.1398, allocations: 0 / 493.8 MB, free: 7.422 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.485e-05/0.1398, allocations: 0 / 493.8 MB, free: 7.422 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.498e-05/0.1399, allocations: 4 kB / 493.8 MB, free: 7.418 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.51e-06/0.1399, allocations: 0 / 493.8 MB, free: 7.418 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.179e-05/0.14, allocations: 0 / 493.8 MB, free: 7.418 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.889e-06/0.14, allocations: 0 / 493.8 MB, free: 7.418 MB / 378.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * 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 9.281e-05/0.1401, allocations: 121.7 kB / 493.9 MB, free: 7.289 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.769e-05/0.1401, allocations: 7.906 kB / 493.9 MB, free: 7.281 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001955/0.1403, allocations: 48.8 kB / 494 MB, free: 7.227 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.669e-06/0.1404, allocations: 3.938 kB / 494 MB, free: 7.223 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.1404, allocations: 0 / 494 MB, free: 7.223 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.761e-06/0.1404, allocations: 3.984 kB / 494 MB, free: 7.219 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001316/0.1405, allocations: 153.6 kB / 494.1 MB, free: 7.02 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.234e-06/0.1405, allocations: 0 / 494.1 MB, free: 7.02 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.81e-07/0.1406, allocations: 0 / 494.1 MB, free: 7.02 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.555e-06/0.1406, allocations: 4.031 kB / 494.1 MB, free: 7.016 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.468e-06/0.1406, allocations: 4 kB / 494.1 MB, free: 7.012 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.717e-06/0.1406, allocations: 3.984 kB / 494.1 MB, free: 7.008 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.255e-06/0.1406, allocations: 0 / 494.1 MB, free: 7.008 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001061/0.1407, allocations: 69.05 kB / 494.2 MB, free: 6.922 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.982e-05/0.1408, allocations: 81.11 kB / 494.3 MB, free: 6.824 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.391e-05/0.1408, allocations: 0 / 494.3 MB, free: 6.824 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.306e-05/0.1409, allocations: 8.016 kB / 494.3 MB, free: 6.816 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.802e-05/0.1409, allocations: 4 kB / 494.3 MB, free: 6.812 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.563e-06/0.141, allocations: 0 / 494.3 MB, free: 6.812 MB / 378.7 MB Notification: Performance of sorting global known variables: time 4.886e-05/0.141, allocations: 79.28 kB / 494.4 MB, free: 6.734 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.166e-06/0.141, allocations: 0 / 494.4 MB, free: 6.734 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003863/0.1414, allocations: 43.94 kB / 494.4 MB, free: 6.691 MB / 378.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: 0 () * Number of discrete states: 0 () * 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: 0 * Record equations: 1 * 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.0003984/0.1418, allocations: 131.2 kB / 494.5 MB, free: 6.555 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 9.634e-05/0.142, allocations: 16.09 kB / 494.6 MB, free: 6.539 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.142, allocations: 0 / 494.6 MB, free: 6.539 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 4.765e-05/0.142, allocations: 25.7 kB / 494.6 MB, free: 6.508 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001388/0.1422, allocations: 7.953 kB / 494.6 MB, free: 6.5 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002862/0.1425, allocations: 116.4 kB / 494.7 MB, free: 6.355 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002959/0.1428, allocations: 0.677 MB / 495.4 MB, free: 5.652 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.884e-05/0.1428, allocations: 7.438 kB / 495.4 MB, free: 5.645 MB / 378.7 MB Notification: Performance of SimCode: time 8.91e-07/0.1428, allocations: 0 / 495.4 MB, free: 5.645 MB / 378.7 MB Notification: Performance of Templates: time 0.003511/0.1463, allocations: 0.9912 MB / 496.4 MB, free: 4.652 MB / 378.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestUtilities/Test01RegFun3/Test01RegFun3.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches