Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) 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(Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TestOpenTank",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank,fileNamePrefix="Modelica_4_0_0_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.001105/0.001105, allocations: 112.9 kB / 17.06 MB, free: 5.992 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.001098/0.001098, allocations: 196 kB / 18.01 MB, free: 5.074 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.303/1.303, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001105/0.001105, allocations: 47.92 kB / 350.8 MB, free: 3.758 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2653/0.2664, allocations: 49.43 MB / 400.2 MB, free: 8.402 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank): time 0.004478/0.271, allocations: 2.856 MB / 403.1 MB, free: 5.949 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002479/0.2735, allocations: 1.266 MB / 404.3 MB, free: 4.676 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003898/0.2739, allocations: 0 / 404.3 MB, free: 4.676 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006991/0.2746, allocations: 179.1 kB / 404.5 MB, free: 4.5 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005517/0.2752, allocations: 210.8 kB / 404.7 MB, free: 4.293 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000479/0.2757, allocations: 174 kB / 404.9 MB, free: 4.125 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006094/0.2763, allocations: 453.9 kB / 405.3 MB, free: 3.68 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002143/0.2766, allocations: 111.5 kB / 405.4 MB, free: 3.566 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002297/0.2768, allocations: 187.3 kB / 405.6 MB, free: 3.383 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003174/0.2771, allocations: 199.2 kB / 405.8 MB, free: 3.188 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.888e-05/0.2772, allocations: 28 kB / 405.8 MB, free: 3.16 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001476/0.2773, allocations: 71.97 kB / 405.9 MB, free: 3.09 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001105/0.2774, allocations: 87.62 kB / 406 MB, free: 3.004 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001914/0.2776, allocations: 195 kB / 406.2 MB, free: 2.812 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000586/0.2782, allocations: 492.9 kB / 406.7 MB, free: 2.332 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.071e-06/0.2783, allocations: 0 / 406.7 MB, free: 2.332 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.2783, allocations: 7.938 kB / 406.7 MB, free: 2.324 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.656e-06/0.2783, allocations: 0 / 406.7 MB, free: 2.324 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.001074/0.2794, allocations: 0.7004 MB / 407.4 MB, free: 1.574 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.89e-05/0.2794, allocations: 8.031 kB / 407.4 MB, free: 1.566 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.216e-05/0.2795, allocations: 63.16 kB / 407.5 MB, free: 1.496 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001265/0.2796, allocations: 48.66 kB / 407.5 MB, free: 1.449 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004866/0.2801, allocations: 350.9 kB / 407.8 MB, free: 1.07 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.425e-05/0.2802, allocations: 20.8 kB / 407.9 MB, free: 1.047 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.939e-05/0.2802, allocations: 23.94 kB / 407.9 MB, free: 1.023 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000461/0.2807, allocations: 305.4 kB / 408.2 MB, free: 0.6836 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.528e-05/0.2807, allocations: 0 / 408.2 MB, free: 0.6836 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.76e-05/0.2807, allocations: 15.94 kB / 408.2 MB, free: 0.668 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.404e-06/0.2808, allocations: 4 kB / 408.2 MB, free: 0.6641 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002851/0.281, allocations: 149.7 kB / 408.4 MB, free: 0.5195 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.001375/0.2824, allocations: 0.8362 MB / 409.2 MB, free: 15.61 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003834/0.2828, allocations: 188.5 kB / 409.4 MB, free: 15.42 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001491/0.283, allocations: 76.83 kB / 409.4 MB, free: 15.34 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.022e-05/0.283, allocations: 11.94 kB / 409.5 MB, free: 15.33 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002785/0.2833, allocations: 131.3 kB / 409.6 MB, free: 15.19 MB / 334.1 MB Notification: Performance of pre-optimization done (n=23): time 1.783e-06/0.2833, allocations: 0 / 409.6 MB, free: 15.19 MB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008661/0.2842, allocations: 408.7 kB / 410 MB, free: 14.77 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001666/0.2844, allocations: 316.4 kB / 410.3 MB, free: 14.38 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004699/0.2848, allocations: 429.7 kB / 410.7 MB, free: 13.95 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.427e-05/0.2849, allocations: 33.7 kB / 410.7 MB, free: 13.91 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001529/0.2851, allocations: 208.4 kB / 411 MB, free: 13.7 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.254e-05/0.2851, allocations: 83.28 kB / 411 MB, free: 13.62 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.827e-05/0.2852, allocations: 53.7 kB / 411.1 MB, free: 13.56 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000202/0.2854, allocations: 354.8 kB / 411.4 MB, free: 13.2 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001347/0.2856, allocations: 55.98 kB / 411.5 MB, free: 13.15 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002213/0.2858, allocations: 183.9 kB / 411.7 MB, free: 12.93 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002888/0.2861, allocations: 183.2 kB / 411.8 MB, free: 12.73 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.886e-06/0.2861, allocations: 0 / 411.8 MB, free: 12.73 MB / 334.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0004668/0.2866, allocations: 266.2 kB / 412.1 MB, free: 12.46 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.75e-05/0.2866, allocations: 4 kB / 412.1 MB, free: 12.46 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.596e-06/0.2866, allocations: 7.969 kB / 412.1 MB, free: 12.45 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001306/0.2868, allocations: 32.84 kB / 412.1 MB, free: 12.42 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002131/0.287, allocations: 56.02 kB / 412.2 MB, free: 12.36 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00164/0.2886, allocations: 1.582 MB / 413.8 MB, free: 10.64 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002226/0.2889, allocations: 19.89 kB / 413.8 MB, free: 10.62 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.773e-05/0.2889, allocations: 4 kB / 413.8 MB, free: 10.61 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.0002108/0.2891, allocations: 169.8 kB / 414 MB, free: 10.44 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.154e-05/0.2892, allocations: 47.66 kB / 414 MB, free: 10.39 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.377e-05/0.2893, allocations: 43.58 kB / 414.1 MB, free: 10.35 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.049e-06/0.2893, allocations: 4 kB / 414.1 MB, free: 10.34 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.943e-06/0.2893, allocations: 7.938 kB / 414.1 MB, free: 10.34 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000571/0.2899, allocations: 0.575 MB / 414.6 MB, free: 9.656 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009869/0.2909, allocations: 0.7029 MB / 415.4 MB, free: 8.895 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.2909, allocations: 0 / 415.4 MB, free: 8.895 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002156/0.2911, allocations: 51.91 kB / 415.4 MB, free: 8.844 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.567e-06/0.2911, allocations: 336 / 415.4 MB, free: 8.844 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.756e-05/0.2912, allocations: 11.94 kB / 415.4 MB, free: 8.832 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.853e-06/0.2912, allocations: 0 / 415.4 MB, free: 8.832 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.2912, allocations: 4 kB / 415.4 MB, free: 8.828 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005545/0.2917, allocations: 410.9 kB / 415.8 MB, free: 8.41 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001521/0.2919, allocations: 136.8 kB / 416 MB, free: 8.258 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.037e-05/0.292, allocations: 4 kB / 416 MB, free: 8.254 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002105/0.2922, allocations: 15.98 kB / 416 MB, free: 8.238 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.29e-05/0.2922, allocations: 15.92 kB / 416 MB, free: 8.223 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.416e-05/0.2923, allocations: 12.05 kB / 416 MB, free: 8.211 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003196/0.2926, allocations: 311.2 kB / 416.3 MB, free: 7.91 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2926, allocations: 0 / 416.3 MB, free: 7.91 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004061/0.293, allocations: 95.88 kB / 416.4 MB, free: 7.816 MB / 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.001704/0.2947, allocations: 1.272 MB / 417.7 MB, free: 6.684 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006263/0.2954, allocations: 314.5 kB / 418 MB, free: 6.363 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.2954, allocations: 0 / 418 MB, free: 6.363 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001601/0.2955, allocations: 83.36 kB / 418.1 MB, free: 6.285 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005777/0.2961, allocations: 106.2 kB / 418.2 MB, free: 6.184 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004422/0.3006, allocations: 3.36 MB / 421.5 MB, free: 2.719 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003653/0.301, allocations: 0.8038 MB / 422.3 MB, free: 1.887 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001854/0.3011, allocations: 46.94 kB / 422.4 MB, free: 1.84 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000165/0.3013, allocations: 123.4 kB / 422.5 MB, free: 1.719 MB / 334.1 MB Notification: Performance of SimCode: time 5.51e-07/0.3013, allocations: 0 / 422.5 MB, free: 1.719 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03225/0.3336, allocations: 10.16 MB / 432.7 MB, free: 7.812 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.81/12.15, allocations: 5.062 kB / 432.7 MB, free: 7.812 MB / 350.1 MB (rm -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TestOpenTank.fmu > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches