Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestStaticCentrifugalPump.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.TestStaticCentrifugalPump,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestStaticCentrifugalPump",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestStaticCentrifugalPump,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestStaticCentrifugalPump",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.8089/0.8089, allocations: 150.9 MB / 166 MB, free: 14.55 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003327/0.0003328, allocations: 15.97 kB / 204.1 MB, free: 9.965 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1496/0.1499, allocations: 31.33 MB / 235.4 MB, free: 5.418 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.TestStaticCentrifugalPump): time 1.481/1.63, allocations: 294.5 MB / 0.5175 GB, free: 12.81 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03502/1.666, allocations: 34.09 MB / 0.5508 GB, free: 10.87 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002477/1.666, allocations: 4 kB / 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.0004021/1.666, allocations: 120.2 kB / 0.5509 GB, free: 10.75 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002564/1.666, allocations: 134.9 kB / 0.5511 GB, free: 10.62 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01577/1.682, allocations: 6.475 MB / 0.5574 GB, free: 4.133 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006955/1.683, allocations: 0.6973 MB / 0.5581 GB, free: 3.43 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002887/1.683, allocations: 265.5 kB / 0.5583 GB, free: 3.172 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002905/1.684, allocations: 274.8 kB / 0.5586 GB, free: 2.902 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002781/1.684, allocations: 294.7 kB / 0.5589 GB, free: 2.613 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 5.797e-05/1.684, allocations: 32 kB / 0.5589 GB, free: 2.582 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02151/1.705, allocations: 14.89 MB / 0.5734 GB, free: 3.672 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001562/1.706, allocations: 107.6 kB / 0.5735 GB, free: 3.566 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002857/1.706, allocations: 274.5 kB / 0.5738 GB, free: 3.297 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01354/1.719, allocations: 7.836 MB / 0.5815 GB, free: 11.44 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/1.72, allocations: 0 / 0.5815 GB, free: 11.44 MB / 478.1 MB Notification: Performance of FrontEnd: time 9.22e-07/1.72, allocations: 0 / 0.5815 GB, free: 11.44 MB / 478.1 MB Notification: Performance of Transformations before backend: time 9.077e-06/1.72, allocations: 4 kB / 0.5815 GB, free: 11.44 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.004948/1.724, allocations: 1.797 MB / 0.5832 GB, free: 9.59 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.895e-05/1.725, allocations: 8.031 kB / 0.5832 GB, free: 9.582 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.826e-05/1.725, allocations: 90.5 kB / 0.5833 GB, free: 9.484 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001081/1.725, allocations: 59.28 kB / 0.5834 GB, free: 9.426 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000349/1.725, allocations: 335.4 kB / 0.5837 GB, free: 9.062 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.56e-05/1.725, allocations: 62.69 kB / 0.5837 GB, free: 8.996 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.972e-05/1.725, allocations: 43.94 kB / 0.5838 GB, free: 8.953 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001327/1.727, allocations: 0.6493 MB / 0.5844 GB, free: 8.266 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.135e-05/1.727, allocations: 0 / 0.5844 GB, free: 8.266 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.472e-05/1.727, allocations: 19.94 kB / 0.5844 GB, free: 8.246 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.725e-05/1.727, allocations: 19.98 kB / 0.5845 GB, free: 8.227 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00173/1.728, allocations: 0.6351 MB / 0.5851 GB, free: 7.59 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.002874/1.731, allocations: 3.134 MB / 0.5881 GB, free: 4.156 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002377/1.734, allocations: 0.6946 MB / 0.5888 GB, free: 3.453 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008353/1.735, allocations: 328.9 kB / 0.5891 GB, free: 3.129 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07439/1.809, allocations: 44.14 MB / 0.6322 GB, free: 1.434 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001076/1.81, allocations: 374.6 kB / 0.6326 GB, free: 1.059 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=68): time 2.835e-06/1.81, allocations: 3.938 kB / 0.6326 GB, free: 1.055 MB / 0.5137 GB Notification: Performance of matching and sorting (n=68): time 0.009157/1.819, allocations: 2.133 MB / 0.6347 GB, free: 14.88 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.831e-05/1.819, allocations: 63.19 kB / 0.6347 GB, free: 14.8 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003593/1.82, allocations: 341.4 kB / 0.6351 GB, free: 14.46 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 4.143e-05/1.82, allocations: 33.7 kB / 0.6351 GB, free: 14.42 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001577/1.82, allocations: 228.9 kB / 0.6353 GB, free: 14.19 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001735/1.82, allocations: 224.6 kB / 0.6355 GB, free: 13.97 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001787/1.82, allocations: 126.1 kB / 0.6357 GB, free: 13.84 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001197/1.82, allocations: 354.8 kB / 0.636 GB, free: 13.48 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008127/1.821, allocations: 273.4 kB / 0.6363 GB, free: 13.21 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009064/1.822, allocations: 426.3 kB / 0.6367 GB, free: 12.73 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006986/1.829, allocations: 1.724 MB / 0.6383 GB, free: 10.95 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.955e-06/1.829, allocations: 3.938 kB / 0.6384 GB, free: 10.95 MB / 0.5294 GB Notification: Performance of matching and sorting (n=90) (initialization): time 0.002812/1.832, allocations: 1.017 MB / 0.6393 GB, free: 9.91 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 2.076e-05/1.832, allocations: 8 kB / 0.6394 GB, free: 9.902 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.21e-05/1.832, allocations: 4 kB / 0.6394 GB, free: 9.898 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003012/1.835, allocations: 0.7609 MB / 0.6401 GB, free: 9.133 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007958/1.836, allocations: 143.7 kB / 0.6402 GB, free: 8.992 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00183/1.838, allocations: 1.581 MB / 0.6418 GB, free: 7.355 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000625/1.838, allocations: 107.6 kB / 0.6419 GB, free: 7.25 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.595e-05/1.838, allocations: 31.98 kB / 0.6419 GB, free: 7.219 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 (41): * Single equations (assignments): 39 * 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 {(6,16), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0003002/1.839, allocations: 188.5 kB / 0.6421 GB, free: 7.031 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.42e-05/1.839, allocations: 47.38 kB / 0.6421 GB, free: 6.984 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00382/1.843, allocations: 1.442 MB / 0.6435 GB, free: 5.527 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.002418/1.845, allocations: 1.044 MB / 0.6446 GB, free: 4.473 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.323e-06/1.845, allocations: 0 / 0.6446 GB, free: 4.473 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.556e-06/1.845, allocations: 3.984 kB / 0.6446 GB, free: 4.469 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004368/1.849, allocations: 2.224 MB / 0.6467 GB, free: 2.184 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.25e-06/1.85, allocations: 4 kB / 0.6467 GB, free: 2.18 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008537/1.85, allocations: 171.7 kB / 0.6469 GB, free: 2.012 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001908/1.852, allocations: 0.6834 MB / 0.6476 GB, free: 1.324 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.216e-05/1.852, allocations: 15.98 kB / 0.6476 GB, free: 1.309 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001591/1.854, allocations: 1.621 MB / 0.6492 GB, free: 15.63 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.794e-06/1.854, allocations: 0 / 0.6492 GB, free: 15.63 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003437/1.857, allocations: 1.62 MB / 0.6508 GB, free: 14 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002213/1.858, allocations: 188.1 kB / 0.6509 GB, free: 13.79 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.982e-05/1.858, allocations: 16.19 kB / 0.651 GB, free: 13.78 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005519/1.858, allocations: 75.86 kB / 0.651 GB, free: 13.7 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001346/1.858, allocations: 52.58 kB / 0.6511 GB, free: 13.65 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.117e-05/1.858, allocations: 19.98 kB / 0.6511 GB, free: 13.63 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0002098/1.859, allocations: 231.2 kB / 0.6513 GB, free: 13.4 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.51e-07/1.859, allocations: 0 / 0.6513 GB, free: 13.4 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.00269/1.861, allocations: 1.159 MB / 0.6524 GB, free: 12.24 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 (53): * Single equations (assignments): 50 * 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 {(6,18), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00854/1.87, allocations: 3.699 MB / 0.6561 GB, free: 8.523 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.002596/1.873, allocations: 0.9711 MB / 0.657 GB, free: 7.539 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.866e-06/1.873, allocations: 0 / 0.657 GB, free: 7.539 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.001391/1.874, allocations: 0.527 MB / 0.6575 GB, free: 7.012 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001029/1.875, allocations: 187.3 kB / 0.6577 GB, free: 6.832 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01244/1.887, allocations: 6.234 MB / 0.6638 GB, free: 384 kB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004596/1.888, allocations: 0.9035 MB / 0.6647 GB, free: 15.44 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0003172/1.888, allocations: 60.17 kB / 0.6647 GB, free: 15.38 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002849/1.889, allocations: 231.3 kB / 0.6649 GB, free: 15.15 MB / 0.5606 GB Notification: Performance of SimCode: time 7.01e-07/1.889, allocations: 0 / 0.6649 GB, free: 15.15 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2219/2.111, allocations: 53.27 MB / 0.717 GB, free: 197.5 MB / 0.5762 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000135/2.111, allocations: 248.3 kB / 0.7172 GB, free: 197.3 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.162/6.272, allocations: 2.219 kB / 0.7172 GB, free: 197.3 MB / 0.5762 GB (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestStaticCentrifugalPump.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestStaticCentrifugalPump.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestStaticCentrifugalPump.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestStaticCentrifugalPump.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestStaticCentrifugalPump_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestStaticCentrifugalPump.fmu > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestStaticCentrifugalPump.pipe 2>&1)