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.7457/0.7457, allocations: 150.9 MB / 167.2 MB, free: 14.55 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003093/0.0003093, allocations: 20.31 kB / 237.8 MB, free: 1.75 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04481/0.04513, allocations: 31.34 MB / 269.1 MB, free: 7.031 MB / 222.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.TestControlValve): time 1.422/1.467, allocations: 294.8 MB / 0.5507 GB, free: 12.68 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.03418/1.501, allocations: 34.76 MB / 0.5846 GB, free: 9.766 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001809/1.501, allocations: 4 kB / 0.5846 GB, free: 9.762 MB / 478.1 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.0004038/1.502, allocations: 161 kB / 0.5848 GB, free: 9.605 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000208/1.502, allocations: 159 kB / 0.5849 GB, free: 9.449 MB / 478.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteam/IF97_packages.mo:783:9-783:27:writable] Warning: cv was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteam/IF97_packages.mo:850:9-850:27:writable] Warning: cv was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteam/IF97_packages.mo:1088:9-1088:27:writable] Warning: cv was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteamSimple/prop4_Ph.mo:69:3-69:60:writable] Warning: dh1satp was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteamSimple/prop4_Ph.mo:69:3-69:60:writable] Warning: dh2satp was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteamSimple/prop4_Ph_der.mo:167:3-170:49:writable] Warning: du1satp_der was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteamSimple/prop4_Ph_der.mo:167:3-170:49:writable] Warning: du2satp_der was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. Notification: Performance of NFTyping.typeClassSections: time 0.0201/1.522, allocations: 9.735 MB / 0.5944 GB, free: 15.7 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004443/1.522, allocations: 386.2 kB / 0.5948 GB, free: 15.32 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001837/1.523, allocations: 132.5 kB / 0.5949 GB, free: 15.19 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001902/1.523, allocations: 171.3 kB / 0.5951 GB, free: 15.02 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001734/1.523, allocations: 163.4 kB / 0.5952 GB, free: 14.86 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.822e-05/1.523, allocations: 20 kB / 0.5953 GB, free: 14.84 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02494/1.548, allocations: 17.95 MB / 0.6128 GB, free: 12.87 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001144/1.548, allocations: 79.69 kB / 0.6129 GB, free: 12.79 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001756/1.548, allocations: 163 kB / 0.613 GB, free: 12.63 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0138/1.562, allocations: 8.523 MB / 0.6213 GB, free: 4.086 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/1.562, allocations: 0 / 0.6213 GB, free: 4.086 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.292e-06/1.562, allocations: 4 kB / 0.6213 GB, free: 4.082 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 9.578e-06/1.562, allocations: 0 / 0.6213 GB, free: 4.082 MB / 0.4981 GB 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.003552/1.566, allocations: 1.52 MB / 0.6228 GB, free: 2.512 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.245e-05/1.566, allocations: 12.03 kB / 0.6228 GB, free: 2.5 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.796e-05/1.566, allocations: 39.47 kB / 0.6229 GB, free: 2.461 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002912/1.566, allocations: 294 kB / 0.6232 GB, free: 2.137 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.693e-05/1.566, allocations: 20.38 kB / 0.6232 GB, free: 2.117 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.751e-05/1.566, allocations: 20 kB / 0.6232 GB, free: 2.098 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004023/1.567, allocations: 323.4 kB / 0.6235 GB, free: 1.758 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.067e-06/1.567, allocations: 0 / 0.6235 GB, free: 1.758 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.036e-05/1.567, allocations: 8 kB / 0.6235 GB, free: 1.75 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.562e-05/1.567, allocations: 19.98 kB / 0.6235 GB, free: 1.73 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002613/1.567, allocations: 209 kB / 0.6237 GB, free: 1.527 MB / 0.4981 GB 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.03412/1.601, allocations: 18.22 MB / 0.6415 GB, free: 13.42 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002065/1.601, allocations: 142.5 kB / 0.6417 GB, free: 13.27 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001099/1.601, allocations: 108.8 kB / 0.6418 GB, free: 13.16 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2963/1.898, allocations: 77.73 MB / 0.7177 GB, free: 212.1 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.162e-05/1.898, allocations: 37.28 kB / 0.7177 GB, free: 212.1 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=34): time 1.914e-06/1.898, allocations: 0 / 0.7177 GB, free: 212.1 MB / 0.5919 GB Notification: Performance of matching and sorting (n=34): time 0.0009452/1.899, allocations: 499.1 kB / 0.7182 GB, free: 212 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.835e-05/1.899, allocations: 51.41 kB / 0.7182 GB, free: 211.9 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000293/1.899, allocations: 364.6 kB / 0.7186 GB, free: 211.8 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 9.868e-06/1.899, allocations: 25.7 kB / 0.7186 GB, free: 211.8 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 8.047e-05/1.899, allocations: 186.6 kB / 0.7188 GB, free: 211.7 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 4.748e-05/1.899, allocations: 106.5 kB / 0.7189 GB, free: 211.6 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.711e-05/1.899, allocations: 52.97 kB / 0.7189 GB, free: 211.6 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 4.93e-05/1.899, allocations: 343.5 kB / 0.7193 GB, free: 211.3 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.595e-05/1.899, allocations: 96.19 kB / 0.7194 GB, free: 211.3 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001075/1.9, allocations: 137.2 kB / 0.7195 GB, free: 211.2 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002189/1.9, allocations: 244.7 kB / 0.7197 GB, free: 211.2 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/1.9, allocations: 0 / 0.7197 GB, free: 211.2 MB / 0.5919 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0003732/1.9, allocations: 350.3 kB / 0.7201 GB, free: 211.1 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.297e-05/1.9, allocations: 5.406 kB / 0.7201 GB, free: 211.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.523e-06/1.9, allocations: 0 / 0.7201 GB, free: 211.1 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007374/1.901, allocations: 143.5 kB / 0.7202 GB, free: 211.1 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.073e-05/1.901, allocations: 17.03 kB / 0.7202 GB, free: 211.1 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003808/1.901, allocations: 0.609 MB / 0.7208 GB, free: 210.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001123/1.902, allocations: 25.19 kB / 0.7208 GB, free: 210.6 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.276e-05/1.902, allocations: 12.88 kB / 0.7208 GB, free: 210.6 MB / 0.5919 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.0001054/1.902, allocations: 159.7 kB / 0.721 GB, free: 210.5 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.636e-05/1.902, allocations: 31.34 kB / 0.721 GB, free: 210.5 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006221/1.902, allocations: 0.6535 MB / 0.7217 GB, free: 210.2 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003385/1.903, allocations: 265.6 kB / 0.7219 GB, free: 210.2 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/1.903, allocations: 0 / 0.7219 GB, free: 210.2 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.957e-06/1.903, allocations: 0 / 0.7219 GB, free: 210.2 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008081/1.904, allocations: 0.8206 MB / 0.7227 GB, free: 209.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.815e-06/1.904, allocations: 5.984 kB / 0.7227 GB, free: 209.8 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.884e-05/1.904, allocations: 21.84 kB / 0.7227 GB, free: 209.8 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002954/1.904, allocations: 108.4 kB / 0.7228 GB, free: 209.8 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.042e-05/1.904, allocations: 3.984 kB / 0.7229 GB, free: 209.8 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003296/1.904, allocations: 0.6286 MB / 0.7235 GB, free: 209.3 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/1.904, allocations: 7.625 kB / 0.7235 GB, free: 209.3 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003976/1.905, allocations: 385 kB / 0.7238 GB, free: 209.1 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 7.079e-05/1.905, allocations: 121.4 kB / 0.724 GB, free: 209 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.173e-05/1.905, allocations: 11.38 kB / 0.724 GB, free: 209 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001023/1.905, allocations: 6.688 kB / 0.724 GB, free: 209 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.186e-05/1.905, allocations: 12.17 kB / 0.724 GB, free: 209 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.484e-06/1.905, allocations: 6.656 kB / 0.724 GB, free: 209 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0002581/1.905, allocations: 335 kB / 0.7243 GB, free: 208.9 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.51e-07/1.905, allocations: 0 / 0.7243 GB, free: 208.9 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.002224/1.907, allocations: 1.213 MB / 0.7255 GB, free: 208.9 MB / 0.5919 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.004373/1.912, allocations: 1.747 MB / 0.7272 GB, free: 208.7 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.000486/1.912, allocations: 278.8 kB / 0.7275 GB, free: 208.6 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/1.912, allocations: 0 / 0.7275 GB, free: 208.6 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0002317/1.913, allocations: 124.4 kB / 0.7276 GB, free: 208.6 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006337/1.913, allocations: 131.2 kB / 0.7277 GB, free: 208.6 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008147/1.914, allocations: 0.6927 MB / 0.7284 GB, free: 208.3 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001738/1.914, allocations: 0.8043 MB / 0.7292 GB, free: 207.6 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.481e-05/1.914, allocations: 23.22 kB / 0.7292 GB, free: 207.6 MB / 0.5919 GB Notification: Performance of SimCode: time 1.81e-07/1.914, allocations: 0 / 0.7292 GB, free: 207.6 MB / 0.5919 GB Notification: Performance of Templates: time 0.0253/1.94, allocations: 26.14 MB / 0.7547 GB, free: 193.5 MB / 0.5919 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)