Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCentrifugalPump1.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: translateModel(ThermoSysPro.Examples.SimpleExamples.TestDynamicCentrifugalPump1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCentrifugalPump1") translateModel(ThermoSysPro.Examples.SimpleExamples.TestDynamicCentrifugalPump1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCentrifugalPump1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.7966/0.7966, allocations: 150.9 MB / 166 MB, free: 14.66 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003283/0.0003283, allocations: 15.97 kB / 204 MB, free: 10.15 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1585/0.1588, allocations: 31.32 MB / 235.4 MB, free: 5.438 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.TestDynamicCentrifugalPump1): time 1.551/1.71, allocations: 293.8 MB / 0.5167 GB, free: 12.53 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03881/1.748, allocations: 34.19 MB / 0.5501 GB, free: 10.48 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002164/1.749, allocations: 4 kB / 0.5501 GB, free: 10.48 MB / 446.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/Machines/DynamicCentrifugalPump.mo:71:3-75:23:writable] Warning: Connector M is not balanced: The number of potential variables (2) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/Machines/DynamicCentrifugalPump.mo:76:3-77:48: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/DynamicCentrifugalPump.mo:78:3-79:45: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). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/ElectroMechanics/BoundaryConditions/SourceMechanicalPower.mo:5:3-9:24:writable] Warning: Connector M is not balanced: The number of potential variables (2) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/ElectroMechanics/Machines/Shaft.mo:13:3-15:47:writable] Warning: Connector C2 is not balanced: The number of potential variables (2) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/ElectroMechanics/Machines/Shaft.mo:16:3-18:49:writable] Warning: Connector C1 is not balanced: The number of potential variables (2) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.0004744/1.749, allocations: 120.6 kB / 0.5502 GB, free: 10.36 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002963/1.749, allocations: 162.8 kB / 0.5504 GB, free: 10.2 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01813/1.768, allocations: 6.508 MB / 0.5567 GB, free: 3.688 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008613/1.768, allocations: 0.7596 MB / 0.5575 GB, free: 2.922 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003416/1.769, allocations: 295.6 kB / 0.5577 GB, free: 2.633 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003654/1.769, allocations: 294.8 kB / 0.558 GB, free: 2.344 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003434/1.77, allocations: 326.6 kB / 0.5583 GB, free: 2.023 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 7.207e-05/1.77, allocations: 40 kB / 0.5584 GB, free: 1.984 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02459/1.794, allocations: 14.92 MB / 0.573 GB, free: 3.043 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002457/1.795, allocations: 127.5 kB / 0.5731 GB, free: 2.918 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003897/1.795, allocations: 298.4 kB / 0.5734 GB, free: 2.625 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01728/1.812, allocations: 7.918 MB / 0.5811 GB, free: 10.69 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.693e-06/1.812, allocations: 0 / 0.5811 GB, free: 10.69 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.243e-06/1.812, allocations: 0 / 0.5811 GB, free: 10.69 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.056e-05/1.812, allocations: 0 / 0.5811 GB, free: 10.69 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: 141 * Number of variables: 141 Notification: Performance of Generate backend data structure: time 0.005598/1.818, allocations: 1.863 MB / 0.5829 GB, free: 8.773 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.018e-05/1.818, allocations: 8.031 kB / 0.5829 GB, free: 8.766 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001475/1.818, allocations: 75.09 kB / 0.583 GB, free: 8.691 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004147/1.819, allocations: 354.3 kB / 0.5833 GB, free: 8.305 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.805e-05/1.819, allocations: 70.7 kB / 0.5834 GB, free: 8.23 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.39e-05/1.819, allocations: 44 kB / 0.5834 GB, free: 8.188 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001536/1.82, allocations: 0.7168 MB / 0.5841 GB, free: 7.43 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.684e-05/1.82, allocations: 4 kB / 0.5841 GB, free: 7.426 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.94e-05/1.82, allocations: 16 kB / 0.5842 GB, free: 7.41 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.188e-05/1.82, allocations: 31.3 kB / 0.5842 GB, free: 7.383 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002001/1.822, allocations: 0.6868 MB / 0.5849 GB, free: 6.699 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.003397/1.826, allocations: 3.288 MB / 0.5881 GB, free: 3.102 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002392/1.828, allocations: 0.7292 MB / 0.5888 GB, free: 2.367 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009662/1.829, allocations: 358.4 kB / 0.5891 GB, free: 2.016 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07639/1.906, allocations: 44.15 MB / 0.6322 GB, free: 324 kB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001239/1.907, allocations: 414.5 kB / 0.6326 GB, free: 15.89 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=77): time 3.296e-06/1.907, allocations: 0 / 0.6326 GB, free: 15.89 MB / 0.5294 GB Notification: Performance of matching and sorting (n=77): time 0.006783/1.914, allocations: 2 MB / 0.6346 GB, free: 13.82 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.826e-05/1.914, allocations: 55.84 kB / 0.6346 GB, free: 13.76 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000348/1.914, allocations: 345.5 kB / 0.635 GB, free: 13.41 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 4.628e-05/1.914, allocations: 37.7 kB / 0.635 GB, free: 13.37 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001688/1.914, allocations: 256.5 kB / 0.6352 GB, free: 13.11 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001964/1.915, allocations: 260.1 kB / 0.6355 GB, free: 12.86 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002104/1.915, allocations: 138.1 kB / 0.6356 GB, free: 12.71 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001444/1.915, allocations: 362.7 kB / 0.636 GB, free: 12.35 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009227/1.916, allocations: 305.4 kB / 0.6363 GB, free: 12.05 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009863/1.917, allocations: 450.1 kB / 0.6367 GB, free: 11.55 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007231/1.924, allocations: 1.86 MB / 0.6385 GB, free: 9.629 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.338e-06/1.924, allocations: 0 / 0.6385 GB, free: 9.629 MB / 0.5294 GB Notification: Performance of matching and sorting (n=102) (initialization): time 0.004306/1.928, allocations: 1.318 MB / 0.6398 GB, free: 8.301 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 2.098e-05/1.928, allocations: 11.98 kB / 0.6398 GB, free: 8.289 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.73e-05/1.928, allocations: 8.312 kB / 0.6398 GB, free: 8.281 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003473/1.932, allocations: 0.8606 MB / 0.6407 GB, free: 7.414 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007674/1.933, allocations: 151.8 kB / 0.6408 GB, free: 7.266 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002111/1.935, allocations: 1.727 MB / 0.6425 GB, free: 5.488 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000636/1.936, allocations: 111.2 kB / 0.6426 GB, free: 5.379 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.485e-05/1.936, allocations: 31.98 kB / 0.6426 GB, free: 5.348 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,Valve.C2.b,Valve.C1.a,Tank.Cs1.b,Tank.Ce2.a,Tank.Cs2.b,Tank.Ce1.a,DynamicCentrifugalPump1.C2.b,DynamicCentrifugalPump1.C1.a,Tank.Cs1.a,Tank.Ce1.b) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (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 {(9,22), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0002983/1.936, allocations: 186.9 kB / 0.6428 GB, free: 5.156 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.449e-05/1.936, allocations: 51.28 kB / 0.6428 GB, free: 5.105 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003078/1.939, allocations: 1.421 MB / 0.6442 GB, free: 3.668 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.002596/1.942, allocations: 1.121 MB / 0.6453 GB, free: 2.527 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.816e-06/1.942, allocations: 4.969 kB / 0.6453 GB, free: 2.523 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.977e-06/1.942, allocations: 3.984 kB / 0.6453 GB, free: 2.52 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004369/1.946, allocations: 2.332 MB / 0.6476 GB, free: 124 kB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.131e-06/1.946, allocations: 0 / 0.6476 GB, free: 124 kB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001042/1.947, allocations: 199.8 kB / 0.6478 GB, free: 15.92 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001777/1.949, allocations: 0.6002 MB / 0.6484 GB, free: 15.32 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.31e-05/1.949, allocations: 23.98 kB / 0.6484 GB, free: 15.3 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002516/1.952, allocations: 2.973 MB / 0.6513 GB, free: 12.14 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/1.952, allocations: 0 / 0.6513 GB, free: 12.14 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003915/1.955, allocations: 1.757 MB / 0.653 GB, free: 10.36 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002277/1.956, allocations: 200.1 kB / 0.6532 GB, free: 10.15 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.082e-05/1.956, allocations: 8 kB / 0.6532 GB, free: 10.14 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005981/1.956, allocations: 73.48 kB / 0.6533 GB, free: 10.07 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001402/1.957, allocations: 60.91 kB / 0.6534 GB, free: 10.01 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.552e-05/1.957, allocations: 23.98 kB / 0.6534 GB, free: 9.988 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0002171/1.957, allocations: 235.3 kB / 0.6536 GB, free: 9.758 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.7e-07/1.957, allocations: 0 / 0.6536 GB, free: 9.758 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.002785/1.96, allocations: 1.191 MB / 0.6548 GB, free: 8.566 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (DynamicCentrifugalPump1.w,DynamicCentrifugalPump1.h,Tank.z,Tank.h,Shaft1.delta) * 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 (63): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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,16), (1,2), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004915/1.965, allocations: 1.638 MB / 0.6564 GB, free: 6.93 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.003044/1.968, allocations: 1.087 MB / 0.6574 GB, free: 5.824 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 4.208e-06/1.968, allocations: 4 kB / 0.6574 GB, free: 5.82 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.001715/1.969, allocations: 0.6952 MB / 0.6581 GB, free: 5.109 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000997/1.97, allocations: 192.5 kB / 0.6583 GB, free: 4.926 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003073/1.973, allocations: 1.97 MB / 0.6602 GB, free: 2.938 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004574/1.974, allocations: 0.9232 MB / 0.6611 GB, free: 1.98 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.000313/1.974, allocations: 64.41 kB / 0.6612 GB, free: 1.918 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001439/1.974, allocations: 43.42 kB / 0.6612 GB, free: 1.875 MB / 0.545 GB Notification: Performance of SimCode: time 2.81e-07/1.974, allocations: 0 / 0.6612 GB, free: 1.875 MB / 0.545 GB Notification: Performance of Templates: time 0.2163/2.191, allocations: 46.63 MB / 0.7068 GB, free: 222.4 MB / 0.5762 GB make -j1 -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCentrifugalPump1.makefile (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCentrifugalPump1.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCentrifugalPump1.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCentrifugalPump1.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCentrifugalPump1.sim & ./ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCentrifugalPump1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCentrifugalPump1.pipe 2>&1)