Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.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.SimpleCooling,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Thermal_FluidHeatFlow_Examples_SimpleCooling",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Thermal_FluidHeatFlow_Examples_SimpleCooling",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001829/0.001829, allocations: 122.8 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001776/0.001777, allocations: 201.2 kB / 18.73 MB, free: 4.312 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.413/1.413, allocations: 227.7 MB / 247.2 MB, free: 10.18 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.001881/0.001881, allocations: 67.89 kB / 358.5 MB, free: 13.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2569/0.2588, allocations: 50.55 MB / 409.1 MB, free: 1.367 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling): time 0.005101/0.2639, allocations: 3.503 MB / 412.6 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001832/0.2658, allocations: 0.9735 MB / 413.5 MB, free: 12.88 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001725/0.2659, allocations: 4 kB / 413.5 MB, free: 12.87 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003244/0.2663, allocations: 111 kB / 413.7 MB, free: 12.76 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003628/0.2667, allocations: 186.4 kB / 413.8 MB, free: 12.58 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002634/0.267, allocations: 127.8 kB / 414 MB, free: 12.45 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007518/0.2677, allocations: 0.6302 MB / 414.6 MB, free: 11.82 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000328/0.2681, allocations: 190.8 kB / 414.8 MB, free: 11.62 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003014/0.2684, allocations: 247.1 kB / 415 MB, free: 11.38 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003489/0.2687, allocations: 274.8 kB / 415.3 MB, free: 11.11 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.698e-05/0.2688, allocations: 52 kB / 415.3 MB, free: 11.06 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001043/0.2689, allocations: 56 kB / 415.4 MB, free: 11 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001262/0.2691, allocations: 111.6 kB / 415.5 MB, free: 10.89 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003057/0.2694, allocations: 298.6 kB / 415.8 MB, free: 10.6 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000727/0.2701, allocations: 0.6411 MB / 416.4 MB, free: 9.961 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.352e-06/0.2701, allocations: 4 kB / 416.4 MB, free: 9.957 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.253e-06/0.2701, allocations: 0 / 416.4 MB, free: 9.957 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.192e-05/0.2702, allocations: 4 kB / 416.4 MB, free: 9.953 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.001437/0.2716, allocations: 0.8542 MB / 417.3 MB, free: 9.043 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.218e-05/0.2717, allocations: 8.031 kB / 417.3 MB, free: 9.035 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001199/0.2718, allocations: 87.61 kB / 417.4 MB, free: 8.941 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001147/0.2719, allocations: 60.61 kB / 417.5 MB, free: 8.883 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006303/0.2725, allocations: 403.3 kB / 417.8 MB, free: 8.449 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001006/0.2726, allocations: 55.25 kB / 417.9 MB, free: 8.391 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.28e-05/0.2727, allocations: 36.38 kB / 417.9 MB, free: 8.355 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007407/0.2735, allocations: 470.1 kB / 418.4 MB, free: 7.84 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.794e-05/0.2735, allocations: 3.938 kB / 418.4 MB, free: 7.836 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.845e-05/0.2735, allocations: 20 kB / 418.4 MB, free: 7.816 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.908e-06/0.2735, allocations: 8 kB / 418.4 MB, free: 7.809 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006038/0.2742, allocations: 283.8 kB / 418.7 MB, free: 7.531 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.002179/0.2763, allocations: 1.304 MB / 420 MB, free: 6.133 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001156/0.2775, allocations: 448.4 kB / 420.4 MB, free: 5.664 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002765/0.2778, allocations: 148.8 kB / 420.6 MB, free: 5.516 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.187e-05/0.2778, allocations: 4 kB / 420.6 MB, free: 5.512 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.185e-05/0.2779, allocations: 42.5 kB / 420.6 MB, free: 5.461 MB / 334.1 MB Notification: Performance of pre-optimization done (n=32): time 1.943e-06/0.2779, allocations: 0 / 420.6 MB, free: 5.461 MB / 334.1 MB Notification: Performance of matching and sorting (n=32): time 0.00122/0.2791, allocations: 0.6104 MB / 421.2 MB, free: 4.801 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002767/0.2794, allocations: 445 kB / 421.7 MB, free: 4.262 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005346/0.28, allocations: 453.9 kB / 422.1 MB, free: 3.809 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.82e-05/0.28, allocations: 33.7 kB / 422.2 MB, free: 3.77 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001935/0.2802, allocations: 236.7 kB / 422.4 MB, free: 3.535 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001012/0.2803, allocations: 118.9 kB / 422.5 MB, free: 3.418 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001412/0.2805, allocations: 81.95 kB / 422.6 MB, free: 3.328 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001703/0.2806, allocations: 354.8 kB / 422.9 MB, free: 2.973 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002467/0.2809, allocations: 104.6 kB / 423 MB, free: 2.871 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000465/0.2814, allocations: 252.2 kB / 423.3 MB, free: 2.574 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005047/0.2819, allocations: 277.2 kB / 423.5 MB, free: 2.293 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.2819, allocations: 4 kB / 423.6 MB, free: 2.289 MB / 334.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0007564/0.2826, allocations: 420.7 kB / 424 MB, free: 1.859 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.784e-05/0.2827, allocations: 29.7 kB / 424 MB, free: 1.824 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.973e-06/0.2827, allocations: 0 / 424 MB, free: 1.824 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001921/0.2829, allocations: 61.55 kB / 424.1 MB, free: 1.758 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003222/0.2832, allocations: 67.91 kB / 424.1 MB, free: 1.691 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002739/0.286, allocations: 2.962 MB / 427.1 MB, free: 14.45 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003885/0.2864, allocations: 43.77 kB / 427.1 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.959e-05/0.2864, allocations: 12.23 kB / 427.1 MB, free: 14.39 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (36): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(3,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0002229/0.2867, allocations: 165.8 kB / 427.3 MB, free: 14.22 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.183e-05/0.2868, allocations: 55.66 kB / 427.4 MB, free: 14.17 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.534e-05/0.2869, allocations: 56.62 kB / 427.4 MB, free: 14.11 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.098e-06/0.2869, allocations: 4 kB / 427.4 MB, free: 14.11 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.998e-06/0.2869, allocations: 0 / 427.4 MB, free: 14.11 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007813/0.2877, allocations: 0.6531 MB / 428.1 MB, free: 13.35 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001381/0.2891, allocations: 0.9166 MB / 429 MB, free: 12.38 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.885e-06/0.2891, allocations: 0 / 429 MB, free: 12.38 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003391/0.2894, allocations: 63.95 kB / 429 MB, free: 12.31 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.435e-06/0.2894, allocations: 3.938 kB / 429 MB, free: 12.31 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.52e-05/0.2895, allocations: 8 kB / 429.1 MB, free: 12.3 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.598e-06/0.2895, allocations: 7.922 kB / 429.1 MB, free: 12.29 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.2895, allocations: 0 / 429.1 MB, free: 12.29 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008577/0.2903, allocations: 0.5164 MB / 429.6 MB, free: 11.76 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001979/0.2905, allocations: 164.7 kB / 429.7 MB, free: 11.58 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.032e-05/0.2906, allocations: 8.094 kB / 429.7 MB, free: 11.57 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002884/0.2909, allocations: 19.92 kB / 429.8 MB, free: 11.55 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.838e-05/0.291, allocations: 23.97 kB / 429.8 MB, free: 11.53 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.691e-05/0.291, allocations: 4 kB / 429.8 MB, free: 11.53 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003702/0.2914, allocations: 327.2 kB / 430.1 MB, free: 11.21 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2914, allocations: 0 / 430.1 MB, free: 11.21 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004459/0.2918, allocations: 131.9 kB / 430.2 MB, free: 11.08 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (pipe.T,heatCapacitor.T) * 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 (32): * Single equations (assignments): 32 * 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.001256/0.2931, allocations: 1.08 MB / 431.3 MB, free: 9.973 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001012/0.2941, allocations: 0.5634 MB / 431.9 MB, free: 9.371 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.2941, allocations: 0 / 431.9 MB, free: 9.371 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002587/0.2944, allocations: 127.8 kB / 432 MB, free: 9.246 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000683/0.2951, allocations: 130 kB / 432.1 MB, free: 9.113 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006267/0.3014, allocations: 4.261 MB / 436.4 MB, free: 4.742 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005119/0.3019, allocations: 0.8159 MB / 437.2 MB, free: 3.898 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002699/0.3022, allocations: 72.33 kB / 437.3 MB, free: 3.828 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002498/0.3024, allocations: 155.4 kB / 437.4 MB, free: 3.676 MB / 350.1 MB Notification: Performance of SimCode: time 6.41e-07/0.3025, allocations: 3.938 kB / 437.4 MB, free: 3.672 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06562/0.3681, allocations: 12.75 MB / 450.2 MB, free: 7.234 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.31/12.68, allocations: 9.344 kB / 450.2 MB, free: 7.23 MB / 366.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_4_1_0-beta_om_Modelica_Thermal_FluidHeatFlow_Examples_SimpleCooling.fmu > Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.pipe 2>&1)