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.001705/0.001705, allocations: 117.4 kB / 17.84 MB, free: 5.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001962/0.001962, allocations: 208.5 kB / 18.79 MB, free: 4.141 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.468/1.468, allocations: 230.4 MB / 250 MB, free: 9.105 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.001892/0.001892, allocations: 71.78 kB / 366.9 MB, free: 7.566 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2474/0.2492, allocations: 53.31 MB / 420.2 MB, free: 8.277 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve): time 0.006418/0.2557, allocations: 4.406 MB / 424.6 MB, free: 3.859 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002673/0.2583, allocations: 1.246 MB / 425.8 MB, free: 2.605 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004152/0.2588, allocations: 12 kB / 425.8 MB, free: 2.594 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004591/0.2592, allocations: 138.8 kB / 426 MB, free: 2.457 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007061/0.2599, allocations: 269.7 kB / 426.2 MB, free: 2.191 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005282/0.2604, allocations: 195.7 kB / 426.4 MB, free: 2 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001361/0.2618, allocations: 0.9328 MB / 427.3 MB, free: 1.066 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003594/0.2622, allocations: 172.6 kB / 427.5 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006686/0.2628, allocations: 370.7 kB / 427.9 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005384/0.2634, allocations: 406.3 kB / 428.3 MB, free: 128 kB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001212/0.2635, allocations: 76 kB / 428.3 MB, free: 52 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001921/0.2637, allocations: 84.05 kB / 428.4 MB, free: 15.96 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001715/0.2639, allocations: 171.3 kB / 428.6 MB, free: 15.8 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004442/0.2643, allocations: 418 kB / 429 MB, free: 15.39 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001151/0.2655, allocations: 0.9251 MB / 429.9 MB, free: 14.46 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.662e-06/0.2655, allocations: 0 / 429.9 MB, free: 14.46 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.334e-06/0.2655, allocations: 0 / 429.9 MB, free: 14.46 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.669e-05/0.2655, allocations: 0 / 429.9 MB, free: 14.46 MB / 350.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.002012/0.2675, allocations: 1.132 MB / 431.1 MB, free: 13.27 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.891e-05/0.2675, allocations: 8.031 kB / 431.1 MB, free: 13.26 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001624/0.2677, allocations: 99.64 kB / 431.2 MB, free: 13.16 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000265/0.268, allocations: 100.3 kB / 431.3 MB, free: 13.06 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008472/0.2688, allocations: 493 kB / 431.7 MB, free: 12.54 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001852/0.269, allocations: 100.9 kB / 431.8 MB, free: 12.42 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001046/0.2691, allocations: 56.31 kB / 431.9 MB, free: 12.37 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001191/0.2703, allocations: 0.6514 MB / 432.6 MB, free: 11.64 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.084e-05/0.2703, allocations: 12 kB / 432.6 MB, free: 11.63 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.134e-05/0.2704, allocations: 20 kB / 432.6 MB, free: 11.61 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.383e-05/0.2704, allocations: 12 kB / 432.6 MB, free: 11.6 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00106/0.2714, allocations: 451.7 kB / 433 MB, free: 11.16 MB / 350.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.003261/0.2747, allocations: 1.964 MB / 435 MB, free: 9.07 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001887/0.2766, allocations: 0.655 MB / 435.7 MB, free: 8.383 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005764/0.2772, allocations: 242 kB / 435.9 MB, free: 8.145 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.097e-05/0.2772, allocations: 8.422 kB / 435.9 MB, free: 8.137 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001074/0.2773, allocations: 43 kB / 435.9 MB, free: 8.086 MB / 350.1 MB Notification: Performance of pre-optimization done (n=54): time 2.555e-06/0.2773, allocations: 480 / 435.9 MB, free: 8.086 MB / 350.1 MB Notification: Performance of matching and sorting (n=54): time 0.004917/0.2822, allocations: 1.48 MB / 437.4 MB, free: 6.535 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003019/0.2825, allocations: 0.5683 MB / 438 MB, free: 5.832 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007011/0.2832, allocations: 0.5343 MB / 438.5 MB, free: 5.285 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.669e-05/0.2833, allocations: 41.7 kB / 438.6 MB, free: 5.238 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002358/0.2836, allocations: 293.1 kB / 438.9 MB, free: 4.941 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001775/0.2837, allocations: 198.3 kB / 439 MB, free: 4.746 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001964/0.2839, allocations: 114.2 kB / 439.2 MB, free: 4.629 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001787/0.2841, allocations: 374.7 kB / 439.5 MB, free: 4.254 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005162/0.2846, allocations: 189 kB / 439.7 MB, free: 4.066 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000727/0.2853, allocations: 420.3 kB / 440.1 MB, free: 3.582 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001071/0.2864, allocations: 488.5 kB / 440.6 MB, free: 3.086 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.789e-06/0.2864, allocations: 4 kB / 440.6 MB, free: 3.082 MB / 350.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.002371/0.2888, allocations: 0.8032 MB / 441.4 MB, free: 2.254 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.82e-05/0.2888, allocations: 33.7 kB / 441.4 MB, free: 2.215 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.776e-06/0.2889, allocations: 0 / 441.4 MB, free: 2.215 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001017/0.2899, allocations: 222.4 kB / 441.7 MB, free: 1.988 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007065/0.2906, allocations: 127.8 kB / 441.8 MB, free: 1.863 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007952/0.2985, allocations: 5.604 MB / 447.4 MB, free: 11.85 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007399/0.2993, allocations: 75.69 kB / 447.5 MB, free: 11.77 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.187e-05/0.2993, allocations: 27.92 kB / 447.5 MB, free: 11.75 MB / 366.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.0003079/0.2996, allocations: 193.7 kB / 447.7 MB, free: 11.55 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001371/0.2998, allocations: 75.53 kB / 447.7 MB, free: 11.47 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002243/0.302, allocations: 0.7695 MB / 448.5 MB, free: 10.68 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.052e-05/0.302, allocations: 11.92 kB / 448.5 MB, free: 10.67 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.345e-06/0.302, allocations: 7.938 kB / 448.5 MB, free: 10.66 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002185/0.3042, allocations: 1.027 MB / 449.6 MB, free: 9.531 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003417/0.3076, allocations: 1.498 MB / 451.1 MB, free: 7.961 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.087e-06/0.3076, allocations: 0 / 451.1 MB, free: 7.961 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007233/0.3084, allocations: 127.8 kB / 451.2 MB, free: 7.836 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008323/0.3092, allocations: 181.5 kB / 451.4 MB, free: 7.652 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.077e-05/0.3092, allocations: 12 kB / 451.4 MB, free: 7.641 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005758/0.315, allocations: 3.803 MB / 455.2 MB, free: 3.555 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.318e-06/0.315, allocations: 3.938 kB / 455.2 MB, free: 3.551 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002993/0.318, allocations: 1.067 MB / 456.2 MB, free: 2.461 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004497/0.3184, allocations: 216.5 kB / 456.5 MB, free: 2.23 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.784e-05/0.3185, allocations: 12 kB / 456.5 MB, free: 2.219 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005198/0.3191, allocations: 35.91 kB / 456.5 MB, free: 2.184 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001699/0.3192, allocations: 48.48 kB / 456.6 MB, free: 2.137 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.611e-05/0.3193, allocations: 12 kB / 456.6 MB, free: 2.125 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00057/0.3198, allocations: 386.8 kB / 456.9 MB, free: 1.75 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3198, allocations: 0 / 456.9 MB, free: 1.75 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000874/0.3207, allocations: 219.8 kB / 457.2 MB, free: 1.535 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.003377/0.3241, allocations: 1.627 MB / 458.8 MB, free: 15.88 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002711/0.3268, allocations: 1.022 MB / 459.8 MB, free: 14.8 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.373e-06/0.3268, allocations: 0 / 459.8 MB, free: 14.8 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001252/0.3281, allocations: 0.5198 MB / 460.3 MB, free: 14.25 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0013/0.3294, allocations: 190.7 kB / 460.5 MB, free: 14.07 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01194/0.3413, allocations: 6.032 MB / 466.5 MB, free: 7.898 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005734/0.3419, allocations: 0.8918 MB / 467.4 MB, free: 6.98 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004026/0.3423, allocations: 81.12 kB / 467.5 MB, free: 6.898 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003322/0.3426, allocations: 231.4 kB / 467.7 MB, free: 6.672 MB / 382.1 MB Notification: Performance of SimCode: time 1.443e-06/0.3426, allocations: 0 / 467.7 MB, free: 6.672 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06615/0.4087, allocations: 20.45 MB / 488.2 MB, free: 2.609 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.34/13.75, allocations: 3.938 kB / 488.2 MB, free: 2.605 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)