Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.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.PumpAndValve,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001308/0.001308, allocations: 121.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.001329/0.001329, allocations: 203.8 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.45/1.45, 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.002203/0.002203, allocations: 67.89 kB / 358.5 MB, free: 13.26 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2712/0.2734, allocations: 50.54 MB / 409.1 MB, free: 1.363 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve): time 0.00575/0.2792, allocations: 4.386 MB / 413.4 MB, free: 12.96 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002478/0.2817, allocations: 1.246 MB / 414.7 MB, free: 11.71 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003267/0.2821, allocations: 8 kB / 414.7 MB, free: 11.7 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004443/0.2826, allocations: 134.8 kB / 414.8 MB, free: 11.57 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006924/0.2833, allocations: 265.7 kB / 415.1 MB, free: 11.31 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005669/0.2839, allocations: 195.7 kB / 415.3 MB, free: 11.12 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001166/0.285, allocations: 0.9297 MB / 416.2 MB, free: 10.18 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004103/0.2855, allocations: 252.5 kB / 416.5 MB, free: 9.926 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006021/0.2861, allocations: 358.7 kB / 416.8 MB, free: 9.574 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005444/0.2866, allocations: 410.3 kB / 417.2 MB, free: 9.172 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001208/0.2868, allocations: 80 kB / 417.3 MB, free: 9.094 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001815/0.2869, allocations: 80 kB / 417.4 MB, free: 9.016 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000161/0.2871, allocations: 171.4 kB / 417.5 MB, free: 8.848 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004463/0.2876, allocations: 418 kB / 417.9 MB, free: 8.438 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001163/0.2887, allocations: 0.9212 MB / 418.9 MB, free: 7.516 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.981e-06/0.2888, allocations: 0 / 418.9 MB, free: 7.516 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.2888, allocations: 0 / 418.9 MB, free: 7.516 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.192e-05/0.2888, allocations: 4 kB / 418.9 MB, free: 7.512 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: 111 * Number of variables: 111 Notification: Performance of Generate backend data structure: time 0.002166/0.291, allocations: 1.132 MB / 420 MB, free: 6.316 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.817e-05/0.291, allocations: 11.97 kB / 420 MB, free: 6.305 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001716/0.2912, allocations: 95.64 kB / 420.1 MB, free: 6.203 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002939/0.2915, allocations: 96.41 kB / 420.2 MB, free: 6.109 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009041/0.2924, allocations: 0.4893 MB / 420.7 MB, free: 5.578 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001721/0.2926, allocations: 96.91 kB / 420.8 MB, free: 5.469 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.324e-05/0.2927, allocations: 56.3 kB / 420.8 MB, free: 5.414 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001196/0.2939, allocations: 0.6514 MB / 421.5 MB, free: 4.688 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.195e-05/0.2939, allocations: 3.984 kB / 421.5 MB, free: 4.684 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.613e-05/0.294, allocations: 24 kB / 421.5 MB, free: 4.66 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.479e-05/0.294, allocations: 12 kB / 421.5 MB, free: 4.648 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001094/0.2951, allocations: 455.7 kB / 422 MB, free: 4.203 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.003384/0.2985, allocations: 1.956 MB / 423.9 MB, free: 2.125 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001953/0.3005, allocations: 0.6901 MB / 424.6 MB, free: 1.402 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005836/0.3011, allocations: 266 kB / 424.9 MB, free: 1.141 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.004e-05/0.3012, allocations: 16.41 kB / 424.9 MB, free: 1.125 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.451e-05/0.3012, allocations: 43 kB / 424.9 MB, free: 1.074 MB / 334.1 MB Notification: Performance of pre-optimization done (n=54): time 2.926e-06/0.3012, allocations: 0 / 424.9 MB, free: 1.074 MB / 334.1 MB Notification: Performance of matching and sorting (n=54): time 0.005115/0.3063, allocations: 1.48 MB / 426.4 MB, free: 15.52 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003349/0.3067, allocations: 0.5683 MB / 427 MB, free: 14.82 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007116/0.3074, allocations: 0.5382 MB / 427.5 MB, free: 14.27 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.8e-05/0.3075, allocations: 37.7 kB / 427.6 MB, free: 14.23 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002477/0.3078, allocations: 293.1 kB / 427.8 MB, free: 13.93 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001828/0.308, allocations: 194.3 kB / 428 MB, free: 13.74 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001924/0.3081, allocations: 118.2 kB / 428.2 MB, free: 13.62 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002448/0.3084, allocations: 370.7 kB / 428.5 MB, free: 13.25 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005297/0.3089, allocations: 201 kB / 428.7 MB, free: 13.05 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007384/0.3097, allocations: 409.8 kB / 429.1 MB, free: 12.57 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001126/0.3108, allocations: 496.5 kB / 429.6 MB, free: 12.07 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.948e-06/0.3108, allocations: 0 / 429.6 MB, free: 12.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.002448/0.3133, allocations: 0.8149 MB / 430.4 MB, free: 11.23 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.452e-05/0.3133, allocations: 29.7 kB / 430.4 MB, free: 11.19 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.859e-06/0.3134, allocations: 4 kB / 430.4 MB, free: 11.19 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001017/0.3144, allocations: 226.3 kB / 430.7 MB, free: 10.96 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007243/0.3151, allocations: 123.8 kB / 430.8 MB, free: 10.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009326/0.3245, allocations: 5.607 MB / 436.4 MB, free: 4.82 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001138/0.3256, allocations: 75.69 kB / 436.5 MB, free: 4.746 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.444e-05/0.3257, allocations: 19.98 kB / 436.5 MB, free: 4.727 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (47): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(5,2), (1,1), (1,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0004547/0.3262, allocations: 197.7 kB / 436.7 MB, free: 4.523 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002071/0.3264, allocations: 79.53 kB / 436.8 MB, free: 4.445 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003654/0.3301, allocations: 0.7734 MB / 437.5 MB, free: 3.656 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.85e-05/0.3301, allocations: 11.94 kB / 437.5 MB, free: 3.645 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.978e-06/0.3302, allocations: 4.125 kB / 437.5 MB, free: 3.641 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003528/0.3337, allocations: 1.031 MB / 438.6 MB, free: 2.5 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00526/0.339, allocations: 1.513 MB / 440.1 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.14e-06/0.339, allocations: 0 / 440.1 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007708/0.3398, allocations: 131.8 kB / 440.2 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008458/0.3406, allocations: 177.7 kB / 440.4 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.894e-05/0.3407, allocations: 15.94 kB / 440.4 MB, free: 0.5898 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005708/0.3464, allocations: 3.795 MB / 444.2 MB, free: 12.51 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.848e-06/0.3464, allocations: 8.062 kB / 444.2 MB, free: 12.5 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002957/0.3494, allocations: 1.067 MB / 445.3 MB, free: 11.41 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003558/0.3498, allocations: 212.5 kB / 445.5 MB, free: 11.19 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.847e-05/0.3499, allocations: 12 kB / 445.5 MB, free: 11.18 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004987/0.3504, allocations: 35.91 kB / 445.5 MB, free: 11.14 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000154/0.3506, allocations: 44.5 kB / 445.6 MB, free: 11.1 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.581e-05/0.3506, allocations: 19.98 kB / 445.6 MB, free: 11.08 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005201/0.3511, allocations: 382.8 kB / 446 MB, free: 10.71 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3511, allocations: 4 kB / 446 MB, free: 10.7 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007783/0.3519, allocations: 219.8 kB / 446.2 MB, free: 10.49 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (pipe.T,heatCapacitor.T,speed.phi) * 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 (44): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 0 * 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 {(1,2), (1,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003198/0.3551, allocations: 1.631 MB / 447.8 MB, free: 8.828 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002448/0.3576, allocations: 1.046 MB / 448.9 MB, free: 7.73 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.07e-06/0.3576, allocations: 0 / 448.9 MB, free: 7.73 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001102/0.3587, allocations: 0.5396 MB / 449.4 MB, free: 7.164 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009027/0.3596, allocations: 182.5 kB / 449.6 MB, free: 6.984 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01086/0.3705, allocations: 6.051 MB / 455.6 MB, free: 0.7969 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005748/0.3711, allocations: 0.8956 MB / 456.5 MB, free: 15.88 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003748/0.3715, allocations: 81.12 kB / 456.6 MB, free: 15.79 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003301/0.3718, allocations: 231.4 kB / 456.8 MB, free: 15.57 MB / 382.1 MB Notification: Performance of SimCode: time 6.61e-07/0.3719, allocations: 0 / 456.8 MB, free: 15.57 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0582/0.4301, allocations: 20.19 MB / 477 MB, free: 11.75 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.68/14.11, allocations: 10.91 kB / 477 MB, free: 11.74 MB / 398.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve_res.csv --start-time 0 --stop-time 2 --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_PumpAndValve.fmu > Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe 2>&1)