Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.PumpingSystem.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 trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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.Fluid.Examples.PumpingSystem,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_PumpingSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.PumpingSystem,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_PumpingSystem",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008138/0.0008139, allocations: 94.77 kB / 17.35 MB, free: 6.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009531/0.0009531, allocations: 205.9 kB / 18.29 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.196/1.196, allocations: 227.8 MB / 246.8 MB, free: 11.38 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0001967/0.0001968, allocations: 4 kB / 307.8 MB, free: 0.7656 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0807/0.08092, allocations: 51.52 MB / 359.4 MB, free: 13.23 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.PumpingSystem): time 0.1943/0.2752, allocations: 65.5 MB / 424.8 MB, free: 9.266 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0316/0.3069, allocations: 28.82 MB / 453.7 MB, free: 12.77 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001632/0.3085, allocations: 39.69 kB / 453.7 MB, free: 12.73 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001905/0.3104, allocations: 0.6295 MB / 454.3 MB, free: 12.09 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01389/0.3244, allocations: 5.409 MB / 459.7 MB, free: 6.688 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008957/0.3333, allocations: 3.541 MB / 463.3 MB, free: 3.152 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005154/0.3385, allocations: 4.911 MB / 468.2 MB, free: 14.23 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001579/0.3401, allocations: 0.9163 MB / 469.1 MB, free: 13.3 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01119/0.3513, allocations: 6.143 MB / 475.3 MB, free: 7.078 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01621/0.3675, allocations: 9.297 MB / 484.6 MB, free: 13.64 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000541/0.3681, allocations: 76 kB / 484.6 MB, free: 13.57 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01531/0.3834, allocations: 8.791 MB / 493.4 MB, free: 4.766 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006461/0.3841, allocations: 434.5 kB / 493.8 MB, free: 4.34 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001077/0.3852, allocations: 0.7871 MB / 494.6 MB, free: 3.543 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01347/0.3987, allocations: 6.953 MB / 0.4898 GB, free: 12.57 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.3987, allocations: 0 / 0.4898 GB, free: 12.57 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.452e-06/0.3987, allocations: 4 kB / 0.4898 GB, free: 12.57 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.788e-05/0.3988, allocations: 0 / 0.4898 GB, free: 12.57 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 307 * Number of variables: 307 Notification: Performance of Generate backend data structure: time 0.006188/0.405, allocations: 2.36 MB / 0.4921 GB, free: 10.16 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.21e-05/0.405, allocations: 8.031 kB / 0.4921 GB, free: 10.15 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002947/0.4053, allocations: 193.7 kB / 0.4923 GB, free: 9.949 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003037/0.4084, allocations: 487 kB / 0.4928 GB, free: 9.473 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00149/0.4099, allocations: 0.8864 MB / 0.4937 GB, free: 8.543 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001678/0.4101, allocations: 187.3 kB / 0.4938 GB, free: 8.34 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002264/0.4103, allocations: 127.8 kB / 0.494 GB, free: 8.215 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003768/0.4141, allocations: 2.008 MB / 0.4959 GB, free: 6.078 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.118e-05/0.4141, allocations: 7.938 kB / 0.4959 GB, free: 6.07 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001425/0.4143, allocations: 55.92 kB / 0.496 GB, free: 6.016 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001489/0.4144, allocations: 78.09 kB / 0.4961 GB, free: 5.938 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003628/0.418, allocations: 1.784 MB / 0.4978 GB, free: 4.145 MB / 414.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.01201/0.4301, allocations: 9.231 MB / 0.5068 GB, free: 10.31 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003092/0.4332, allocations: 1.504 MB / 0.5083 GB, free: 8.766 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001152/0.4344, allocations: 0.706 MB / 0.509 GB, free: 8.047 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2706/0.705, allocations: 71.28 MB / 0.5786 GB, free: 113.7 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002344/0.7074, allocations: 1.076 MB / 0.5796 GB, free: 112.8 MB / 446.1 MB Notification: Performance of pre-optimization done (n=110): time 3.367e-06/0.7074, allocations: 0 / 0.5796 GB, free: 112.8 MB / 446.1 MB Notification: Performance of matching and sorting (n=121): time 0.01481/0.7222, allocations: 6.572 MB / 0.586 GB, free: 106.3 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.084e-05/0.7223, allocations: 295.7 kB / 0.5863 GB, free: 105.9 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001007/0.7233, allocations: 1.045 MB / 0.5874 GB, free: 104.8 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 9.49e-05/0.7234, allocations: 49.7 kB / 0.5874 GB, free: 104.8 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002862/0.7237, allocations: 0.5766 MB / 0.588 GB, free: 104.2 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002484/0.724, allocations: 416.1 kB / 0.5884 GB, free: 103.8 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001543/0.7241, allocations: 129.6 kB / 0.5885 GB, free: 103.7 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.305e-05/0.7242, allocations: 305.1 kB / 0.5888 GB, free: 103.4 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009092/0.7251, allocations: 0.6441 MB / 0.5894 GB, free: 102.7 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001024/0.7261, allocations: 1.058 MB / 0.5904 GB, free: 101.5 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001896/0.728, allocations: 1.683 MB / 0.5921 GB, free: 99.66 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.542e-06/0.728, allocations: 4 kB / 0.5921 GB, free: 99.66 MB / 446.1 MB Notification: Performance of matching and sorting (n=183) (initialization): time 0.003153/0.7312, allocations: 2.191 MB / 0.5942 GB, free: 97.44 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001391/0.7313, allocations: 429.6 kB / 0.5946 GB, free: 96.86 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.399e-05/0.7314, allocations: 12 kB / 0.5946 GB, free: 96.84 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005631/0.737, allocations: 1.027 MB / 0.5956 GB, free: 95.82 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001063/0.7381, allocations: 295.6 kB / 0.5959 GB, free: 95.53 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002289/0.7404, allocations: 4.03 MB / 0.5999 GB, free: 91.34 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001158/0.7416, allocations: 130.4 kB / 0.6 GB, free: 91.22 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001156/0.7417, allocations: 75.97 kB / 0.6001 GB, free: 91.14 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.224e-06/0.7417, allocations: 4 kB / 0.6001 GB, free: 91.14 MB / 446.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002823/0.7445, allocations: 1.967 MB / 0.602 GB, free: 89.16 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.43e-05/0.7445, allocations: 8 kB / 0.602 GB, free: 89.15 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00513/0.7497, allocations: 0.897 MB / 0.6029 GB, free: 88.25 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000894/0.7506, allocations: 303.5 kB / 0.6032 GB, free: 87.96 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001774/0.7524, allocations: 3.365 MB / 0.6064 GB, free: 84.47 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001055/0.7534, allocations: 124 kB / 0.6066 GB, free: 84.35 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.606e-05/0.7535, allocations: 67.98 kB / 0.6066 GB, free: 84.28 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 51 * Number of states: 0 () * Number of discrete variables: 24 (pipe.flowModel.states[2].phase,pipe.flowModel.states[1].phase,PumpRPMGenerator.T,PumpRPMGenerator.rate,PumpRPMGenerator.endValue,controller.y,$PRE.controller.y,reservoir.inFlow[3],reservoir.inFlow[2],reservoir.inFlow[1],reservoir.regularFlow[3],reservoir.regularFlow[2],reservoir.regularFlow[1],$whenCondition1,$whenCondition2,reservoir.medium.phase,pumps.medium.phase,sink.state.phase,sink.medium.phase,userValve.state_b.phase,userValve.state_a.phase,pumps.monitoring.state_in.phase,source.state.phase,source.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (160): * Single equations (assignments): 154 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * 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): 6 systems {(2,1), (1,6), (2,7), (1,1), (2,3), (2,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0005437/0.7541, allocations: 474.3 kB / 0.6071 GB, free: 83.81 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001813/0.7543, allocations: 134.4 kB / 0.6072 GB, free: 83.68 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00486/0.7592, allocations: 4.912 MB / 0.612 GB, free: 78.72 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.064e-05/0.7592, allocations: 51.36 kB / 0.6121 GB, free: 78.67 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.396e-06/0.7592, allocations: 0 / 0.6121 GB, free: 78.67 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.349e-05/0.7592, allocations: 11.97 kB / 0.6121 GB, free: 78.66 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006158/0.7654, allocations: 6.764 MB / 0.6187 GB, free: 71.83 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.433e-06/0.7654, allocations: 3.984 kB / 0.6187 GB, free: 71.82 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006438/0.7661, allocations: 175.8 kB / 0.6188 GB, free: 71.65 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003768/0.7698, allocations: 1.373 MB / 0.6202 GB, free: 70.27 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001017/0.77, allocations: 35.98 kB / 0.6202 GB, free: 70.24 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002462/0.7724, allocations: 4.48 MB / 0.6246 GB, free: 65.61 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.514e-06/0.7724, allocations: 4.031 kB / 0.6246 GB, free: 65.61 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005019/0.7775, allocations: 4.885 MB / 0.6294 GB, free: 60.63 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007303/0.7782, allocations: 0.5405 MB / 0.6299 GB, free: 60.07 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002683/0.7785, allocations: 24 kB / 0.6299 GB, free: 60.05 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00104/0.7795, allocations: 114.8 kB / 0.63 GB, free: 59.94 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000209/0.7798, allocations: 125 kB / 0.6301 GB, free: 59.82 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.102e-05/0.7799, allocations: 51.72 kB / 0.6302 GB, free: 59.77 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001073/0.7809, allocations: 0.9924 MB / 0.6312 GB, free: 58.78 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.7809, allocations: 4 kB / 0.6312 GB, free: 58.77 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00405/0.785, allocations: 1.949 MB / 0.6331 GB, free: 56.97 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 5 (pumps.medium.p,pumps.medium.T,reservoir.level,reservoir.medium.T,PT1.y) * Number of discrete variables: 36 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse13.phase,$cse13.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$whenCondition2,$whenCondition1,reservoir.regularFlow[1],reservoir.regularFlow[2],reservoir.regularFlow[3],reservoir.inFlow[1],reservoir.inFlow[2],reservoir.inFlow[3],controller.y,PumpRPMGenerator.endValue,PumpRPMGenerator.rate,PumpRPMGenerator.T) * Number of discrete states: 2 (controller.y,PumpRPMGenerator.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (113): * Single equations (assignments): 93 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 11 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * 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): 6 systems {(2,1), (1,1), (1,6), (2,9), (2,3), (2,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01019/0.7952, allocations: 6.824 MB / 0.6397 GB, free: 50.25 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005052/0.8003, allocations: 3.132 MB / 0.6428 GB, free: 47.12 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.119e-06/0.8003, allocations: 4.062 kB / 0.6428 GB, free: 47.11 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002042/0.8023, allocations: 1.519 MB / 0.6443 GB, free: 45.59 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003237/0.8056, allocations: 0.6637 MB / 0.6449 GB, free: 44.94 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02086/0.8265, allocations: 17.9 MB / 0.6624 GB, free: 26.2 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006426/0.8271, allocations: 1.494 MB / 0.6639 GB, free: 24.67 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001895/0.8291, allocations: 1.295 MB / 0.6651 GB, free: 23.38 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006614/0.8297, allocations: 0.7804 MB / 0.6659 GB, free: 22.6 MB / 446.1 MB Notification: Performance of SimCode: time 1.082e-06/0.8297, allocations: 3.938 kB / 0.6659 GB, free: 22.59 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3779/1.208, allocations: 87.18 MB / 0.751 GB, free: 122 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001433/1.208, allocations: 251.1 kB / 0.7513 GB, free: 121.8 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.029/6.237, allocations: 0 / 0.7513 GB, free: 121.8 MB / 462.1 MB (rm -f Modelica_trunk_Modelica.Fluid.Examples.PumpingSystem.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.PumpingSystem.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.PumpingSystem.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.PumpingSystem.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Fluid.Examples.PumpingSystem_res.mat --tempDir=temp_Modelica_trunk_Modelica_Fluid_Examples_PumpingSystem_fmu --startTime=0 --stopTime=2000 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Fluid_Examples_PumpingSystem.fmu > Modelica_trunk_Modelica.Fluid.Examples.PumpingSystem.pipe 2>&1)