Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.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.Book.SimpleExamples.PressureLoss.TestControlValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve") translateModel(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.7628/0.7628, allocations: 150.9 MB / 167.2 MB, free: 14.54 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003081/0.0003081, allocations: 15.98 kB / 237.7 MB, free: 2.004 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04693/0.04725, allocations: 31.34 MB / 269 MB, free: 7.25 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.Book.SimpleExamples.PressureLoss.TestControlValve): time 1.467/1.514, allocations: 294.7 MB / 0.5505 GB, free: 13.07 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.03604/1.55, allocations: 34.76 MB / 0.5844 GB, free: 10.16 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001666/1.55, allocations: 8 kB / 0.5844 GB, free: 10.15 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.0004269/1.551, allocations: 167.1 kB / 0.5846 GB, free: 9.988 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002672/1.551, allocations: 147.1 kB / 0.5847 GB, free: 9.844 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.02183/1.573, allocations: 9.734 MB / 0.5943 GB, free: 96 kB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005008/1.573, allocations: 386.3 kB / 0.5946 GB, free: 15.71 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002082/1.573, allocations: 132.5 kB / 0.5947 GB, free: 15.59 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002435/1.574, allocations: 171.3 kB / 0.5949 GB, free: 15.42 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002022/1.574, allocations: 167.4 kB / 0.5951 GB, free: 15.26 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.344e-05/1.574, allocations: 20 kB / 0.5951 GB, free: 15.24 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0276/1.602, allocations: 17.96 MB / 0.6126 GB, free: 13.25 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001161/1.602, allocations: 75.7 kB / 0.6127 GB, free: 13.18 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001837/1.602, allocations: 167 kB / 0.6129 GB, free: 13.02 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.01421/1.616, allocations: 8.519 MB / 0.6212 GB, free: 4.477 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/1.616, allocations: 4 kB / 0.6212 GB, free: 4.473 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.905e-06/1.616, allocations: 0 / 0.6212 GB, free: 4.473 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.035e-05/1.616, allocations: 3.938 kB / 0.6212 GB, free: 4.469 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.003491/1.62, allocations: 1.524 MB / 0.6227 GB, free: 2.895 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.123e-05/1.62, allocations: 8.031 kB / 0.6227 GB, free: 2.887 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.373e-05/1.62, allocations: 39.47 kB / 0.6227 GB, free: 2.848 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002832/1.62, allocations: 294 kB / 0.623 GB, free: 2.523 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.057e-05/1.62, allocations: 16.42 kB / 0.623 GB, free: 2.508 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.633e-05/1.62, allocations: 23.94 kB / 0.623 GB, free: 2.484 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004173/1.621, allocations: 315.5 kB / 0.6233 GB, free: 2.152 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.065e-05/1.621, allocations: 3.938 kB / 0.6233 GB, free: 2.148 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.913e-05/1.621, allocations: 8 kB / 0.6234 GB, free: 2.141 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.564e-05/1.621, allocations: 15.98 kB / 0.6234 GB, free: 2.125 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002703/1.621, allocations: 209 kB / 0.6236 GB, free: 1.922 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.03643/1.657, allocations: 18.22 MB / 0.6414 GB, free: 13.82 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002041/1.658, allocations: 146.5 kB / 0.6415 GB, free: 13.67 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00011/1.658, allocations: 108.8 kB / 0.6416 GB, free: 13.56 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3105/1.968, allocations: 77.73 MB / 0.7175 GB, free: 211.8 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.204e-05/1.968, allocations: 31.91 kB / 0.7175 GB, free: 211.7 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=34): time 2.073e-06/1.968, allocations: 0 / 0.7175 GB, free: 211.7 MB / 0.5919 GB Notification: Performance of matching and sorting (n=34): time 0.001048/1.969, allocations: 0.4966 MB / 0.718 GB, free: 211.6 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.537e-05/1.969, allocations: 56.69 kB / 0.7181 GB, free: 211.5 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003103/1.97, allocations: 357.8 kB / 0.7184 GB, free: 211.4 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 1.207e-05/1.97, allocations: 29.2 kB / 0.7184 GB, free: 211.4 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 8.839e-05/1.97, allocations: 187.1 kB / 0.7186 GB, free: 211.3 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 5.314e-05/1.97, allocations: 111.7 kB / 0.7187 GB, free: 211.2 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.93e-05/1.97, allocations: 48.5 kB / 0.7188 GB, free: 211.2 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 5.741e-05/1.97, allocations: 344.8 kB / 0.7191 GB, free: 210.9 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001012/1.97, allocations: 94.98 kB / 0.7192 GB, free: 210.9 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001114/1.97, allocations: 133 kB / 0.7193 GB, free: 210.9 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002179/1.97, allocations: 247.5 kB / 0.7196 GB, free: 210.8 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.777e-06/1.97, allocations: 2.781 kB / 0.7196 GB, free: 210.8 MB / 0.5919 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0003869/1.971, allocations: 344 kB / 0.7199 GB, free: 210.8 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.564e-05/1.971, allocations: 12.23 kB / 0.7199 GB, free: 210.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.672e-06/1.971, allocations: 0 / 0.7199 GB, free: 210.8 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007468/1.972, allocations: 143.9 kB / 0.72 GB, free: 210.8 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.18e-05/1.972, allocations: 14.12 kB / 0.7201 GB, free: 210.8 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003883/1.972, allocations: 0.611 MB / 0.7207 GB, free: 210.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001158/1.972, allocations: 27.34 kB / 0.7207 GB, free: 210.2 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.272e-05/1.972, allocations: 6.016 kB / 0.7207 GB, free: 210.2 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.0001198/1.972, allocations: 161.9 kB / 0.7208 GB, free: 210.1 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.999e-05/1.972, allocations: 33.19 kB / 0.7209 GB, free: 210.1 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006256/1.973, allocations: 0.6563 MB / 0.7215 GB, free: 209.8 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003513/1.973, allocations: 261.5 kB / 0.7218 GB, free: 209.8 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/1.973, allocations: 5.438 kB / 0.7218 GB, free: 209.8 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.907e-06/1.973, allocations: 0 / 0.7218 GB, free: 209.8 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008541/1.974, allocations: 0.8238 MB / 0.7226 GB, free: 209.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/1.974, allocations: 0 / 0.7226 GB, free: 209.5 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.184e-05/1.974, allocations: 23.06 kB / 0.7226 GB, free: 209.5 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003181/1.975, allocations: 111.1 kB / 0.7227 GB, free: 209.4 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.223e-05/1.975, allocations: 5 kB / 0.7227 GB, free: 209.4 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003413/1.975, allocations: 0.6347 MB / 0.7233 GB, free: 208.9 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/1.975, allocations: 0 / 0.7233 GB, free: 208.9 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004136/1.976, allocations: 384.5 kB / 0.7237 GB, free: 208.8 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 7.355e-05/1.976, allocations: 123.9 kB / 0.7238 GB, free: 208.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.495e-05/1.976, allocations: 14.38 kB / 0.7238 GB, free: 208.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001066/1.976, allocations: 6.469 kB / 0.7238 GB, free: 208.6 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.714e-05/1.976, allocations: 6.203 kB / 0.7238 GB, free: 208.6 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.035e-06/1.976, allocations: 7.906 kB / 0.7238 GB, free: 208.6 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0002739/1.976, allocations: 334 kB / 0.7242 GB, free: 208.6 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.1e-07/1.976, allocations: 0 / 0.7242 GB, free: 208.6 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.00253/1.979, allocations: 1.213 MB / 0.7253 GB, free: 208.5 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.004326/1.983, allocations: 1.744 MB / 0.727 GB, free: 208.3 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0005191/1.984, allocations: 278.2 kB / 0.7273 GB, free: 208.3 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/1.984, allocations: 0 / 0.7273 GB, free: 208.3 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.000246/1.984, allocations: 117.1 kB / 0.7274 GB, free: 208.3 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006899/1.984, allocations: 136.2 kB / 0.7276 GB, free: 208.2 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008169/1.985, allocations: 0.6911 MB / 0.7282 GB, free: 207.9 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001909/1.986, allocations: 0.808 MB / 0.729 GB, free: 207.2 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.56e-05/1.986, allocations: 22.53 kB / 0.729 GB, free: 207.2 MB / 0.5919 GB Notification: Performance of SimCode: time 3.3e-07/1.986, allocations: 0 / 0.729 GB, free: 207.2 MB / 0.5919 GB Notification: Performance of Templates: time 0.02664/2.012, allocations: 26.09 MB / 0.7545 GB, free: 193.9 MB / 0.5919 GB make -j1 -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.makefile (rm -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.sim & ./ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe 2>&1)