Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.conf.json 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/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/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 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3") translateModel(ModelicaTest.Fluid.TestUtilities.Test02RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|a|b",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001232/0.001232, allocations: 99.83 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001344/0.001344, allocations: 188.2 kB / 17.88 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.293/1.293, allocations: 223.2 MB / 241.8 MB, free: 14.64 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1898/0.1898, allocations: 44.22 MB / 337.1 MB, free: 2.668 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004363/0.0004363, allocations: 11.94 kB / 409.5 MB, free: 27.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1524/0.1529, allocations: 61.92 MB / 471.5 MB, free: 13.74 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test02RegFun3): time 0.000826/0.1538, allocations: 214.9 kB / 471.7 MB, free: 13.53 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002876/0.1567, allocations: 1.31 MB / 473 MB, free: 12.2 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.6e-05/0.1567, allocations: 0 / 473 MB, free: 12.2 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.157e-05/0.1568, allocations: 0 / 473 MB, free: 12.2 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 3.878e-05/0.1568, allocations: 0 / 473 MB, free: 12.2 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009371/0.1578, allocations: 146.6 kB / 473.1 MB, free: 12.06 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.68e-05/0.1578, allocations: 4 kB / 473.1 MB, free: 12.06 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.625e-05/0.1579, allocations: 0 / 473.1 MB, free: 12.06 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.321e-05/0.1579, allocations: 3.984 kB / 473.1 MB, free: 12.05 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.291e-05/0.158, allocations: 12 kB / 473.1 MB, free: 12.04 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.294e-05/0.158, allocations: 0 / 473.1 MB, free: 12.04 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006699/0.1587, allocations: 251.6 kB / 473.4 MB, free: 11.8 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.942e-05/0.1587, allocations: 7.984 kB / 473.4 MB, free: 11.79 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.788e-05/0.1588, allocations: 25.7 kB / 473.4 MB, free: 11.76 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002234/0.159, allocations: 83.83 kB / 473.5 MB, free: 11.68 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.565e-06/0.159, allocations: 0 / 473.5 MB, free: 11.68 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.1591, allocations: 0 / 473.5 MB, free: 11.68 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.088e-06/0.1591, allocations: 0 / 473.5 MB, free: 11.68 MB / 350.1 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.0004694/0.1595, allocations: 335.4 kB / 473.8 MB, free: 11.3 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.531e-05/0.1596, allocations: 8.031 kB / 473.8 MB, free: 11.29 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.392e-05/0.1597, allocations: 7.984 kB / 473.8 MB, free: 11.29 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001338/0.1598, allocations: 159.1 kB / 474 MB, free: 11.09 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.493e-05/0.1598, allocations: 0 / 474 MB, free: 11.09 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.819e-05/0.1599, allocations: 3.953 kB / 474 MB, free: 11.09 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001588/0.16, allocations: 41.62 kB / 474 MB, free: 11.04 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.149e-05/0.1601, allocations: 4 kB / 474 MB, free: 11.04 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.168e-05/0.1601, allocations: 3.938 kB / 474 MB, free: 11.03 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.37e-06/0.1601, allocations: 0 / 474 MB, free: 11.03 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.094e-05/0.1602, allocations: 8 kB / 474.1 MB, free: 11.02 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004645/0.1606, allocations: 244.9 kB / 474.3 MB, free: 10.73 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.883e-05/0.1607, allocations: 18.58 kB / 474.3 MB, free: 10.71 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.481e-05/0.1607, allocations: 3.938 kB / 474.3 MB, free: 10.7 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.774e-05/0.1608, allocations: 38.56 kB / 474.4 MB, free: 10.66 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 5.2e-06/0.1608, allocations: 4 kB / 474.4 MB, free: 10.65 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002047/0.161, allocations: 29.7 kB / 474.4 MB, free: 10.62 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.008e-05/0.1611, allocations: 51.41 kB / 474.4 MB, free: 10.55 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001125/0.1612, allocations: 105.8 kB / 474.5 MB, free: 10.44 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.102e-05/0.1612, allocations: 25.7 kB / 474.6 MB, free: 10.41 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.677e-05/0.1613, allocations: 84.36 kB / 474.6 MB, free: 10.32 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.232e-05/0.1614, allocations: 7.906 kB / 474.7 MB, free: 10.32 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.646e-06/0.1614, allocations: 0 / 474.7 MB, free: 10.32 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001402/0.1615, allocations: 319.1 kB / 475 MB, free: 9.996 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.037e-05/0.1616, allocations: 3.984 kB / 475 MB, free: 9.992 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.888e-05/0.1616, allocations: 22.52 kB / 475 MB, free: 9.961 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.922e-05/0.1617, allocations: 4 kB / 475 MB, free: 9.957 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.12e-06/0.1617, allocations: 3.953 kB / 475 MB, free: 9.953 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001266/0.1618, allocations: 53.69 kB / 475.1 MB, free: 9.895 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.191e-05/0.1619, allocations: 8 kB / 475.1 MB, free: 9.887 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.1619, allocations: 96 / 475.1 MB, free: 9.887 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.015e-05/0.1619, allocations: 3.984 kB / 475.1 MB, free: 9.883 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.104e-05/0.162, allocations: 4 kB / 475.1 MB, free: 9.879 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.114e-05/0.162, allocations: 4 kB / 475.1 MB, free: 9.875 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.076e-05/0.1621, allocations: 0 / 475.1 MB, free: 9.875 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.267e-06/0.1621, allocations: 0 / 475.1 MB, free: 9.875 MB / 350.1 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 0.0001089/0.1622, allocations: 114.4 kB / 475.2 MB, free: 9.754 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.825e-05/0.1623, allocations: 11.97 kB / 475.2 MB, free: 9.742 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000165/0.1625, allocations: 44.72 kB / 475.2 MB, free: 9.691 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.338e-06/0.1625, allocations: 0 / 475.2 MB, free: 9.691 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.619e-06/0.1625, allocations: 0 / 475.2 MB, free: 9.691 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.135e-06/0.1625, allocations: 4 kB / 475.2 MB, free: 9.688 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002281/0.1627, allocations: 149.7 kB / 475.4 MB, free: 9.492 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-05/0.1628, allocations: 4 kB / 475.4 MB, free: 9.488 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.527e-06/0.1628, allocations: 7.891 kB / 475.4 MB, free: 9.48 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.703e-06/0.1628, allocations: 8.031 kB / 475.4 MB, free: 9.473 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.484e-06/0.1628, allocations: 0 / 475.4 MB, free: 9.473 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.964e-06/0.1628, allocations: 0 / 475.4 MB, free: 9.473 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.1629, allocations: 0 / 475.4 MB, free: 9.473 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001434/0.163, allocations: 139.4 kB / 475.5 MB, free: 9.32 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.376e-05/0.1631, allocations: 77.11 kB / 475.6 MB, free: 9.227 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.027e-05/0.1631, allocations: 3.953 kB / 475.6 MB, free: 9.223 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.901e-05/0.1632, allocations: 4.031 kB / 475.6 MB, free: 9.219 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.774e-05/0.1633, allocations: 4 kB / 475.6 MB, free: 9.215 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.703e-06/0.1633, allocations: 0 / 475.6 MB, free: 9.215 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.156e-05/0.1633, allocations: 83.2 kB / 475.7 MB, free: 9.133 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.1633, allocations: 4 kB / 475.7 MB, free: 9.129 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005162/0.1639, allocations: 36 kB / 475.8 MB, free: 9.094 MB / 350.1 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.000423/0.1643, allocations: 139.2 kB / 475.9 MB, free: 8.949 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.984e-05/0.1644, allocations: 16.08 kB / 475.9 MB, free: 8.934 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.52e-06/0.1644, allocations: 4 kB / 475.9 MB, free: 8.93 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.457e-05/0.1645, allocations: 25.7 kB / 475.9 MB, free: 8.898 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002033/0.1647, allocations: 4 kB / 475.9 MB, free: 8.895 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00028/0.165, allocations: 83 kB / 476 MB, free: 8.785 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003227/0.1654, allocations: 0.6731 MB / 476.7 MB, free: 8.086 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.099e-05/0.1654, allocations: 192 / 476.7 MB, free: 8.086 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.213e-05/0.1655, allocations: 11.44 kB / 476.7 MB, free: 8.074 MB / 350.1 MB Notification: Performance of SimCode: time 5.61e-07/0.1655, allocations: 7.938 kB / 476.7 MB, free: 8.066 MB / 350.1 MB Notification: Performance of Templates: time 0.005787/0.1713, allocations: 1.034 MB / 477.7 MB, free: 7.031 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/Test02RegFun3/Test02RegFun3.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches