Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.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.Test02RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|a|b",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3") translateModel(ModelicaTest.Fluid.TestUtilities.Test02RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|a|b",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001564/0.00157, allocations: 183 kB / 16.4 MB, free: 5.754 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.045/2.045, allocations: 205.4 MB / 222.5 MB, free: 9.117 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.001139/0.001139, allocations: 99.33 kB / 270.9 MB, free: 8.359 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.536/0.536, allocations: 43.55 MB / 362.7 MB, free: 52.14 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005166/0.0005167, allocations: 12 kB / 431.4 MB, free: 6.18 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1349/0.1354, allocations: 58.85 MB / 490.2 MB, free: 11.24 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test02RegFun3): time 0.0007524/0.1362, allocations: 228.4 kB / 490.4 MB, free: 11.02 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002452/0.1387, allocations: 1.342 MB / 491.8 MB, free: 9.656 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.539e-05/0.1388, allocations: 0 / 491.8 MB, free: 9.656 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.619e-05/0.1388, allocations: 0 / 491.8 MB, free: 9.656 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 3.454e-05/0.1389, allocations: 0 / 491.8 MB, free: 9.656 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008183/0.1397, allocations: 151.6 kB / 491.9 MB, free: 9.508 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 4.41e-05/0.1397, allocations: 3.984 kB / 491.9 MB, free: 9.504 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.618e-05/0.1398, allocations: 7.938 kB / 491.9 MB, free: 9.496 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.861e-05/0.1398, allocations: 3.938 kB / 491.9 MB, free: 9.492 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.14e-05/0.1399, allocations: 4 kB / 491.9 MB, free: 9.488 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.163e-05/0.1399, allocations: 3.938 kB / 491.9 MB, free: 9.484 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000608/0.1405, allocations: 255.6 kB / 492.2 MB, free: 9.234 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 1.047e-05/0.1406, allocations: 0 / 492.2 MB, free: 9.234 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 2.965e-05/0.1406, allocations: 25.7 kB / 492.2 MB, free: 9.203 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002037/0.1408, allocations: 87.81 kB / 492.3 MB, free: 9.117 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.517e-06/0.1408, allocations: 4 kB / 492.3 MB, free: 9.113 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.763e-06/0.1408, allocations: 0 / 492.3 MB, free: 9.113 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.739e-06/0.1409, allocations: 0 / 492.3 MB, free: 9.113 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0003951/0.1413, allocations: 331.4 kB / 492.6 MB, free: 8.742 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.417e-05/0.1413, allocations: 8.031 kB / 492.6 MB, free: 8.734 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.5e-05/0.1414, allocations: 7.859 kB / 492.6 MB, free: 8.727 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001092/0.1415, allocations: 159.1 kB / 492.8 MB, free: 8.531 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.7e-05/0.1415, allocations: 7.938 kB / 492.8 MB, free: 8.523 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.1e-05/0.1415, allocations: 4 kB / 492.8 MB, free: 8.52 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001274/0.1417, allocations: 37.69 kB / 492.8 MB, free: 8.477 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.265e-06/0.1417, allocations: 0 / 492.8 MB, free: 8.477 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.131e-05/0.1417, allocations: 0 / 492.8 MB, free: 8.477 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.92e-06/0.1417, allocations: 0 / 492.8 MB, free: 8.477 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.637e-05/0.1418, allocations: 15.95 kB / 492.9 MB, free: 8.461 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004103/0.1422, allocations: 233 kB / 493.1 MB, free: 8.184 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.023e-05/0.1423, allocations: 26.52 kB / 493.1 MB, free: 8.148 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.096e-06/0.1423, allocations: 4 kB / 493.1 MB, free: 8.145 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.354e-05/0.1423, allocations: 38.55 kB / 493.2 MB, free: 8.098 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 1.593e-06/0.1423, allocations: 0 / 493.2 MB, free: 8.098 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001774/0.1425, allocations: 41.7 kB / 493.2 MB, free: 8.051 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.707e-05/0.1426, allocations: 51.41 kB / 493.2 MB, free: 7.988 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.952e-05/0.1427, allocations: 93.86 kB / 493.3 MB, free: 7.887 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.267e-05/0.1427, allocations: 29.7 kB / 493.4 MB, free: 7.852 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.559e-05/0.1428, allocations: 162.9 kB / 493.5 MB, free: 7.691 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.006e-05/0.1428, allocations: 7.922 kB / 493.5 MB, free: 7.684 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.407e-06/0.1428, allocations: 3.938 kB / 493.5 MB, free: 7.68 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001231/0.143, allocations: 314.8 kB / 493.8 MB, free: 7.363 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.527e-05/0.143, allocations: 0 / 493.8 MB, free: 7.363 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.569e-05/0.143, allocations: 22.58 kB / 493.9 MB, free: 7.332 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.707e-05/0.1431, allocations: 8 kB / 493.9 MB, free: 7.324 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.1431, allocations: 0 / 493.9 MB, free: 7.324 MB / 378.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 9.935e-05/0.1432, allocations: 49.62 kB / 493.9 MB, free: 7.27 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.53e-05/0.1432, allocations: 7.75 kB / 493.9 MB, free: 7.266 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.015e-06/0.1432, allocations: 4 kB / 493.9 MB, free: 7.262 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.759e-05/0.1433, allocations: 3.953 kB / 493.9 MB, free: 7.258 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.45e-05/0.1434, allocations: 7.938 kB / 493.9 MB, free: 7.25 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.099e-05/0.1434, allocations: 7.969 kB / 494 MB, free: 7.242 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.81e-05/0.1434, allocations: 7.906 kB / 494 MB, free: 7.234 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.797e-06/0.1434, allocations: 4.094 kB / 494 MB, free: 7.23 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (3): * Single equations (assignments): 3 * 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.359e-05/0.1435, allocations: 117.8 kB / 494.1 MB, free: 7.105 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.738e-05/0.1436, allocations: 0 / 494.1 MB, free: 7.105 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000148/0.1437, allocations: 44.81 kB / 494.1 MB, free: 7.055 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.419e-06/0.1437, allocations: 0 / 494.1 MB, free: 7.055 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.484e-06/0.1438, allocations: 3.953 kB / 494.1 MB, free: 7.051 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.605e-06/0.1438, allocations: 4.031 kB / 494.1 MB, free: 7.047 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001929/0.144, allocations: 145.7 kB / 494.3 MB, free: 6.855 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.823e-06/0.144, allocations: 0 / 494.3 MB, free: 6.855 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.537e-06/0.144, allocations: 4 kB / 494.3 MB, free: 6.852 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.317e-06/0.144, allocations: 0 / 494.3 MB, free: 6.852 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.739e-06/0.144, allocations: 3.984 kB / 494.3 MB, free: 6.848 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.997e-06/0.144, allocations: 4 kB / 494.3 MB, free: 6.844 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.1441, allocations: 0 / 494.3 MB, free: 6.844 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001366/0.1442, allocations: 139.5 kB / 494.4 MB, free: 6.691 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.43e-05/0.1443, allocations: 77.11 kB / 494.5 MB, free: 6.598 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.316e-05/0.1443, allocations: 0 / 494.5 MB, free: 6.598 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.131e-05/0.1444, allocations: 3.984 kB / 494.5 MB, free: 6.594 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.274e-05/0.1444, allocations: 0 / 494.5 MB, free: 6.594 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.027e-05/0.1444, allocations: 4 kB / 494.5 MB, free: 6.59 MB / 378.7 MB Notification: Performance of sorting global known variables: time 4.798e-05/0.1445, allocations: 83.23 kB / 494.6 MB, free: 6.508 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.194e-06/0.1445, allocations: 0 / 494.6 MB, free: 6.508 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004016/0.1449, allocations: 43.94 kB / 494.6 MB, free: 6.465 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.0003753/0.1453, allocations: 139.3 kB / 494.8 MB, free: 6.32 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000111/0.1454, allocations: 15.94 kB / 494.8 MB, free: 6.305 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.507e-06/0.1454, allocations: 0 / 494.8 MB, free: 6.305 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 4.212e-05/0.1455, allocations: 29.7 kB / 494.8 MB, free: 6.27 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001651/0.1456, allocations: 0 / 494.8 MB, free: 6.27 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002784/0.1459, allocations: 116.7 kB / 494.9 MB, free: 6.125 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002752/0.1462, allocations: 0.677 MB / 495.6 MB, free: 5.422 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.307e-05/0.1463, allocations: 11.44 kB / 495.6 MB, free: 5.41 MB / 378.7 MB Notification: Performance of SimCode: time 8.52e-07/0.1463, allocations: 0 / 495.6 MB, free: 5.41 MB / 378.7 MB Notification: Performance of Templates: time 0.003551/0.1498, allocations: 1.003 MB / 496.6 MB, free: 4.41 MB / 378.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestUtilities/Test02RegFun3/Test02RegFun3.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches