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.001286/0.001286, allocations: 117.2 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.00131/0.00131, allocations: 185 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.402/1.402, allocations: 222.9 MB / 242.4 MB, free: 15.08 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.2258/0.2258, allocations: 44.18 MB / 336.8 MB, free: 2.66 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003067/0.003067, allocations: 67.91 kB / 470 MB, free: 13.68 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3774/0.3805, allocations: 60.82 MB / 0.5184 GB, free: 3.289 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives): time 0.001798/0.3824, allocations: 0.5402 MB / 0.5189 GB, free: 2.953 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008118/0.3832, allocations: 404.2 kB / 0.5193 GB, free: 2.684 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.092e-05/0.3833, allocations: 0 / 0.5193 GB, free: 2.684 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.733e-05/0.3833, allocations: 3.938 kB / 0.5193 GB, free: 2.68 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 4.192e-05/0.3833, allocations: 5.375 kB / 0.5193 GB, free: 2.676 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004862/0.3838, allocations: 128.8 kB / 0.5195 GB, free: 2.625 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 6.9e-05/0.3839, allocations: 32.95 kB / 0.5195 GB, free: 2.609 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.167e-05/0.3839, allocations: 6.75 kB / 0.5195 GB, free: 2.605 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.229e-05/0.384, allocations: 7.484 kB / 0.5195 GB, free: 2.605 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.764e-05/0.384, allocations: 20.56 kB / 0.5195 GB, free: 2.594 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.367e-05/0.3841, allocations: 6.594 kB / 0.5195 GB, free: 2.59 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002917/0.3844, allocations: 156 kB / 0.5197 GB, free: 2.547 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.797e-05/0.3844, allocations: 8.062 kB / 0.5197 GB, free: 2.543 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.478e-05/0.3844, allocations: 20.38 kB / 0.5197 GB, free: 2.527 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002459/0.3847, allocations: 117.8 kB / 0.5198 GB, free: 2.5 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.3847, allocations: 1.062 kB / 0.5198 GB, free: 2.5 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.3847, allocations: 4 kB / 0.5198 GB, free: 2.496 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.859e-06/0.3847, allocations: 0 / 0.5198 GB, free: 2.496 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.0003641/0.3851, allocations: 373.9 kB / 0.5202 GB, free: 2.109 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.866e-05/0.3851, allocations: 9.844 kB / 0.5202 GB, free: 2.109 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.588e-05/0.3852, allocations: 33.2 kB / 0.5202 GB, free: 2.07 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.57e-05/0.3852, allocations: 11.55 kB / 0.5202 GB, free: 2.062 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.949e-05/0.3853, allocations: 163.7 kB / 0.5204 GB, free: 1.867 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.007e-05/0.3853, allocations: 2.719 kB / 0.5204 GB, free: 1.867 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.341e-05/0.3853, allocations: 3.391 kB / 0.5204 GB, free: 1.867 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000122/0.3854, allocations: 65.52 kB / 0.5205 GB, free: 1.816 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.468e-05/0.3855, allocations: 8.781 kB / 0.5205 GB, free: 1.809 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.478e-06/0.3855, allocations: 1.344 kB / 0.5205 GB, free: 1.809 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.31e-06/0.3855, allocations: 1.094 kB / 0.5205 GB, free: 1.809 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.782e-05/0.3856, allocations: 28.41 kB / 0.5205 GB, free: 1.801 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001455/0.3857, allocations: 177.7 kB / 0.5207 GB, free: 1.594 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001891/0.3859, allocations: 58.75 kB / 0.5207 GB, free: 1.559 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.673e-05/0.386, allocations: 31.72 kB / 0.5208 GB, free: 1.539 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002378/0.3862, allocations: 104.4 kB / 0.5209 GB, free: 1.445 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.481e-05/0.3862, allocations: 40.47 kB / 0.5209 GB, free: 1.398 MB / 382.1 MB Notification: Performance of pre-optimization done (n=9): time 1.152e-06/0.3862, 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.1379/0.5242, allocations: 6.37 MB / 0.5271 GB, free: 14.62 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.038e-05/0.5242, allocations: 57.69 kB / 0.5272 GB, free: 14.56 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.927e-05/0.5244, allocations: 103.6 kB / 0.5273 GB, free: 14.45 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.521e-05/0.5244, allocations: 26.83 kB / 0.5273 GB, free: 14.42 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.611e-05/0.5245, allocations: 85.27 kB / 0.5274 GB, free: 14.34 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.197e-05/0.5246, allocations: 62.44 kB / 0.5274 GB, free: 14.28 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001819/0.5247, allocations: 84.94 kB / 0.5275 GB, free: 14.23 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001521/0.5249, allocations: 325.8 kB / 0.5278 GB, free: 13.9 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005653/0.5255, allocations: 228.4 kB / 0.528 GB, free: 13.78 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005688/0.5261, allocations: 226 kB / 0.5283 GB, free: 13.66 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002104/0.5282, allocations: 0.568 MB / 0.5288 GB, free: 13.36 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.5282, allocations: 0 / 0.5288 GB, free: 13.36 MB / 398.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001845/0.53, allocations: 0.612 MB / 0.5294 GB, free: 13.03 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.934e-05/0.5301, allocations: 4.344 kB / 0.5294 GB, free: 13.03 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.351e-06/0.5301, allocations: 4.938 kB / 0.5294 GB, free: 13.02 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.84e-05/0.5301, allocations: 1.062 kB / 0.5294 GB, free: 13.02 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000654/0.5308, allocations: 112.5 kB / 0.5295 GB, free: 12.97 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.073e-06/0.5308, allocations: 1.688 kB / 0.5295 GB, free: 12.97 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004186/0.5312, allocations: 24.25 kB / 0.5296 GB, free: 12.96 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.912e-05/0.5313, allocations: 31.62 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.0001657/0.5315, allocations: 125.5 kB / 0.5297 GB, free: 12.82 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.658e-05/0.5315, allocations: 11.44 kB / 0.5297 GB, free: 12.81 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002185/0.5337, allocations: 0.7283 MB / 0.5304 GB, free: 12.39 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.189e-06/0.5337, allocations: 2.125 kB / 0.5304 GB, free: 12.39 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.965e-06/0.5338, allocations: 3.984 kB / 0.5304 GB, free: 12.38 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.49e-06/0.5338, allocations: 5.062 kB / 0.5304 GB, free: 12.38 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003999/0.5378, allocations: 1.162 MB / 0.5316 GB, free: 11.51 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.562e-06/0.5378, allocations: 1.281 kB / 0.5316 GB, free: 11.51 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005504/0.5384, allocations: 101.6 kB / 0.5317 GB, free: 11.47 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.095e-06/0.5384, allocations: 3.562 kB / 0.5317 GB, free: 11.47 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.523e-05/0.5384, allocations: 28.8 kB / 0.5317 GB, free: 11.45 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.895e-06/0.5385, allocations: 7.234 kB / 0.5317 GB, free: 11.45 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.387e-06/0.5385, allocations: 1.125 kB / 0.5317 GB, free: 11.45 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001753/0.5402, allocations: 0.5873 MB / 0.5323 GB, free: 11.06 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.24e-05/0.5403, allocations: 85.69 kB / 0.5324 GB, free: 10.96 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.826e-05/0.5404, allocations: 10.17 kB / 0.5324 GB, free: 10.95 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004017/0.5408, allocations: 21.12 kB / 0.5324 GB, free: 10.95 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.957e-05/0.5408, allocations: 15.89 kB / 0.5324 GB, free: 10.94 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.401e-05/0.5409, allocations: 28.42 kB / 0.5324 GB, free: 10.93 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.96e-05/0.5409, allocations: 90.61 kB / 0.5325 GB, free: 10.84 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.541, allocations: 4 kB / 0.5325 GB, free: 10.84 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002045/0.543, allocations: 0.6502 MB / 0.5332 GB, free: 10.79 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.005142/0.5482, allocations: 1.303 MB / 0.5344 GB, free: 9.785 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001251/0.5494, allocations: 461.3 kB / 0.5349 GB, free: 9.547 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.368e-06/0.5494, allocations: 1.094 kB / 0.5349 GB, free: 9.547 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005546/0.55, allocations: 204.5 kB / 0.5351 GB, free: 9.449 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003006/0.5503, allocations: 15.62 kB / 0.5351 GB, free: 9.445 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003228/0.5536, allocations: 0.6253 MB / 0.5357 GB, free: 8.992 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003735/0.5539, allocations: 0.6981 MB / 0.5364 GB, free: 8.281 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004261/0.5544, allocations: 124.3 kB / 0.5365 GB, free: 8.23 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003298/0.5547, allocations: 99.75 kB / 0.5366 GB, free: 8.172 MB / 398.1 MB Notification: Performance of SimCode: time 7.21e-07/0.5547, allocations: 0 / 0.5366 GB, free: 8.172 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09725/0.652, allocations: 58.57 MB / 0.5938 GB, free: 14.48 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.443/9.095, allocations: 14.75 kB / 0.5938 GB, free: 14.46 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