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.8418/0.8418, allocations: 150.8 MB / 166.6 MB, free: 11.18 MB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002683/0.0002683, allocations: 11.98 kB / 204.7 MB, free: 6.16 MB / 170.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1979/0.1982, allocations: 31.33 MB / 236 MB, free: 3.891 MB / 186.7 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.678/1.876, allocations: 293.1 MB / 0.5167 GB, free: 8.934 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.03882/1.915, allocations: 34.19 MB / 0.5501 GB, free: 6.879 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002416/1.915, allocations: 4 kB / 0.5501 GB, free: 6.875 MB / 442.7 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.0004862/1.916, allocations: 113.3 kB / 0.5502 GB, free: 6.766 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003136/1.916, allocations: 166.7 kB / 0.5503 GB, free: 6.602 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01934/1.935, allocations: 6.506 MB / 0.5567 GB, free: 96 kB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009845/1.936, allocations: 0.7675 MB / 0.5574 GB, free: 15.32 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000363/1.937, allocations: 298.4 kB / 0.5577 GB, free: 15.03 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003855/1.937, allocations: 298.8 kB / 0.558 GB, free: 14.74 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003592/1.937, allocations: 318.6 kB / 0.5583 GB, free: 14.43 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 7.151e-05/1.937, allocations: 40 kB / 0.5584 GB, free: 14.39 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02611/1.964, allocations: 14.92 MB / 0.5729 GB, free: 15.45 MB / 474.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001955/1.964, allocations: 123.5 kB / 0.573 GB, free: 15.33 MB / 474.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003552/1.964, allocations: 302.4 kB / 0.5733 GB, free: 15.03 MB / 474.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01632/1.98, allocations: 7.918 MB / 0.5811 GB, free: 7.094 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.885e-06/1.981, allocations: 3.984 kB / 0.5811 GB, free: 7.09 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.553e-06/1.981, allocations: 0 / 0.5811 GB, free: 7.09 MB / 474.7 MB Notification: Performance of Transformations before backend: time 8.235e-06/1.981, allocations: 0 / 0.5811 GB, free: 7.09 MB / 474.7 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.005459/1.986, allocations: 1.868 MB / 0.5829 GB, free: 5.172 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.174e-05/1.986, allocations: 11.97 kB / 0.5829 GB, free: 5.16 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001272/1.986, allocations: 75.09 kB / 0.583 GB, free: 5.086 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004019/1.987, allocations: 346.3 kB / 0.5833 GB, free: 4.707 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.74e-05/1.987, allocations: 70.7 kB / 0.5834 GB, free: 4.633 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.018e-05/1.987, allocations: 44 kB / 0.5834 GB, free: 4.59 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001527/1.988, allocations: 0.7187 MB / 0.5841 GB, free: 3.832 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.937e-05/1.988, allocations: 3.938 kB / 0.5841 GB, free: 3.828 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.888e-05/1.988, allocations: 20 kB / 0.5841 GB, free: 3.809 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.084e-05/1.988, allocations: 23.92 kB / 0.5842 GB, free: 3.785 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001983/1.99, allocations: 0.6946 MB / 0.5848 GB, free: 3.094 MB / 474.7 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.003323/1.994, allocations: 3.286 MB / 0.588 GB, free: 15.5 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002424/1.996, allocations: 0.7337 MB / 0.5888 GB, free: 14.76 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009522/1.997, allocations: 358.4 kB / 0.5891 GB, free: 14.41 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08336/2.081, allocations: 44.14 MB / 0.6322 GB, free: 12.71 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001279/2.082, allocations: 406.5 kB / 0.6326 GB, free: 12.3 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=77): time 4.659e-06/2.082, allocations: 4 kB / 0.6326 GB, free: 12.29 MB / 0.5261 GB Notification: Performance of matching and sorting (n=77): time 0.007017/2.089, allocations: 2.008 MB / 0.6346 GB, free: 10.22 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.625e-05/2.089, allocations: 55.84 kB / 0.6346 GB, free: 10.15 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003471/2.089, allocations: 345.5 kB / 0.6349 GB, free: 9.805 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 4.011e-05/2.089, allocations: 37.7 kB / 0.635 GB, free: 9.762 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001592/2.09, allocations: 248.7 kB / 0.6352 GB, free: 9.512 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001844/2.09, allocations: 256.1 kB / 0.6355 GB, free: 9.258 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001944/2.09, allocations: 134.2 kB / 0.6356 GB, free: 9.117 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001346/2.09, allocations: 366.7 kB / 0.6359 GB, free: 8.75 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009351/2.091, allocations: 301.4 kB / 0.6362 GB, free: 8.457 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001044/2.092, allocations: 458.1 kB / 0.6367 GB, free: 7.953 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007494/2.1, allocations: 1.858 MB / 0.6385 GB, free: 6.031 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.38e-06/2.1, allocations: 0 / 0.6385 GB, free: 6.031 MB / 0.5261 GB Notification: Performance of matching and sorting (n=102) (initialization): time 0.004497/2.104, allocations: 1.312 MB / 0.6398 GB, free: 4.703 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 2.195e-05/2.104, allocations: 8 kB / 0.6398 GB, free: 4.695 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.151e-05/2.104, allocations: 12.19 kB / 0.6398 GB, free: 4.684 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003293/2.107, allocations: 0.8761 MB / 0.6406 GB, free: 3.801 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007803/2.108, allocations: 151.8 kB / 0.6408 GB, free: 3.652 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002007/2.11, allocations: 1.719 MB / 0.6425 GB, free: 1.887 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006169/2.111, allocations: 115.2 kB / 0.6426 GB, free: 1.773 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.197e-05/2.111, allocations: 27.98 kB / 0.6426 GB, free: 1.746 MB / 0.5261 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.0003814/2.111, allocations: 194.3 kB / 0.6428 GB, free: 1.547 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.888e-05/2.111, allocations: 47.34 kB / 0.6428 GB, free: 1.5 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003075/2.115, allocations: 1.417 MB / 0.6442 GB, free: 68 kB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.002629/2.117, allocations: 1.121 MB / 0.6453 GB, free: 14.93 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.235e-06/2.117, allocations: 3.938 kB / 0.6453 GB, free: 14.92 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.939e-06/2.117, allocations: 3.984 kB / 0.6453 GB, free: 14.92 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004452/2.122, allocations: 2.344 MB / 0.6476 GB, free: 12.5 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.661e-06/2.122, allocations: 0 / 0.6476 GB, free: 12.5 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001002/2.123, allocations: 199.8 kB / 0.6478 GB, free: 12.31 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001723/2.124, allocations: 0.592 MB / 0.6484 GB, free: 11.71 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.397e-05/2.124, allocations: 20 kB / 0.6484 GB, free: 11.69 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002426/2.127, allocations: 2.975 MB / 0.6513 GB, free: 8.535 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/2.127, allocations: 0 / 0.6513 GB, free: 8.535 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04499/2.172, allocations: 21.35 MB / 0.6721 GB, free: 2.395 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003442/2.172, allocations: 200 kB / 0.6723 GB, free: 2.18 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.381e-05/2.172, allocations: 15.98 kB / 0.6724 GB, free: 2.164 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000608/2.173, allocations: 75.72 kB / 0.6724 GB, free: 2.09 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001805/2.173, allocations: 60.91 kB / 0.6725 GB, free: 2.031 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.047e-05/2.173, allocations: 23.98 kB / 0.6725 GB, free: 2.008 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0002524/2.174, allocations: 235.2 kB / 0.6727 GB, free: 1.773 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.4e-07/2.174, allocations: 4 kB / 0.6727 GB, free: 1.77 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.006089/2.18, allocations: 2.3 MB / 0.675 GB, free: 15.47 MB / 0.573 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.0102/2.19, allocations: 2.622 MB / 0.6775 GB, free: 12.84 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.003532/2.193, allocations: 1.095 MB / 0.6786 GB, free: 11.73 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/2.193, allocations: 4.125 kB / 0.6786 GB, free: 11.73 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.001896/2.195, allocations: 0.6831 MB / 0.6793 GB, free: 11.04 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001175/2.197, allocations: 189.2 kB / 0.6795 GB, free: 10.86 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005364/2.202, allocations: 3.307 MB / 0.6827 GB, free: 7.445 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000624/2.203, allocations: 0.9785 MB / 0.6836 GB, free: 6.441 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.0005132/2.203, allocations: 88.38 kB / 0.6837 GB, free: 6.352 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002402/2.203, allocations: 55.42 kB / 0.6838 GB, free: 6.301 MB / 0.573 GB Notification: Performance of SimCode: time 8.02e-07/2.203, allocations: 0 / 0.6838 GB, free: 6.301 MB / 0.573 GB Notification: Performance of Templates: time 0.2547/2.458, allocations: 75.25 MB / 0.7573 GB, free: 173.5 MB / 0.573 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)