Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001625/0.001625, allocations: 103.4 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001949/0.001949, allocations: 216.5 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.397/1.397, allocations: 227.4 MB / 246.8 MB, free: 10.56 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2287/0.2287, allocations: 46.11 MB / 344.1 MB, free: 11.59 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002274/0.002274, allocations: 78.69 kB / 417.7 MB, free: 19.65 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1219/0.1243, allocations: 62.43 MB / 480.1 MB, free: 5.195 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives): time 0.001742/0.126, allocations: 0.5405 MB / 480.7 MB, free: 4.652 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007233/0.1268, allocations: 409.5 kB / 481.1 MB, free: 4.25 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.59e-05/0.1268, allocations: 0 / 481.1 MB, free: 4.25 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.866e-05/0.1269, allocations: 3.938 kB / 481.1 MB, free: 4.246 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.819e-05/0.1269, allocations: 3.938 kB / 481.1 MB, free: 4.242 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004909/0.1274, allocations: 139.4 kB / 481.2 MB, free: 4.109 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 6.312e-05/0.1275, allocations: 23.98 kB / 481.2 MB, free: 4.086 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.879e-05/0.1275, allocations: 3.938 kB / 481.2 MB, free: 4.082 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.229e-05/0.1275, allocations: 12 kB / 481.2 MB, free: 4.07 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.24e-05/0.1276, allocations: 23.84 kB / 481.3 MB, free: 4.047 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.139e-05/0.1276, allocations: 0 / 481.3 MB, free: 4.047 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000264/0.1279, allocations: 159.8 kB / 481.4 MB, free: 3.891 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.593e-05/0.1279, allocations: 11.98 kB / 481.4 MB, free: 3.879 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.69e-05/0.1279, allocations: 15.88 kB / 481.5 MB, free: 3.863 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002011/0.1281, allocations: 124 kB / 481.6 MB, free: 3.742 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.1282, allocations: 4 kB / 481.6 MB, free: 3.738 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.1282, allocations: 4 kB / 481.6 MB, free: 3.734 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.22e-06/0.1282, allocations: 0 / 481.6 MB, free: 3.734 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.0003978/0.1286, allocations: 359.5 kB / 481.9 MB, free: 3.336 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.535e-05/0.1286, allocations: 12.03 kB / 481.9 MB, free: 3.324 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.556e-05/0.1287, allocations: 34.69 kB / 482 MB, free: 3.281 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.879e-05/0.1287, allocations: 4.938 kB / 482 MB, free: 3.277 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001259/0.1288, allocations: 172.2 kB / 482.1 MB, free: 3.07 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.52e-05/0.1289, allocations: 8.375 kB / 482.2 MB, free: 3.062 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.295e-05/0.1289, allocations: 4.375 kB / 482.2 MB, free: 3.059 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000122/0.129, allocations: 61.94 kB / 482.2 MB, free: 2.992 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.166e-05/0.129, allocations: 3.938 kB / 482.2 MB, free: 2.988 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.769e-06/0.1291, allocations: 0 / 482.2 MB, free: 2.988 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.019e-06/0.1291, allocations: 0 / 482.2 MB, free: 2.988 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.466e-05/0.1291, allocations: 31.97 kB / 482.3 MB, free: 2.957 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001751/0.1293, allocations: 169.6 kB / 482.4 MB, free: 2.742 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002177/0.1295, allocations: 54.83 kB / 482.5 MB, free: 2.68 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.298e-05/0.1296, allocations: 28.8 kB / 482.5 MB, free: 2.648 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002829/0.1299, allocations: 105.1 kB / 482.6 MB, free: 2.527 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.885e-05/0.13, allocations: 46.5 kB / 482.7 MB, free: 2.473 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.442e-06/0.13, allocations: 3.938 kB / 482.7 MB, free: 2.469 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.1414/0.2714, allocations: 6.371 MB / 489 MB, free: 12.06 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.341e-05/0.2714, allocations: 59.41 kB / 489.1 MB, free: 11.99 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.558e-05/0.2715, allocations: 97.86 kB / 489.2 MB, free: 11.89 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.04e-05/0.2716, allocations: 25.7 kB / 489.2 MB, free: 11.86 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.594e-05/0.2716, allocations: 88.14 kB / 489.3 MB, free: 11.77 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000101/0.2717, allocations: 71.02 kB / 489.4 MB, free: 11.7 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001715/0.2719, allocations: 81.59 kB / 489.4 MB, free: 11.61 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000116/0.272, allocations: 326.8 kB / 489.8 MB, free: 11.28 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005926/0.2726, allocations: 227.8 kB / 490 MB, free: 11.06 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005644/0.2732, allocations: 227.8 kB / 490.2 MB, free: 10.84 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002221/0.2755, allocations: 0.559 MB / 490.8 MB, free: 10.27 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.2755, allocations: 480 / 490.8 MB, free: 10.27 MB / 366.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001912/0.2774, allocations: 0.6087 MB / 491.4 MB, free: 9.66 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.644e-05/0.2774, allocations: 8 kB / 491.4 MB, free: 9.652 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.452e-06/0.2774, allocations: 4 kB / 491.4 MB, free: 9.648 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.452e-05/0.2774, allocations: 0 / 491.4 MB, free: 9.648 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006985/0.2782, allocations: 107.8 kB / 491.5 MB, free: 9.543 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.124e-05/0.2782, allocations: 11.86 kB / 491.5 MB, free: 9.531 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004579/0.2786, allocations: 27.95 kB / 491.5 MB, free: 9.504 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.94e-05/0.2787, allocations: 31.94 kB / 491.6 MB, free: 9.473 MB / 366.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.0001504/0.2789, allocations: 121.8 kB / 491.7 MB, free: 9.344 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.15e-05/0.2789, allocations: 7.906 kB / 491.7 MB, free: 9.336 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002233/0.2812, allocations: 0.7279 MB / 492.4 MB, free: 8.602 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.771e-06/0.2812, allocations: 4 kB / 492.4 MB, free: 8.598 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.069e-06/0.2812, allocations: 4 kB / 492.4 MB, free: 8.594 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.819e-06/0.2812, allocations: 0 / 492.4 MB, free: 8.594 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004129/0.2854, allocations: 1.157 MB / 493.6 MB, free: 7.363 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.334e-06/0.2854, allocations: 8 kB / 493.6 MB, free: 7.355 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005598/0.2859, allocations: 99.8 kB / 493.7 MB, free: 7.258 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.935e-06/0.286, allocations: 4 kB / 493.7 MB, free: 7.254 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.756e-05/0.286, allocations: 23.95 kB / 493.7 MB, free: 7.23 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.089e-06/0.286, allocations: 4 kB / 493.7 MB, free: 7.227 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.286, allocations: 0 / 493.7 MB, free: 7.227 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001757/0.2878, allocations: 0.5924 MB / 494.3 MB, free: 6.602 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.965e-05/0.2879, allocations: 89.02 kB / 494.4 MB, free: 6.496 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.706e-05/0.2879, allocations: 4 kB / 494.4 MB, free: 6.492 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000401/0.2883, allocations: 27.95 kB / 494.4 MB, free: 6.465 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.072e-05/0.2884, allocations: 11.98 kB / 494.4 MB, free: 6.453 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.764e-05/0.2884, allocations: 35.95 kB / 494.5 MB, free: 6.418 MB / 366.1 MB Notification: Performance of sorting global known variables: time 4.344e-05/0.2885, allocations: 83.22 kB / 494.6 MB, free: 6.336 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2885, allocations: 0 / 494.6 MB, free: 6.336 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001939/0.2904, allocations: 0.6484 MB / 495.2 MB, free: 5.688 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.005238/0.2957, allocations: 1.306 MB / 496.5 MB, free: 4.332 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001273/0.297, allocations: 450.1 kB / 496.9 MB, free: 3.895 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.31e-06/0.297, allocations: 0 / 496.9 MB, free: 3.895 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005685/0.2976, allocations: 211.7 kB / 497.2 MB, free: 3.688 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003159/0.2979, allocations: 8 kB / 497.2 MB, free: 3.68 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003592/0.3015, allocations: 0.6211 MB / 497.8 MB, free: 3 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003824/0.3019, allocations: 0.6926 MB / 498.5 MB, free: 2.277 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005776/0.3025, allocations: 120.9 kB / 498.6 MB, free: 2.16 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003434/0.3029, allocations: 107.2 kB / 498.7 MB, free: 2.055 MB / 366.1 MB Notification: Performance of SimCode: time 6.61e-07/0.3029, allocations: 0 / 498.7 MB, free: 2.055 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2941/0.597, allocations: 58.53 MB / 0.5442 GB, free: 13 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.997/8.594, allocations: 5.344 kB / 0.5442 GB, free: 13 MB / 382.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_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_trunk_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches