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.001227/0.001227, allocations: 114.4 kB / 17.78 MB, free: 5.258 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.001571/0.001572, allocations: 183 kB / 18.72 MB, free: 4.332 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.311/1.311, allocations: 222.9 MB / 242.4 MB, free: 15.06 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.1945/0.1945, allocations: 44.18 MB / 336.8 MB, free: 2.672 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001248/0.001248, allocations: 67.89 kB / 470 MB, free: 13.69 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3355/0.3368, allocations: 60.83 MB / 0.5184 GB, free: 3.289 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives): time 0.001482/0.3383, allocations: 0.5311 MB / 0.5189 GB, free: 2.961 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006552/0.339, allocations: 414.2 kB / 0.5193 GB, free: 2.68 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.554e-05/0.339, allocations: 1.375 kB / 0.5193 GB, free: 2.68 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.715e-05/0.339, allocations: 0 / 0.5193 GB, free: 2.68 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 3.744e-05/0.3391, allocations: 3.938 kB / 0.5193 GB, free: 2.676 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004513/0.3395, allocations: 131.6 kB / 0.5195 GB, free: 2.625 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.533e-05/0.3396, allocations: 35.77 kB / 0.5195 GB, free: 2.605 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.142e-05/0.3397, allocations: 3.5 kB / 0.5195 GB, free: 2.605 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.042e-05/0.3397, allocations: 7.297 kB / 0.5195 GB, free: 2.605 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.251e-05/0.3397, allocations: 20.61 kB / 0.5195 GB, free: 2.594 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.077e-05/0.3398, allocations: 2.844 kB / 0.5195 GB, free: 2.594 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002458/0.34, allocations: 156.8 kB / 0.5197 GB, free: 2.551 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.363e-05/0.34, allocations: 10.95 kB / 0.5197 GB, free: 2.543 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.278e-05/0.3401, allocations: 16.16 kB / 0.5197 GB, free: 2.531 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002039/0.3403, allocations: 125.8 kB / 0.5198 GB, free: 2.496 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.3403, allocations: 1.469 kB / 0.5198 GB, free: 2.496 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.3403, allocations: 0 / 0.5198 GB, free: 2.496 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.238e-06/0.3403, allocations: 4 kB / 0.5198 GB, free: 2.492 MB / 382.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.0003575/0.3406, allocations: 366.4 kB / 0.5202 GB, free: 2.113 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.584e-05/0.3407, allocations: 9.656 kB / 0.5202 GB, free: 2.113 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.368e-05/0.3407, allocations: 36.83 kB / 0.5202 GB, free: 2.07 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.751e-05/0.3408, allocations: 11.31 kB / 0.5202 GB, free: 2.062 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.482e-05/0.3408, allocations: 168.3 kB / 0.5204 GB, free: 1.863 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.394e-06/0.3408, allocations: 1.312 kB / 0.5204 GB, free: 1.863 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.289e-05/0.3409, allocations: 8.406 kB / 0.5204 GB, free: 1.859 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001101/0.341, allocations: 61.42 kB / 0.5205 GB, free: 1.812 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.273e-05/0.341, allocations: 3.953 kB / 0.5205 GB, free: 1.809 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.999e-06/0.341, allocations: 5.438 kB / 0.5205 GB, free: 1.805 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.668e-06/0.341, allocations: 1.5 kB / 0.5205 GB, free: 1.805 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.03e-05/0.3411, allocations: 24.12 kB / 0.5205 GB, free: 1.801 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001291/0.3412, allocations: 170.6 kB / 0.5207 GB, free: 1.602 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001932/0.3414, allocations: 62.48 kB / 0.5207 GB, free: 1.562 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.596e-05/0.3415, allocations: 27.03 kB / 0.5207 GB, free: 1.547 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002435/0.3417, allocations: 112.6 kB / 0.5209 GB, free: 1.445 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.473e-05/0.3418, allocations: 40.59 kB / 0.5209 GB, free: 1.398 MB / 382.1 MB Notification: Performance of pre-optimization done (n=9): time 1.162e-06/0.3418, allocations: 0 / 0.5209 GB, free: 1.398 MB / 382.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.1432/0.4849, allocations: 6.373 MB / 0.5271 GB, free: 14.63 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.164e-05/0.485, allocations: 55.06 kB / 0.5272 GB, free: 14.57 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.474e-05/0.4851, allocations: 106.8 kB / 0.5273 GB, free: 14.46 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.236e-05/0.4852, allocations: 30.83 kB / 0.5273 GB, free: 14.43 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.554e-05/0.4852, allocations: 81.8 kB / 0.5274 GB, free: 14.34 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.91e-05/0.4853, allocations: 65.61 kB / 0.5274 GB, free: 14.29 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001821/0.4855, allocations: 89.69 kB / 0.5275 GB, free: 14.23 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001288/0.4857, allocations: 321.7 kB / 0.5278 GB, free: 13.91 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005863/0.4863, allocations: 232.8 kB / 0.5281 GB, free: 13.78 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005607/0.4868, allocations: 233.1 kB / 0.5283 GB, free: 13.65 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002185/0.489, allocations: 0.5602 MB / 0.5288 GB, free: 13.36 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.489, allocations: 0 / 0.5288 GB, free: 13.36 MB / 398.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001893/0.4909, allocations: 0.6019 MB / 0.5294 GB, free: 13.04 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.162e-05/0.491, allocations: 5.75 kB / 0.5294 GB, free: 13.04 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.029e-05/0.491, allocations: 256 / 0.5294 GB, free: 13.04 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.16e-05/0.491, allocations: 7.938 kB / 0.5294 GB, free: 13.03 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006905/0.4917, allocations: 114 kB / 0.5295 GB, free: 12.98 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.324e-06/0.4917, allocations: 0 / 0.5295 GB, free: 12.98 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004388/0.4922, allocations: 25.03 kB / 0.5296 GB, free: 12.96 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.975e-05/0.4923, allocations: 30.91 kB / 0.5296 GB, free: 12.95 MB / 398.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.0001686/0.4924, allocations: 122.3 kB / 0.5297 GB, free: 12.82 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.273e-05/0.4925, allocations: 11.02 kB / 0.5297 GB, free: 12.82 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002145/0.4947, allocations: 0.7293 MB / 0.5304 GB, free: 12.39 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.16e-06/0.4947, allocations: 2.75 kB / 0.5304 GB, free: 12.39 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.109e-06/0.4947, allocations: 1.188 kB / 0.5304 GB, free: 12.39 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.378e-06/0.4947, allocations: 4 kB / 0.5304 GB, free: 12.39 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004104/0.4988, allocations: 1.158 MB / 0.5316 GB, free: 11.53 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.669e-06/0.4988, allocations: 1.375 kB / 0.5316 GB, free: 11.53 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005682/0.4994, allocations: 105.8 kB / 0.5317 GB, free: 11.48 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.127e-06/0.4994, allocations: 6.609 kB / 0.5317 GB, free: 11.48 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.395e-05/0.4995, allocations: 30.02 kB / 0.5317 GB, free: 11.46 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.32e-06/0.4995, allocations: 2.5 kB / 0.5317 GB, free: 11.46 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.827e-06/0.4995, allocations: 2.656 kB / 0.5317 GB, free: 11.46 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001764/0.5013, allocations: 0.5798 MB / 0.5323 GB, free: 11.07 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.774e-05/0.5013, allocations: 93.77 kB / 0.5324 GB, free: 10.97 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.111e-05/0.5014, allocations: 6.719 kB / 0.5324 GB, free: 10.96 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004176/0.5018, allocations: 20.66 kB / 0.5324 GB, free: 10.96 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.751e-05/0.5019, allocations: 16.17 kB / 0.5324 GB, free: 10.95 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.193e-05/0.5019, allocations: 28.33 kB / 0.5324 GB, free: 10.94 MB / 398.1 MB Notification: Performance of sorting global known variables: time 6.254e-05/0.502, allocations: 90.23 kB / 0.5325 GB, free: 10.85 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.502, allocations: 7.938 kB / 0.5325 GB, free: 10.84 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002041/0.5041, allocations: 0.6464 MB / 0.5332 GB, free: 10.8 MB / 398.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.005159/0.5092, allocations: 1.307 MB / 0.5344 GB, free: 9.797 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001211/0.5105, allocations: 456.4 kB / 0.5349 GB, free: 9.562 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.5105, allocations: 0 / 0.5349 GB, free: 9.562 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005406/0.511, allocations: 209.9 kB / 0.5351 GB, free: 9.465 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003165/0.5114, allocations: 14.95 kB / 0.5351 GB, free: 9.457 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003358/0.5147, allocations: 0.6263 MB / 0.5357 GB, free: 9 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002913/0.515, allocations: 0.6938 MB / 0.5364 GB, free: 8.293 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000462/0.5155, allocations: 132.2 kB / 0.5365 GB, free: 8.234 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003252/0.5158, allocations: 96.19 kB / 0.5366 GB, free: 8.18 MB / 398.1 MB Notification: Performance of SimCode: time 4.71e-07/0.5158, allocations: 0 / 0.5366 GB, free: 8.18 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09089/0.6067, allocations: 58.56 MB / 0.5938 GB, free: 14.48 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.045/8.652, allocations: 10.64 kB / 0.5938 GB, free: 14.47 MB / 462.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