Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.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) 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(Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank,fileNamePrefix="Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_TestOpenTank",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank,fileNamePrefix="Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_TestOpenTank",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001419/0.001419, allocations: 118.2 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001743/0.001743, allocations: 201.2 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.341/1.341, allocations: 227.4 MB / 246.9 MB, free: 10.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001215/0.001215, allocations: 55.91 kB / 358.2 MB, free: 13.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2459/0.2471, allocations: 50.54 MB / 408.7 MB, free: 1.559 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank): time 0.004054/0.2512, allocations: 2.873 MB / 411.6 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002043/0.2533, allocations: 1.402 MB / 413 MB, free: 13.27 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001439/0.2535, allocations: 4 kB / 413 MB, free: 13.27 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005125/0.254, allocations: 179.1 kB / 413.2 MB, free: 13.09 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006016/0.2546, allocations: 254.6 kB / 413.4 MB, free: 12.84 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003805/0.255, allocations: 139.5 kB / 413.6 MB, free: 12.7 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005379/0.2555, allocations: 457.9 kB / 414 MB, free: 12.25 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002115/0.2558, allocations: 103.8 kB / 414.1 MB, free: 12.15 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002189/0.256, allocations: 187.3 kB / 414.3 MB, free: 11.97 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002469/0.2562, allocations: 211.2 kB / 414.5 MB, free: 11.76 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.7e-05/0.2563, allocations: 28 kB / 414.5 MB, free: 11.73 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001548/0.2565, allocations: 71.98 kB / 414.6 MB, free: 11.66 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000102/0.2566, allocations: 87.61 kB / 414.7 MB, free: 11.58 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001867/0.2568, allocations: 198.9 kB / 414.9 MB, free: 11.38 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000557/0.2573, allocations: 492.9 kB / 415.4 MB, free: 10.9 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.531e-06/0.2573, allocations: 4 kB / 415.4 MB, free: 10.9 MB / 334.1 MB Notification: Performance of FrontEnd: time 9.62e-07/0.2574, allocations: 0 / 415.4 MB, free: 10.9 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.883e-06/0.2574, allocations: 4 kB / 415.4 MB, free: 10.89 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 47 * Number of variables: 47 Notification: Performance of Generate backend data structure: time 0.001061/0.2584, allocations: 0.7158 MB / 416.1 MB, free: 10.13 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.939e-05/0.2585, allocations: 12.03 kB / 416.1 MB, free: 10.12 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.337e-05/0.2586, allocations: 59.17 kB / 416.2 MB, free: 10.05 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.272e-05/0.2587, allocations: 52.61 kB / 416.2 MB, free: 10 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004904/0.2592, allocations: 346.9 kB / 416.6 MB, free: 9.621 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.545e-05/0.2592, allocations: 24.8 kB / 416.6 MB, free: 9.594 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.169e-05/0.2593, allocations: 27.94 kB / 416.6 MB, free: 9.566 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000447/0.2597, allocations: 305.4 kB / 416.9 MB, free: 9.23 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.536e-05/0.2597, allocations: 0 / 416.9 MB, free: 9.23 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.822e-05/0.2598, allocations: 15.94 kB / 416.9 MB, free: 9.215 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.694e-06/0.2598, allocations: 4 kB / 416.9 MB, free: 9.211 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002813/0.2601, allocations: 145.7 kB / 417.1 MB, free: 9.07 MB / 334.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001263/0.2613, allocations: 0.8441 MB / 417.9 MB, free: 8.156 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003952/0.2618, allocations: 191.1 kB / 418.1 MB, free: 7.961 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001397/0.2619, allocations: 72.83 kB / 418.2 MB, free: 7.887 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.987e-05/0.2619, allocations: 11.94 kB / 418.2 MB, free: 7.875 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002674/0.2622, allocations: 134.4 kB / 418.3 MB, free: 7.734 MB / 334.1 MB Notification: Performance of pre-optimization done (n=23): time 1.874e-06/0.2622, allocations: 0 / 418.3 MB, free: 7.734 MB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008163/0.263, allocations: 407.1 kB / 418.7 MB, free: 7.309 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001363/0.2632, allocations: 312.4 kB / 419 MB, free: 6.93 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004327/0.2636, allocations: 437.7 kB / 419.4 MB, free: 6.488 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.704e-05/0.2637, allocations: 29.7 kB / 419.5 MB, free: 6.453 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001469/0.2638, allocations: 220.4 kB / 419.7 MB, free: 6.234 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.893e-05/0.2639, allocations: 79.27 kB / 419.8 MB, free: 6.156 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.749e-05/0.264, allocations: 61.69 kB / 419.8 MB, free: 6.09 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001304/0.2641, allocations: 346.8 kB / 420.2 MB, free: 5.742 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001265/0.2643, allocations: 67.97 kB / 420.2 MB, free: 5.676 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002135/0.2645, allocations: 179.9 kB / 420.4 MB, free: 5.457 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002784/0.2648, allocations: 167.3 kB / 420.6 MB, free: 5.281 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.2648, allocations: 7.938 kB / 420.6 MB, free: 5.273 MB / 334.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0004356/0.2652, allocations: 274.1 kB / 420.8 MB, free: 4.996 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.452e-05/0.2653, allocations: 8 kB / 420.9 MB, free: 4.988 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.28e-06/0.2653, allocations: 0 / 420.9 MB, free: 4.988 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001205/0.2654, allocations: 32.84 kB / 420.9 MB, free: 4.953 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002052/0.2656, allocations: 51.91 kB / 420.9 MB, free: 4.902 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001449/0.2671, allocations: 1.578 MB / 422.5 MB, free: 3.176 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002064/0.2673, allocations: 31.97 kB / 422.5 MB, free: 3.145 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.437e-05/0.2673, allocations: 11.94 kB / 422.6 MB, free: 3.133 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 ($PRE.combiTimeTable.nextTimeEvent,$whenCondition1,combiTimeTable.nextTimeEventScaled,$PRE.combiTimeTable.nextTimeEventScaled,combiTimeTable.nextTimeEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001897/0.2675, allocations: 172.7 kB / 422.7 MB, free: 2.957 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.166e-05/0.2676, allocations: 51.66 kB / 422.8 MB, free: 2.906 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.1e-05/0.2677, allocations: 39.61 kB / 422.8 MB, free: 2.867 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.057e-05/0.2677, allocations: 4 kB / 422.8 MB, free: 2.863 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.545e-06/0.2677, allocations: 0 / 422.8 MB, free: 2.863 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004906/0.2682, allocations: 0.5779 MB / 423.4 MB, free: 2.184 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008605/0.269, allocations: 0.7118 MB / 424.1 MB, free: 1.41 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.445e-06/0.2691, allocations: 0 / 424.1 MB, free: 1.41 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001981/0.2693, allocations: 51.91 kB / 424.2 MB, free: 1.359 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.2693, allocations: 0 / 424.2 MB, free: 1.359 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.85e-05/0.2693, allocations: 8 kB / 424.2 MB, free: 1.352 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.743e-06/0.2693, allocations: 0 / 424.2 MB, free: 1.352 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.2693, allocations: 0 / 424.2 MB, free: 1.352 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005429/0.2699, allocations: 414.7 kB / 424.6 MB, free: 0.9297 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001309/0.27, allocations: 136.8 kB / 424.7 MB, free: 0.7773 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.851e-05/0.2701, allocations: 8 kB / 424.7 MB, free: 0.7695 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002237/0.2703, allocations: 11.98 kB / 424.7 MB, free: 0.7578 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.833e-05/0.2703, allocations: 15.98 kB / 424.7 MB, free: 0.7422 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.981e-05/0.2704, allocations: 4 kB / 424.7 MB, free: 0.7383 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002951/0.2707, allocations: 319.1 kB / 425.1 MB, free: 444 kB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2707, allocations: 3.938 kB / 425.1 MB, free: 440 kB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003617/0.271, allocations: 103.9 kB / 425.2 MB, free: 336 kB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (openTank.m,openTank.H) * Number of discrete variables: 3 ($whenCondition1,combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Number of discrete states: 2 (combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001594/0.2726, allocations: 1.268 MB / 426.4 MB, free: 15.17 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005514/0.2732, allocations: 306.6 kB / 426.7 MB, free: 14.86 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.2732, allocations: 0 / 426.7 MB, free: 14.86 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001461/0.2734, allocations: 83.91 kB / 426.8 MB, free: 14.78 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005301/0.2739, allocations: 99.98 kB / 426.9 MB, free: 14.68 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003916/0.2778, allocations: 3.387 MB / 430.3 MB, free: 11.19 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003299/0.2782, allocations: 0.8038 MB / 431.1 MB, free: 10.35 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001584/0.2783, allocations: 50.88 kB / 431.1 MB, free: 10.3 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001639/0.2785, allocations: 127.4 kB / 431.3 MB, free: 10.17 MB / 350.1 MB Notification: Performance of SimCode: time 2.7e-07/0.2785, allocations: 0 / 431.3 MB, free: 10.17 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03119/0.3097, allocations: 10.25 MB / 441.5 MB, free: 160 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.37/11.68, allocations: 4 kB / 441.5 MB, free: 156 kB / 350.1 MB (rm -f Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe ; mkfifo Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe >> ../files/Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank_res.csv --start-time 0 --stop-time 1.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0006 Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_TestOpenTank.fmu > Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/TestOpenTank/TestOpenTank.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches