Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4_1_0-beta_om_Modelica_Thermal_FluidHeatFlow_Examples_TestOpenTank",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank,fileNamePrefix="Modelica_4_1_0-beta_om_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.001294/0.001294, allocations: 122.1 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001319/0.001319, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.432/1.432, allocations: 227.7 MB / 247.2 MB, free: 10.22 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001915/0.001915, allocations: 59.91 kB / 358.5 MB, free: 13.29 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2716/0.2735, allocations: 50.55 MB / 409.1 MB, free: 1.418 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank): time 0.004306/0.2778, allocations: 2.877 MB / 411.9 MB, free: 14.53 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002492/0.2804, allocations: 1.398 MB / 413.3 MB, free: 13.12 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002156/0.2806, allocations: 7.938 kB / 413.3 MB, free: 13.12 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005619/0.2812, allocations: 179.1 kB / 413.5 MB, free: 12.94 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005854/0.2818, allocations: 250.6 kB / 413.8 MB, free: 12.7 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003371/0.2822, allocations: 131.6 kB / 413.9 MB, free: 12.57 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000581/0.2828, allocations: 465.9 kB / 414.3 MB, free: 12.11 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002077/0.283, allocations: 103.7 kB / 414.4 MB, free: 12.01 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002598/0.2832, allocations: 183.3 kB / 414.6 MB, free: 11.83 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002849/0.2835, allocations: 211.1 kB / 414.8 MB, free: 11.62 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.184e-05/0.2836, allocations: 28 kB / 414.9 MB, free: 11.59 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000169/0.2838, allocations: 75.92 kB / 414.9 MB, free: 11.52 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001284/0.2839, allocations: 87.67 kB / 415 MB, free: 11.43 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002183/0.2841, allocations: 195 kB / 415.2 MB, free: 11.24 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000609/0.2848, allocations: 492.9 kB / 415.7 MB, free: 10.76 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.2848, allocations: 0 / 415.7 MB, free: 10.76 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.2848, allocations: 0 / 415.7 MB, free: 10.76 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.025e-06/0.2848, allocations: 0 / 415.7 MB, free: 10.76 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.001094/0.2859, allocations: 0.7198 MB / 416.4 MB, free: 9.992 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.061e-05/0.286, allocations: 8.031 kB / 416.4 MB, free: 9.984 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.673e-05/0.2861, allocations: 59.16 kB / 416.5 MB, free: 9.918 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.677e-05/0.2862, allocations: 52.61 kB / 416.5 MB, free: 9.867 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000522/0.2867, allocations: 362.8 kB / 416.9 MB, free: 9.473 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.199e-05/0.2867, allocations: 16.81 kB / 416.9 MB, free: 9.453 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.773e-05/0.2868, allocations: 23.94 kB / 416.9 MB, free: 9.43 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005176/0.2873, allocations: 305.4 kB / 417.2 MB, free: 9.094 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.504e-05/0.2873, allocations: 0 / 417.2 MB, free: 9.094 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.849e-05/0.2874, allocations: 8 kB / 417.2 MB, free: 9.086 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.145e-06/0.2874, allocations: 4 kB / 417.2 MB, free: 9.082 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003023/0.2877, allocations: 149.7 kB / 417.4 MB, free: 8.938 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.001403/0.2891, allocations: 0.8363 MB / 418.2 MB, free: 8.031 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004296/0.2895, allocations: 191.1 kB / 418.4 MB, free: 7.836 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001704/0.2897, allocations: 76.84 kB / 418.5 MB, free: 7.758 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.234e-05/0.2898, allocations: 11.91 kB / 418.5 MB, free: 7.746 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003247/0.2901, allocations: 139.3 kB / 418.6 MB, free: 7.598 MB / 334.1 MB Notification: Performance of pre-optimization done (n=23): time 4.829e-06/0.2901, allocations: 0 / 418.6 MB, free: 7.598 MB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.001011/0.2911, allocations: 407.6 kB / 419 MB, free: 7.176 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002271/0.2914, allocations: 316.4 kB / 419.3 MB, free: 6.793 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006129/0.292, allocations: 437.7 kB / 419.8 MB, free: 6.352 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.654e-05/0.2921, allocations: 41.64 kB / 419.8 MB, free: 6.305 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002074/0.2923, allocations: 208.4 kB / 420 MB, free: 6.098 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.202e-05/0.2924, allocations: 83.28 kB / 420.1 MB, free: 6.016 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001174/0.2925, allocations: 57.69 kB / 420.1 MB, free: 5.953 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002003/0.2927, allocations: 350.8 kB / 420.5 MB, free: 5.602 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001475/0.2929, allocations: 63.97 kB / 420.5 MB, free: 5.539 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002608/0.2931, allocations: 179.9 kB / 420.7 MB, free: 5.32 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003325/0.2935, allocations: 172.2 kB / 420.9 MB, free: 5.141 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.2935, allocations: 0 / 420.9 MB, free: 5.141 MB / 334.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005491/0.2941, allocations: 278 kB / 421.2 MB, free: 4.859 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.066e-05/0.2941, allocations: 11.94 kB / 421.2 MB, free: 4.848 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.514e-06/0.2941, allocations: 0 / 421.2 MB, free: 4.848 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001704/0.2943, allocations: 28.84 kB / 421.2 MB, free: 4.816 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002142/0.2945, allocations: 55.91 kB / 421.2 MB, free: 4.762 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001697/0.2962, allocations: 1.574 MB / 422.8 MB, free: 3.039 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002504/0.2965, allocations: 27.84 kB / 422.9 MB, free: 3.012 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.384e-05/0.2965, allocations: 12.03 kB / 422.9 MB, free: 3 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.000253/0.2968, allocations: 169.8 kB / 423 MB, free: 2.824 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.989e-05/0.2969, allocations: 47.66 kB / 423.1 MB, free: 2.777 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.87e-05/0.297, allocations: 39.61 kB / 423.1 MB, free: 2.738 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.74e-06/0.297, allocations: 4 kB / 423.1 MB, free: 2.734 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.297, allocations: 0 / 423.1 MB, free: 2.734 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006064/0.2976, allocations: 0.5788 MB / 423.7 MB, free: 2.051 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001083/0.2987, allocations: 0.7041 MB / 424.4 MB, free: 1.285 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.2987, allocations: 0 / 424.4 MB, free: 1.285 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002167/0.2989, allocations: 51.91 kB / 424.5 MB, free: 1.234 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.462e-06/0.2989, allocations: 4 kB / 424.5 MB, free: 1.23 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.677e-05/0.299, allocations: 0 / 424.5 MB, free: 1.23 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.499e-06/0.299, allocations: 4 kB / 424.5 MB, free: 1.227 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.787e-06/0.299, allocations: 4 kB / 424.5 MB, free: 1.223 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006262/0.2996, allocations: 417.5 kB / 424.9 MB, free: 0.8008 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001611/0.2998, allocations: 140.8 kB / 425 MB, free: 0.6445 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.034e-05/0.2998, allocations: 8 kB / 425 MB, free: 0.6367 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002113/0.3001, allocations: 11.98 kB / 425 MB, free: 0.625 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.28e-05/0.3001, allocations: 11.98 kB / 425 MB, free: 0.6133 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.491e-05/0.3002, allocations: 8 kB / 425 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003547/0.3005, allocations: 319.1 kB / 425.4 MB, free: 308 kB / 334.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.3005, allocations: 4.062 kB / 425.4 MB, free: 304 kB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004077/0.3009, allocations: 99.88 kB / 425.5 MB, free: 204 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.002445/0.3034, allocations: 1.258 MB / 426.7 MB, free: 15.07 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006969/0.3041, allocations: 310.6 kB / 427 MB, free: 14.76 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.661e-06/0.3041, allocations: 4 kB / 427 MB, free: 14.75 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001657/0.3043, allocations: 79.17 kB / 427.1 MB, free: 14.68 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006251/0.3049, allocations: 112.7 kB / 427.2 MB, free: 14.57 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004917/0.3099, allocations: 3.396 MB / 430.6 MB, free: 11.07 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004568/0.3104, allocations: 0.7998 MB / 431.4 MB, free: 10.23 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002159/0.3106, allocations: 46.95 kB / 431.5 MB, free: 10.18 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001924/0.3108, allocations: 127.3 kB / 431.6 MB, free: 10.06 MB / 350.1 MB Notification: Performance of SimCode: time 7.02e-07/0.3108, allocations: 0 / 431.6 MB, free: 10.06 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03996/0.3508, allocations: 10.27 MB / 441.8 MB, free: 64 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.19/12.54, allocations: 14.81 kB / 441.9 MB, free: 52 kB / 350.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_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_1_0-beta_om_Modelica_Thermal_FluidHeatFlow_Examples_TestOpenTank.fmu > Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe 2>&1)