Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve.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.TestControlValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve") translateModel(ThermoSysPro.Examples.SimpleExamples.TestControlValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8349/0.8349, allocations: 150.8 MB / 166.6 MB, free: 11.13 MB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002557/0.0002558, allocations: 15.97 kB / 204.7 MB, free: 6.148 MB / 170.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1523/0.1525, allocations: 31.33 MB / 236 MB, free: 3.879 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.TestControlValve): time 1.681/1.833, allocations: 292 MB / 0.5157 GB, free: 9.941 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.04549/1.879, allocations: 37.91 MB / 0.5527 GB, free: 4.16 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002997/1.879, allocations: 0 / 0.5527 GB, free: 4.16 MB / 442.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/BoundaryConditions/SourceP.mo:30:3-31:45:writable] Warning: Connector C 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/BoundaryConditions/SinkP.mo:33:3-34:47:writable] Warning: Connector C 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.0005439/1.88, allocations: 127.5 kB / 0.5528 GB, free: 4.035 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00027/1.88, allocations: 147.2 kB / 0.553 GB, free: 3.891 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02367/1.904, allocations: 7.277 MB / 0.5601 GB, free: 12.62 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006353/1.904, allocations: 370.3 kB / 0.5604 GB, free: 12.25 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002609/1.905, allocations: 124.8 kB / 0.5605 GB, free: 12.14 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002968/1.905, allocations: 147.3 kB / 0.5607 GB, free: 11.99 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002366/1.905, allocations: 159.4 kB / 0.5608 GB, free: 11.84 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 3.66e-05/1.905, allocations: 16 kB / 0.5608 GB, free: 11.82 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03302/1.938, allocations: 17.8 MB / 0.5782 GB, free: 9.992 MB / 474.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001561/1.939, allocations: 71.69 kB / 0.5783 GB, free: 9.922 MB / 474.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002244/1.939, allocations: 151 kB / 0.5784 GB, free: 9.773 MB / 474.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02393/1.963, allocations: 8.538 MB / 0.5868 GB, free: 1.215 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.142e-06/1.963, allocations: 0 / 0.5868 GB, free: 1.215 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.282e-06/1.963, allocations: 0 / 0.5868 GB, free: 1.215 MB / 474.7 MB Notification: Performance of Transformations before backend: time 1.128e-05/1.963, allocations: 4 kB / 0.5868 GB, free: 1.211 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: 77 * Number of variables: 77 Notification: Performance of Generate backend data structure: time 0.004451/1.967, allocations: 1.52 MB / 0.5883 GB, free: 15.64 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.592e-05/1.967, allocations: 8.031 kB / 0.5883 GB, free: 15.63 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.231e-05/1.967, allocations: 47.38 kB / 0.5883 GB, free: 15.58 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00036/1.968, allocations: 290.1 kB / 0.5886 GB, free: 15.26 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.107e-05/1.968, allocations: 12.44 kB / 0.5886 GB, free: 15.25 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.268e-05/1.968, allocations: 20 kB / 0.5886 GB, free: 15.23 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004978/1.968, allocations: 327.4 kB / 0.5889 GB, free: 14.88 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.217e-05/1.968, allocations: 0 / 0.5889 GB, free: 14.88 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.338e-05/1.968, allocations: 8 kB / 0.5889 GB, free: 14.88 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.505e-05/1.968, allocations: 8 kB / 0.589 GB, free: 14.87 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003247/1.969, allocations: 216.9 kB / 0.5892 GB, free: 14.66 MB / 490.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.03938/2.008, allocations: 18.11 MB / 0.6068 GB, free: 10.67 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002517/2.008, allocations: 138.5 kB / 0.607 GB, free: 10.52 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001285/2.009, allocations: 108.8 kB / 0.6071 GB, free: 10.41 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1571/2.166, allocations: 77.29 MB / 0.6826 GB, free: 4.359 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.272e-05/2.166, allocations: 30.56 kB / 0.6826 GB, free: 4.32 MB / 0.573 GB Notification: Performance of pre-optimization done (n=34): time 3.276e-06/2.166, allocations: 4 kB / 0.6826 GB, free: 4.316 MB / 0.573 GB Notification: Performance of matching and sorting (n=34): time 0.001291/2.167, allocations: 495.2 kB / 0.6831 GB, free: 3.805 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.386e-05/2.167, allocations: 55.41 kB / 0.6831 GB, free: 3.738 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004504/2.168, allocations: 360.4 kB / 0.6835 GB, free: 3.379 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 1.733e-05/2.168, allocations: 29.64 kB / 0.6835 GB, free: 3.344 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001521/2.168, allocations: 188.4 kB / 0.6837 GB, free: 3.156 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 8.37e-05/2.168, allocations: 110.4 kB / 0.6838 GB, free: 3.047 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.942e-05/2.168, allocations: 49.55 kB / 0.6838 GB, free: 2.992 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001573/2.168, allocations: 350.8 kB / 0.6842 GB, free: 2.641 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001305/2.168, allocations: 91.97 kB / 0.6842 GB, free: 2.551 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001856/2.168, allocations: 144.2 kB / 0.6844 GB, free: 2.395 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002909/2.169, allocations: 244.5 kB / 0.6846 GB, free: 2.141 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.552e-06/2.169, allocations: 4 kB / 0.6846 GB, free: 2.137 MB / 0.573 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.000452/2.169, allocations: 337.5 kB / 0.6849 GB, free: 1.797 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 2.11e-05/2.169, allocations: 4 kB / 0.6849 GB, free: 1.793 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.069e-05/2.169, allocations: 8 kB / 0.685 GB, free: 1.785 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008132/2.17, allocations: 137 kB / 0.6851 GB, free: 1.652 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001069/2.17, allocations: 19.92 kB / 0.6851 GB, free: 1.633 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005384/2.171, allocations: 0.6147 MB / 0.6857 GB, free: 0.9922 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000132/2.171, allocations: 27.62 kB / 0.6857 GB, free: 0.9648 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.869e-05/2.171, allocations: 11.98 kB / 0.6857 GB, free: 0.9531 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 4 (ControlValve.C2.b,ControlValve.C1.a,PuitsP1.C.a,SourceP1.C.b) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0001573/2.171, allocations: 155.1 kB / 0.6859 GB, free: 0.793 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.937e-05/2.171, allocations: 31.56 kB / 0.6859 GB, free: 0.7617 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008003/2.172, allocations: 0.6591 MB / 0.6866 GB, free: 24 kB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.1803/2.352, allocations: 249.4 kB / 0.6868 GB, free: 222.9 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.187e-06/2.352, allocations: 1.344 kB / 0.6868 GB, free: 222.9 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.238e-06/2.352, allocations: 0.5156 kB / 0.6868 GB, free: 222.9 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001062/2.353, allocations: 0.8286 MB / 0.6876 GB, free: 222.6 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.787e-06/2.353, allocations: 0.5 kB / 0.6876 GB, free: 222.6 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.849e-05/2.353, allocations: 23.62 kB / 0.6876 GB, free: 222.6 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004637/2.354, allocations: 115.7 kB / 0.6877 GB, free: 222.5 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.246e-05/2.354, allocations: 4.844 kB / 0.6877 GB, free: 222.5 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004186/2.354, allocations: 0.6352 MB / 0.6884 GB, free: 222 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/2.354, allocations: 4.344 kB / 0.6884 GB, free: 222 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009945/2.355, allocations: 1.148 MB / 0.6895 GB, free: 221.3 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 9.594e-05/2.355, allocations: 123 kB / 0.6896 GB, free: 221.2 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.259e-05/2.356, allocations: 15.02 kB / 0.6896 GB, free: 221.2 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001129/2.356, allocations: 5.875 kB / 0.6896 GB, free: 221.2 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.201e-05/2.356, allocations: 11.34 kB / 0.6896 GB, free: 221.2 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.095e-05/2.356, allocations: 5.5 kB / 0.6896 GB, free: 221.2 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.0003199/2.356, allocations: 329.9 kB / 0.69 GB, free: 221.1 MB / 0.573 GB Notification: Performance of sort global known variables: time 1.4e-07/2.356, allocations: 0 / 0.69 GB, free: 221.1 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.003263/2.359, allocations: 1.248 MB / 0.6912 GB, free: 221.1 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004951/2.364, allocations: 1.801 MB / 0.6929 GB, free: 221 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.0006783/2.365, allocations: 275.4 kB / 0.6932 GB, free: 220.9 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/2.365, allocations: 4.75 kB / 0.6932 GB, free: 220.9 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.0002898/2.365, allocations: 120.6 kB / 0.6933 GB, free: 220.9 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008644/2.366, allocations: 125.4 kB / 0.6934 GB, free: 220.9 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001162/2.367, allocations: 0.9557 MB / 0.6944 GB, free: 220.4 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002456/2.368, allocations: 0.812 MB / 0.6952 GB, free: 219.7 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.000113/2.368, allocations: 31.89 kB / 0.6952 GB, free: 219.7 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.46e-05/2.368, allocations: 21.53 kB / 0.6952 GB, free: 219.7 MB / 0.573 GB Notification: Performance of SimCode: time 2.01e-07/2.368, allocations: 2.719 kB / 0.6952 GB, free: 219.7 MB / 0.573 GB Notification: Performance of Templates: time 0.04902/2.417, allocations: 43.25 MB / 0.7375 GB, free: 196.8 MB / 0.573 GB make -j1 -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve.makefile (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve.sim & ./ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve.pipe 2>&1)