Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestStaticCentrifugalPump2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo", uses=false) Using package ThermoSysPro with version 4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo) Running command: "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestStaticCentrifugalPump2,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestStaticCentrifugalPump2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestStaticCentrifugalPump2,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestStaticCentrifugalPump2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.7763/0.7763, allocations: 150.9 MB / 166 MB, free: 14.62 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002838/0.0002838, allocations: 15.97 kB / 204.1 MB, free: 10.04 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1336/0.1339, allocations: 31.33 MB / 235.4 MB, free: 5.43 MB / 190.1 MB Notification: Automatically loaded package Complex 4.0.0 due to uses annotation from Modelica. Notification: Automatically loaded package ModelicaServices 4.0.0 due to uses annotation from Modelica. Notification: Automatically loaded package Modelica 4.0.0 due to usage. Notification: Performance of NFInst.instantiate(ThermoSysPro.Examples.SimpleExamples.TestStaticCentrifugalPump2): time 1.499/1.633, allocations: 294.5 MB / 0.5175 GB, free: 12.8 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03742/1.67, allocations: 34.08 MB / 0.5508 GB, free: 10.87 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001759/1.671, allocations: 0 / 0.5508 GB, free: 10.87 MB / 446.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/Machines/StaticCentrifugalPump.mo:60:3-62:42:writable] Warning: Connector C1 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/Machines/StaticCentrifugalPump.mo:63:3-65:37:writable] Warning: Connector C2 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/Volumes/Tank.mo:71:3-72:53:writable] Warning: Connector Ce1 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/Volumes/Tank.mo:73:3-74:53:writable] Warning: Connector Cs2 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/Volumes/Tank.mo:78:3-79:55:writable] Warning: Connector Ce2 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/Volumes/Tank.mo:80:3-81:51:writable] Warning: Connector Cs1 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/PressureLosses/ControlValve.mo:45:3-47:43:writable] Warning: Connector C1 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/PressureLosses/ControlValve.mo:48:3-50:38:writable] Warning: Connector C2 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.0004097/1.671, allocations: 120.4 kB / 0.5509 GB, free: 10.75 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002703/1.671, allocations: 146.8 kB / 0.5511 GB, free: 10.61 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01676/1.688, allocations: 6.474 MB / 0.5574 GB, free: 4.125 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006794/1.689, allocations: 0.6973 MB / 0.5581 GB, free: 3.422 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003046/1.689, allocations: 266.3 kB / 0.5583 GB, free: 3.164 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002971/1.689, allocations: 270.9 kB / 0.5586 GB, free: 2.898 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002854/1.69, allocations: 286.7 kB / 0.5589 GB, free: 2.617 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 5.98e-05/1.69, allocations: 40 kB / 0.5589 GB, free: 2.578 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02241/1.712, allocations: 14.9 MB / 0.5734 GB, free: 3.66 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001518/1.712, allocations: 103.6 kB / 0.5735 GB, free: 3.559 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003202/1.713, allocations: 278.4 kB / 0.5738 GB, free: 3.285 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01468/1.727, allocations: 7.832 MB / 0.5815 GB, free: 11.43 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/1.727, allocations: 4 kB / 0.5815 GB, free: 11.43 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.122e-06/1.727, allocations: 0 / 0.5815 GB, free: 11.43 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.837e-05/1.727, allocations: 0 / 0.5815 GB, free: 11.43 MB / 478.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 125 * Number of variables: 125 Notification: Performance of Generate backend data structure: time 0.00541/1.733, allocations: 1.797 MB / 0.5832 GB, free: 9.582 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.489e-05/1.733, allocations: 8.031 kB / 0.5832 GB, free: 9.574 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001165/1.733, allocations: 94.45 kB / 0.5833 GB, free: 9.473 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001331/1.733, allocations: 63.27 kB / 0.5834 GB, free: 9.41 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004148/1.734, allocations: 329.7 kB / 0.5837 GB, free: 9.051 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.332e-05/1.734, allocations: 62.7 kB / 0.5837 GB, free: 8.984 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.713e-05/1.734, allocations: 44.97 kB / 0.5838 GB, free: 8.941 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001511/1.735, allocations: 0.6454 MB / 0.5844 GB, free: 8.258 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.457e-05/1.735, allocations: 4 kB / 0.5844 GB, free: 8.254 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.096e-05/1.735, allocations: 19.94 kB / 0.5844 GB, free: 8.234 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.297e-05/1.735, allocations: 19.98 kB / 0.5845 GB, free: 8.215 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001895/1.737, allocations: 0.635 MB / 0.5851 GB, free: 7.578 MB / 478.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.003338/1.741, allocations: 3.135 MB / 0.5881 GB, free: 4.145 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001726/1.742, allocations: 0.5462 MB / 0.5887 GB, free: 3.59 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008801/1.743, allocations: 323.5 kB / 0.589 GB, free: 3.273 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07847/1.822, allocations: 44.14 MB / 0.6321 GB, free: 1.582 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001088/1.823, allocations: 378.5 kB / 0.6325 GB, free: 1.199 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=68): time 4.559e-06/1.823, allocations: 0 / 0.6325 GB, free: 1.199 MB / 0.5137 GB Notification: Performance of matching and sorting (n=68): time 0.01149/1.834, allocations: 2.425 MB / 0.6348 GB, free: 14.73 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.103e-05/1.835, allocations: 63.39 kB / 0.6349 GB, free: 14.65 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003374/1.835, allocations: 341.4 kB / 0.6352 GB, free: 14.31 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 3.733e-05/1.835, allocations: 33.7 kB / 0.6352 GB, free: 14.27 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001626/1.835, allocations: 228.9 kB / 0.6355 GB, free: 14.04 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001756/1.835, allocations: 228.6 kB / 0.6357 GB, free: 13.82 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000172/1.835, allocations: 122.1 kB / 0.6358 GB, free: 13.69 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001332/1.836, allocations: 358.8 kB / 0.6361 GB, free: 13.33 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008354/1.836, allocations: 269.4 kB / 0.6364 GB, free: 13.07 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009186/1.837, allocations: 425.1 kB / 0.6368 GB, free: 12.59 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006923/1.844, allocations: 1.726 MB / 0.6385 GB, free: 10.8 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.991e-06/1.844, allocations: 4 kB / 0.6385 GB, free: 10.8 MB / 0.5294 GB Notification: Performance of matching and sorting (n=90) (initialization): time 0.004155/1.848, allocations: 1.183 MB / 0.6396 GB, free: 9.598 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 2.011e-05/1.848, allocations: 11.94 kB / 0.6397 GB, free: 9.586 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.094e-05/1.849, allocations: 8.297 kB / 0.6397 GB, free: 9.578 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003169/1.852, allocations: 0.7863 MB / 0.6404 GB, free: 8.785 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007431/1.852, allocations: 151.7 kB / 0.6406 GB, free: 8.637 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001805/1.854, allocations: 1.613 MB / 0.6421 GB, free: 6.973 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005802/1.855, allocations: 100.4 kB / 0.6422 GB, free: 6.875 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.936e-05/1.855, allocations: 27.98 kB / 0.6423 GB, free: 6.848 MB / 0.5294 GB Warning: Assuming fixed start value for the following 1 variables: pulse.T0:DISCRETE(fixed = true protected = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition1,$PRE.pulse.T0,pulse.T0,VanneReglante1.C2.b,VanneReglante1.C1.a,Bache1.Cs1.b,Bache1.Ce2.a,Bache1.Cs2.b,Bache1.Ce1.a,StaticCentrifugalPump1.C2.b,StaticCentrifugalPump1.C1.a,Bache1.Cs1.a,Bache1.Ce1.b) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 38 * 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 {(7,16), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0002976/1.855, allocations: 179.6 kB / 0.6424 GB, free: 6.664 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.416e-05/1.855, allocations: 51.34 kB / 0.6425 GB, free: 6.613 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004443/1.86, allocations: 1.517 MB / 0.644 GB, free: 5.082 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.002386/1.862, allocations: 1.049 MB / 0.645 GB, free: 4.02 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.272e-06/1.862, allocations: 0 / 0.645 GB, free: 4.02 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.695e-05/1.862, allocations: 4.828 kB / 0.645 GB, free: 4.016 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003971/1.866, allocations: 2.195 MB / 0.6471 GB, free: 1.762 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.388e-06/1.866, allocations: 0 / 0.6471 GB, free: 1.762 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008407/1.867, allocations: 171.8 kB / 0.6473 GB, free: 1.594 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002089/1.869, allocations: 0.7205 MB / 0.648 GB, free: 0.8711 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.452e-05/1.869, allocations: 16 kB / 0.648 GB, free: 0.8555 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001724/1.871, allocations: 1.66 MB / 0.6496 GB, free: 15.14 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/1.871, allocations: 0 / 0.6496 GB, free: 15.14 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003656/1.875, allocations: 1.643 MB / 0.6513 GB, free: 13.48 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000235/1.875, allocations: 188.1 kB / 0.6514 GB, free: 13.28 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.979e-05/1.875, allocations: 16 kB / 0.6514 GB, free: 13.26 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005577/1.875, allocations: 71.83 kB / 0.6515 GB, free: 13.19 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001358/1.876, allocations: 60.52 kB / 0.6516 GB, free: 13.13 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.048e-05/1.876, allocations: 23.98 kB / 0.6516 GB, free: 13.11 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0002091/1.876, allocations: 227.2 kB / 0.6518 GB, free: 12.88 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.6e-07/1.876, allocations: 0 / 0.6518 GB, free: 12.88 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.002751/1.879, allocations: 1.155 MB / 0.6529 GB, free: 11.72 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Bache1.z,Bache1.h) * Number of discrete variables: 2 ($whenCondition1,pulse.T0) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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 {(7,18), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.008159/1.887, allocations: 3.709 MB / 0.6566 GB, free: 7.996 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.002618/1.889, allocations: 0.9904 MB / 0.6575 GB, free: 6.988 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/1.889, allocations: 0 / 0.6575 GB, free: 6.988 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.001454/1.891, allocations: 0.5504 MB / 0.6581 GB, free: 6.441 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009906/1.892, allocations: 181.2 kB / 0.6582 GB, free: 6.27 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01213/1.904, allocations: 6.309 MB / 0.6644 GB, free: 15.74 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003955/1.904, allocations: 0.9074 MB / 0.6653 GB, free: 14.8 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0002786/1.905, allocations: 56.19 kB / 0.6653 GB, free: 14.74 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002676/1.905, allocations: 227.3 kB / 0.6656 GB, free: 14.52 MB / 0.5606 GB Notification: Performance of SimCode: time 5.11e-07/1.905, allocations: 0 / 0.6656 GB, free: 14.52 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2162/2.121, allocations: 53.33 MB / 0.7176 GB, free: 197.2 MB / 0.5762 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001321/2.121, allocations: 247.9 kB / 0.7179 GB, free: 196.9 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.072/6.193, allocations: 0 / 0.7179 GB, free: 196.9 MB / 0.5762 GB (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestStaticCentrifugalPump2.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestStaticCentrifugalPump2.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestStaticCentrifugalPump2.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestStaticCentrifugalPump2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestStaticCentrifugalPump2_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestStaticCentrifugalPump2.fmu > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestStaticCentrifugalPump2.pipe 2>&1)