Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRootDerivative.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: "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegRootDerivative,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_TestRegRootDerivative",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegRootDerivative,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_TestRegRootDerivative",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0014/0.001401, allocations: 104.2 kB / 17.63 MB, free: 5.523 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.001523/0.001523, allocations: 191.9 kB / 18.56 MB, free: 4.605 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.444/1.444, allocations: 222.9 MB / 242.2 MB, free: 15.2 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.2209/0.2209, allocations: 44.17 MB / 336.6 MB, free: 2.75 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001973/0.001973, allocations: 62.17 kB / 408.5 MB, free: 27.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1527/0.1547, allocations: 60.83 MB / 469.4 MB, free: 14.27 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegRootDerivative): time 0.001875/0.1566, allocations: 499.6 kB / 469.8 MB, free: 13.77 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003049/0.157, allocations: 103.7 kB / 469.9 MB, free: 13.67 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.851e-05/0.157, allocations: 4 kB / 470 MB, free: 13.67 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.441e-05/0.1571, allocations: 0 / 470 MB, free: 13.67 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.614e-05/0.1571, allocations: 0 / 470 MB, free: 13.67 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002133/0.1573, allocations: 19.91 kB / 470 MB, free: 13.65 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.436e-05/0.1574, allocations: 4 kB / 470 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.511e-05/0.1574, allocations: 4 kB / 470 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.733e-05/0.1575, allocations: 7.984 kB / 470 MB, free: 13.63 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.439e-05/0.1575, allocations: 7.938 kB / 470 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.287e-05/0.1576, allocations: 0 / 470 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.76e-05/0.1577, allocations: 35.97 kB / 470 MB, free: 13.59 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.406e-05/0.1577, allocations: 3.984 kB / 470 MB, free: 13.59 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.533e-05/0.1577, allocations: 15.92 kB / 470 MB, free: 13.57 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 8.759e-05/0.1578, allocations: 23.97 kB / 470.1 MB, free: 13.55 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/0.1578, allocations: 0 / 470.1 MB, free: 13.55 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.106e-06/0.1578, allocations: 0 / 470.1 MB, free: 13.55 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.005e-06/0.1578, allocations: 3.938 kB / 470.1 MB, free: 13.54 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0003672/0.1582, allocations: 319.6 kB / 470.4 MB, free: 13.18 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.656e-05/0.1583, allocations: 12.03 kB / 470.4 MB, free: 13.17 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.487e-05/0.1583, allocations: 42.69 kB / 470.4 MB, free: 13.12 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.397e-05/0.1583, allocations: 0.9375 kB / 470.4 MB, free: 13.12 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001169/0.1585, allocations: 164.7 kB / 470.6 MB, free: 12.92 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.948e-06/0.1585, allocations: 384 / 470.6 MB, free: 12.92 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.191e-05/0.1585, allocations: 8.297 kB / 470.6 MB, free: 12.91 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000123/0.1586, allocations: 59.97 kB / 470.7 MB, free: 12.84 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.718e-06/0.1586, allocations: 3.938 kB / 470.7 MB, free: 12.84 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.879e-06/0.1586, allocations: 3.984 kB / 470.7 MB, free: 12.83 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.121e-06/0.1587, allocations: 4 kB / 470.7 MB, free: 12.83 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.843e-05/0.1587, allocations: 11.94 kB / 470.7 MB, free: 12.82 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003811/0.1591, allocations: 325 kB / 471 MB, free: 12.45 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.163e-05/0.1592, allocations: 30.55 kB / 471 MB, free: 12.41 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.704e-05/0.1592, allocations: 16.86 kB / 471.1 MB, free: 12.39 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.019e-05/0.1593, allocations: 3.938 kB / 471.1 MB, free: 12.38 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.341e-05/0.1593, allocations: 38.56 kB / 471.1 MB, free: 12.34 MB / 350.1 MB Notification: Performance of pre-optimization done (n=4): time 1.383e-06/0.1593, allocations: 0 / 471.1 MB, free: 12.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=4): time 0.0001896/0.1595, allocations: 49.78 kB / 471.1 MB, free: 12.28 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.784e-05/0.1595, allocations: 55.41 kB / 471.2 MB, free: 12.21 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.132e-05/0.1596, allocations: 97.84 kB / 471.3 MB, free: 12.11 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.161e-05/0.1596, allocations: 25.7 kB / 471.3 MB, free: 12.08 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.648e-05/0.1597, allocations: 82.64 kB / 471.4 MB, free: 12 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.358e-05/0.1597, allocations: 15.94 kB / 471.4 MB, free: 11.98 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.137e-05/0.1597, allocations: 13.72 kB / 471.4 MB, free: 11.96 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001017/0.1598, allocations: 322.8 kB / 471.7 MB, free: 11.64 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.396e-05/0.1599, allocations: 4 kB / 471.8 MB, free: 11.63 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.596e-05/0.1599, allocations: 21.66 kB / 471.8 MB, free: 11.61 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.151e-05/0.16, allocations: 25.7 kB / 471.8 MB, free: 11.57 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.586e-06/0.16, allocations: 11.94 kB / 471.8 MB, free: 11.56 MB / 350.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001031/0.1601, allocations: 61.53 kB / 471.9 MB, free: 11.5 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.769e-05/0.1601, allocations: 4 kB / 471.9 MB, free: 11.49 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.979e-06/0.1601, allocations: 3.938 kB / 471.9 MB, free: 11.49 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.554e-05/0.1601, allocations: 0 / 471.9 MB, free: 11.49 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.939e-05/0.1602, allocations: 8 kB / 471.9 MB, free: 11.48 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.861e-06/0.1602, allocations: 0 / 471.9 MB, free: 11.48 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.448e-05/0.1603, allocations: 4 kB / 471.9 MB, free: 11.48 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.624e-06/0.1603, allocations: 0 / 471.9 MB, free: 11.48 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (5): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.888e-05/0.1604, allocations: 129.7 kB / 472 MB, free: 11.34 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.423e-05/0.1604, allocations: 0 / 472 MB, free: 11.34 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000138/0.1605, allocations: 65.12 kB / 472.1 MB, free: 11.27 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-06/0.1605, allocations: 0 / 472.1 MB, free: 11.27 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.037e-06/0.1606, allocations: 0 / 472.1 MB, free: 11.27 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.945e-06/0.1606, allocations: 0 / 472.1 MB, free: 11.27 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001671/0.1607, allocations: 161.6 kB / 472.2 MB, free: 11.06 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.1607, allocations: 4.188 kB / 472.2 MB, free: 11.05 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.227e-05/0.1608, allocations: 8 kB / 472.2 MB, free: 11.05 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.1608, allocations: 0 / 472.2 MB, free: 11.05 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.263e-06/0.1608, allocations: 7.938 kB / 472.3 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.814e-06/0.1608, allocations: 4 kB / 472.3 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/0.1608, allocations: 4.219 kB / 472.3 MB, free: 11.03 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001215/0.161, allocations: 151.3 kB / 472.4 MB, free: 10.87 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.226e-05/0.161, allocations: 85.08 kB / 472.5 MB, free: 10.77 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.766e-05/0.161, allocations: 8 kB / 472.5 MB, free: 10.76 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.966e-05/0.1611, allocations: 0 / 472.5 MB, free: 10.76 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.13e-05/0.1611, allocations: 0 / 472.5 MB, free: 10.76 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.019e-06/0.1611, allocations: 8 kB / 472.5 MB, free: 10.75 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.855e-05/0.1612, allocations: 75.28 kB / 472.6 MB, free: 10.68 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1612, allocations: 0 / 472.6 MB, free: 10.68 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002306/0.1614, allocations: 8 kB / 472.6 MB, free: 10.67 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 (5): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004201/0.1619, allocations: 0.685 MB / 473.3 MB, free: 9.957 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001116/0.162, allocations: 28.09 kB / 473.3 MB, free: 9.93 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.023e-06/0.162, allocations: 0 / 473.3 MB, free: 9.93 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.398e-05/0.162, allocations: 19.92 kB / 473.3 MB, free: 9.91 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002142/0.1622, allocations: 4 kB / 473.3 MB, free: 9.906 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003874/0.1626, allocations: 146.4 kB / 473.5 MB, free: 9.723 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002254/0.1629, allocations: 0.6768 MB / 474.1 MB, free: 9.02 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.282e-05/0.1629, allocations: 8.062 kB / 474.2 MB, free: 9.012 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.872e-05/0.163, allocations: 7.438 kB / 474.2 MB, free: 9.004 MB / 350.1 MB Notification: Performance of SimCode: time 3.5e-07/0.163, allocations: 0 / 474.2 MB, free: 9.004 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01615/0.1791, allocations: 1.255 MB / 475.4 MB, free: 7.832 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.124/7.303, allocations: 6.906 kB / 475.4 MB, free: 7.828 MB / 350.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRootDerivative.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRootDerivative.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRootDerivative.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRootDerivative.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRootDerivative_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_TestRegRootDerivative.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRootDerivative.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRootDerivative_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/TestRegRootDerivative/TestRegRootDerivative.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRootDerivative.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches