Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank,fileNamePrefix="Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_TestOpenTank",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank,fileNamePrefix="Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_TestOpenTank",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.001228/0.001228, allocations: 114 kB / 17.74 MB, free: 5.355 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.001124/0.001124, allocations: 183.1 kB / 18.66 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.368/1.368, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001222/0.001222, allocations: 55.92 kB / 328 MB, free: 3.828 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07914/0.08037, allocations: 46.62 MB / 374.6 MB, free: 5.102 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank): time 0.004253/0.08466, allocations: 2.843 MB / 377.5 MB, free: 2.242 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001956/0.08665, allocations: 1.185 MB / 378.7 MB, free: 1.047 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002453/0.08691, allocations: 7.938 kB / 378.7 MB, free: 1.039 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005439/0.08749, allocations: 179.2 kB / 378.8 MB, free: 0.8633 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005366/0.08804, allocations: 210.8 kB / 379 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004248/0.08848, allocations: 155.6 kB / 379.2 MB, free: 0.5039 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005728/0.08906, allocations: 457.9 kB / 379.6 MB, free: 56 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1703/0.2594, allocations: 89.73 kB / 379.7 MB, free: 9.363 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003573/0.2598, allocations: 183.5 kB / 379.9 MB, free: 9.359 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002468/0.26, allocations: 210.4 kB / 380.1 MB, free: 9.32 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.327e-05/0.2601, allocations: 30.41 kB / 380.1 MB, free: 9.32 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001657/0.2603, allocations: 72.33 kB / 380.2 MB, free: 9.316 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.179e-05/0.2604, allocations: 81.14 kB / 380.3 MB, free: 9.305 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001751/0.2606, allocations: 203.6 kB / 380.5 MB, free: 9.242 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005389/0.2611, allocations: 484.6 kB / 381 MB, free: 9.164 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.2611, allocations: 0 / 381 MB, free: 9.164 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.2611, allocations: 0 / 381 MB, free: 9.164 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.734e-06/0.2611, allocations: 1.984 kB / 381 MB, free: 9.164 MB / 318.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.0008894/0.262, allocations: 0.7084 MB / 381.7 MB, free: 8.633 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.488e-05/0.2621, allocations: 9.625 kB / 381.7 MB, free: 8.633 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.054e-05/0.2622, allocations: 63.75 kB / 381.8 MB, free: 8.59 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.922e-05/0.2623, allocations: 49.11 kB / 381.8 MB, free: 8.566 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004231/0.2627, allocations: 351.9 kB / 382.1 MB, free: 8.312 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.3e-05/0.2627, allocations: 19.34 kB / 382.2 MB, free: 8.312 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.934e-05/0.2628, allocations: 21.34 kB / 382.2 MB, free: 8.312 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005616/0.2633, allocations: 299.5 kB / 382.5 MB, free: 8.184 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.813e-05/0.2634, allocations: 0.6875 kB / 382.5 MB, free: 8.184 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.517e-05/0.2634, allocations: 12.81 kB / 382.5 MB, free: 8.184 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.369e-05/0.2634, allocations: 5.312 kB / 382.5 MB, free: 8.184 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000388/0.2638, allocations: 154.3 kB / 382.6 MB, free: 8.18 MB / 318.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.001418/0.2653, allocations: 0.8394 MB / 383.5 MB, free: 7.777 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004096/0.2657, allocations: 186.1 kB / 383.7 MB, free: 7.754 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001529/0.2658, allocations: 82.86 kB / 383.7 MB, free: 7.746 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.502e-05/0.2659, allocations: 7.125 kB / 383.8 MB, free: 7.746 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002912/0.2662, allocations: 147.9 kB / 383.9 MB, free: 7.688 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 1.913e-06/0.2662, allocations: 0 / 383.9 MB, free: 7.688 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008785/0.2671, allocations: 399.1 kB / 384.3 MB, free: 7.527 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.321e-05/0.2672, allocations: 318.9 kB / 384.6 MB, free: 7.152 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004754/0.2677, allocations: 432.7 kB / 385 MB, free: 7.035 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.385e-05/0.2677, allocations: 37.55 kB / 385.1 MB, free: 7 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001131/0.2678, allocations: 205.3 kB / 385.3 MB, free: 6.895 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.292e-05/0.2679, allocations: 89.64 kB / 385.3 MB, free: 6.844 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.156e-05/0.268, allocations: 61.34 kB / 385.4 MB, free: 6.824 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.721e-05/0.268, allocations: 349.9 kB / 385.7 MB, free: 6.508 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001337/0.2682, allocations: 63.97 kB / 385.8 MB, free: 6.508 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001976/0.2684, allocations: 174.3 kB / 386 MB, free: 6.395 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000254/0.2686, allocations: 181.4 kB / 386.2 MB, free: 6.344 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.2687, allocations: 0 / 386.2 MB, free: 6.344 MB / 318.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0004286/0.2691, allocations: 273.7 kB / 386.4 MB, free: 6.215 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.513e-05/0.2691, allocations: 9.594 kB / 386.4 MB, free: 6.211 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.751e-06/0.2691, allocations: 2.469 kB / 386.4 MB, free: 6.211 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001262/0.2693, allocations: 29.39 kB / 386.5 MB, free: 6.199 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002049/0.2695, allocations: 59.62 kB / 386.5 MB, free: 6.195 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001202/0.2707, allocations: 1.563 MB / 388.1 MB, free: 4.707 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002369/0.2709, allocations: 26.5 kB / 388.1 MB, free: 4.691 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.02e-05/0.271, allocations: 10.5 kB / 388.1 MB, free: 4.688 MB / 318.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.0002091/0.2712, allocations: 169.5 kB / 388.3 MB, free: 4.547 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.107e-05/0.2713, allocations: 41.78 kB / 388.3 MB, free: 4.527 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.214e-05/0.2713, allocations: 45.78 kB / 388.4 MB, free: 4.5 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.538e-06/0.2714, allocations: 6.125 kB / 388.4 MB, free: 4.5 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.2714, allocations: 1.125 kB / 388.4 MB, free: 4.5 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004433/0.2718, allocations: 0.5774 MB / 389 MB, free: 3.922 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008251/0.2726, allocations: 0.7091 MB / 389.7 MB, free: 3.434 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.2727, allocations: 0 / 389.7 MB, free: 3.434 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001975/0.2729, allocations: 46.34 kB / 389.7 MB, free: 3.43 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.588e-06/0.2729, allocations: 4.359 kB / 389.7 MB, free: 3.43 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.761e-05/0.2729, allocations: 9.734 kB / 389.7 MB, free: 3.426 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.305e-06/0.2729, allocations: 1.641 kB / 389.7 MB, free: 3.426 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.2729, allocations: 1.656 kB / 389.7 MB, free: 3.426 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005136/0.2734, allocations: 404.1 kB / 390.1 MB, free: 3.18 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001252/0.2736, allocations: 141 kB / 390.3 MB, free: 3.047 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.167e-05/0.2736, allocations: 7.078 kB / 390.3 MB, free: 3.043 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002096/0.2738, allocations: 14.25 kB / 390.3 MB, free: 3.039 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.364e-05/0.2739, allocations: 16 kB / 390.3 MB, free: 3.035 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.246e-05/0.2739, allocations: 11.11 kB / 390.3 MB, free: 3.031 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003191/0.2743, allocations: 315.3 kB / 390.6 MB, free: 2.883 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2743, allocations: 0 / 390.6 MB, free: 2.883 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004136/0.2747, allocations: 96.88 kB / 390.7 MB, free: 2.863 MB / 318.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.001537/0.2762, allocations: 1.245 MB / 392 MB, free: 1.867 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0005845/0.2768, allocations: 312 kB / 392.3 MB, free: 1.691 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/0.2768, allocations: 1.156 kB / 392.3 MB, free: 1.691 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000156/0.277, allocations: 83.72 kB / 392.3 MB, free: 1.672 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005833/0.2776, allocations: 111.5 kB / 392.5 MB, free: 1.625 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004027/0.2816, allocations: 3.363 MB / 395.8 MB, free: 15.56 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004269/0.2821, allocations: 0.7947 MB / 396.6 MB, free: 14.86 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002299/0.2823, allocations: 43.34 kB / 396.7 MB, free: 14.85 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001893/0.2825, allocations: 128.7 kB / 396.8 MB, free: 14.76 MB / 334.1 MB Notification: Performance of SimCode: time 6.01e-07/0.2825, allocations: 1.156 kB / 396.8 MB, free: 14.76 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03648/0.319, allocations: 10.19 MB / 407 MB, free: 11.26 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.7/12.01, allocations: 13.09 kB / 407 MB, free: 11.25 MB / 334.1 MB (rm -f Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe ; mkfifo Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe >> ../files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_TestOpenTank.fmu > Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Thermal/FluidHeatFlow/Examples/TestOpenTank/TestOpenTank.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches