Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.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.TestRegRoot2Derivatives,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives",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.001252/0.001252, allocations: 104.5 kB / 17.63 MB, free: 5.344 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.001212/0.001212, allocations: 192 kB / 18.56 MB, free: 4.434 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.331/1.331, allocations: 222.9 MB / 242.2 MB, free: 15.17 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.2316/0.2316, allocations: 44.18 MB / 336.6 MB, free: 2.754 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001224/0.001224, allocations: 62.14 kB / 408.5 MB, free: 27.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1253/0.1266, allocations: 60.81 MB / 469.3 MB, free: 14.28 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives): time 0.001638/0.1282, allocations: 0.5415 MB / 469.9 MB, free: 13.74 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006991/0.1289, allocations: 409.2 kB / 470.3 MB, free: 13.34 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.182e-05/0.129, allocations: 0 / 470.3 MB, free: 13.34 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.625e-05/0.129, allocations: 3.938 kB / 470.3 MB, free: 13.33 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 3.244e-05/0.1291, allocations: 4 kB / 470.3 MB, free: 13.33 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005001/0.1296, allocations: 135.5 kB / 470.4 MB, free: 13.2 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.464e-05/0.1296, allocations: 23.98 kB / 470.5 MB, free: 13.17 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.03e-05/0.1297, allocations: 4 kB / 470.5 MB, free: 13.17 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.33e-05/0.1297, allocations: 15.92 kB / 470.5 MB, free: 13.15 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.121e-05/0.1298, allocations: 15.92 kB / 470.5 MB, free: 13.14 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.464e-05/0.1298, allocations: 4 kB / 470.5 MB, free: 13.13 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002562/0.13, allocations: 159.8 kB / 470.6 MB, free: 12.98 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.598e-05/0.1301, allocations: 11.92 kB / 470.7 MB, free: 12.96 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.036e-05/0.1301, allocations: 11.94 kB / 470.7 MB, free: 12.95 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002135/0.1303, allocations: 131.9 kB / 470.8 MB, free: 12.82 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.685e-06/0.1303, allocations: 0 / 470.8 MB, free: 12.82 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.522e-06/0.1303, allocations: 0 / 470.8 MB, free: 12.82 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.887e-06/0.1304, allocations: 4 kB / 470.8 MB, free: 12.82 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0004389/0.1308, allocations: 366.4 kB / 471.2 MB, free: 12.42 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.016e-05/0.1308, allocations: 8.031 kB / 471.2 MB, free: 12.41 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.849e-05/0.1309, allocations: 30.75 kB / 471.2 MB, free: 12.37 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.762e-05/0.1309, allocations: 8.844 kB / 471.2 MB, free: 12.36 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001153/0.131, allocations: 176.2 kB / 471.4 MB, free: 12.15 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.095e-05/0.1311, allocations: 4.375 kB / 471.4 MB, free: 12.15 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.635e-05/0.1311, allocations: 4.375 kB / 471.4 MB, free: 12.14 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001229/0.1312, allocations: 58 kB / 471.4 MB, free: 12.08 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.235e-05/0.1313, allocations: 0 / 471.4 MB, free: 12.08 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.275e-06/0.1313, allocations: 0 / 471.4 MB, free: 12.08 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.163e-06/0.1313, allocations: 4 kB / 471.5 MB, free: 12.08 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.182e-05/0.1314, allocations: 39.84 kB / 471.5 MB, free: 12.04 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001754/0.1315, allocations: 165.6 kB / 471.7 MB, free: 11.83 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002056/0.1317, allocations: 58.55 kB / 471.7 MB, free: 11.76 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.742e-05/0.1318, allocations: 24.86 kB / 471.7 MB, free: 11.73 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002979/0.1321, allocations: 105.1 kB / 471.8 MB, free: 11.61 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.603e-05/0.1322, allocations: 46.72 kB / 471.9 MB, free: 11.56 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.142e-06/0.1322, allocations: 0 / 471.9 MB, free: 11.56 MB / 350.1 MB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: k2 2: k1 3: x Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=19): time 0.1412/0.2734, allocations: 6.374 MB / 478.3 MB, free: 5.148 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.209e-05/0.2735, allocations: 55.41 kB / 478.3 MB, free: 5.082 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.084e-05/0.2736, allocations: 105.9 kB / 478.4 MB, free: 4.969 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.144e-05/0.2736, allocations: 25.7 kB / 478.4 MB, free: 4.938 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.131e-05/0.2736, allocations: 88.12 kB / 478.5 MB, free: 4.848 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.53e-05/0.2737, allocations: 63.05 kB / 478.6 MB, free: 4.785 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001584/0.2739, allocations: 85.59 kB / 478.7 MB, free: 4.695 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000102/0.274, allocations: 322.8 kB / 479 MB, free: 4.371 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005372/0.2746, allocations: 235.8 kB / 479.2 MB, free: 4.141 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005168/0.2751, allocations: 223.8 kB / 479.4 MB, free: 3.922 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002066/0.2772, allocations: 0.5616 MB / 480 MB, free: 3.359 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.413e-06/0.2772, allocations: 0 / 480 MB, free: 3.359 MB / 350.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001788/0.279, allocations: 0.6065 MB / 480.6 MB, free: 2.746 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.744e-05/0.279, allocations: 8 kB / 480.6 MB, free: 2.738 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.094e-06/0.279, allocations: 0 / 480.6 MB, free: 2.738 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.961e-05/0.279, allocations: 4 kB / 480.6 MB, free: 2.734 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000638/0.2797, allocations: 103.8 kB / 480.7 MB, free: 2.633 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.426e-06/0.2797, allocations: 4 kB / 480.7 MB, free: 2.629 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004356/0.2801, allocations: 27.95 kB / 480.7 MB, free: 2.602 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.087e-05/0.2802, allocations: 31.94 kB / 480.8 MB, free: 2.57 MB / 350.1 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 (19): * Single equations (assignments): 19 * 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 0.0001376/0.2803, allocations: 121.7 kB / 480.9 MB, free: 2.441 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.767e-05/0.2804, allocations: 20.31 kB / 480.9 MB, free: 2.422 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002091/0.2825, allocations: 0.7204 MB / 481.6 MB, free: 1.695 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.212e-06/0.2825, allocations: 4 kB / 481.6 MB, free: 1.691 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/0.2826, allocations: 0 / 481.6 MB, free: 1.691 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.438e-06/0.2826, allocations: 4 kB / 481.6 MB, free: 1.688 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003856/0.2864, allocations: 1.18 MB / 482.8 MB, free: 440 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.248e-06/0.2864, allocations: 4.031 kB / 482.8 MB, free: 436 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005106/0.287, allocations: 95.86 kB / 482.9 MB, free: 340 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.651e-06/0.287, allocations: 0 / 482.9 MB, free: 340 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.449e-05/0.287, allocations: 27.95 kB / 482.9 MB, free: 312 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.059e-06/0.287, allocations: 3.938 kB / 483 MB, free: 308 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.747e-06/0.2871, allocations: 4 kB / 483 MB, free: 304 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001652/0.2887, allocations: 0.5848 MB / 483.5 MB, free: 15.68 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.498e-05/0.2888, allocations: 89 kB / 483.6 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.69e-05/0.2888, allocations: 4 kB / 483.6 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004001/0.2892, allocations: 31.89 kB / 483.7 MB, free: 15.54 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.816e-05/0.2893, allocations: 11.98 kB / 483.7 MB, free: 15.53 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.973e-05/0.2893, allocations: 31.95 kB / 483.7 MB, free: 15.5 MB / 366.1 MB Notification: Performance of sorting global known variables: time 4.188e-05/0.2894, allocations: 87.22 kB / 483.8 MB, free: 15.41 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.2894, allocations: 0 / 483.8 MB, free: 15.41 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001703/0.2911, allocations: 0.6484 MB / 484.4 MB, free: 14.76 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (19): * Single equations (assignments): 19 * 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.004993/0.2961, allocations: 1.299 MB / 485.7 MB, free: 13.42 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001244/0.2974, allocations: 465.7 kB / 486.2 MB, free: 12.96 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/0.2974, allocations: 0 / 486.2 MB, free: 12.96 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005216/0.2979, allocations: 204.1 kB / 486.4 MB, free: 12.77 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003142/0.2983, allocations: 11.94 kB / 486.4 MB, free: 12.75 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003331/0.3016, allocations: 0.6168 MB / 487 MB, free: 12.08 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003321/0.3019, allocations: 0.6965 MB / 487.7 MB, free: 11.35 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005241/0.3025, allocations: 116.9 kB / 487.8 MB, free: 11.24 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003219/0.3028, allocations: 103.3 kB / 487.9 MB, free: 11.14 MB / 366.1 MB Notification: Performance of SimCode: time 1.202e-06/0.3028, allocations: 4 kB / 487.9 MB, free: 11.13 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.324/0.6268, allocations: 58.53 MB / 0.5337 GB, free: 27.15 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.941/8.568, allocations: 9.078 kB / 0.5337 GB, free: 27.15 MB / 382.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives_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_TestRegRoot2Derivatives.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/TestRegRoot2Derivatives/TestRegRoot2Derivatives.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches