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) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.7745/0.7745, allocations: 152.6 MB / 170.7 MB, free: 6.285 MB / 142.1 MB [Timeout remaining time 89] 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=500,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve") translateModel(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve") [Timeout 660] Notification: Performance of FrontEnd - loaded program: time 0.0004815/0.0004815, allocations: 11.98 kB / 247.2 MB, free: 6.449 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1546/0.1551, allocations: 33.04 MB / 280.3 MB, free: 3.648 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.453/1.608, allocations: 301 MB / 0.5676 GB, free: 6.086 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.2754/1.883, allocations: 34.88 MB / 0.6017 GB, free: 5.922 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002439/1.883, allocations: 2 kB / 0.6017 GB, free: 5.922 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.0004633/1.884, allocations: 189.2 kB / 0.6019 GB, free: 5.848 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002173/1.884, allocations: 171.2 kB / 0.602 GB, free: 5.762 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.02349/1.907, allocations: 9.962 MB / 0.6117 GB, free: 1.203 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005088/1.908, allocations: 391.1 kB / 0.6121 GB, free: 0.9766 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001707/1.908, allocations: 106.5 kB / 0.6122 GB, free: 0.9141 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001882/1.908, allocations: 168.2 kB / 0.6124 GB, free: 0.8164 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002049/1.908, allocations: 181.4 kB / 0.6126 GB, free: 0.7148 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 3.102e-05/1.908, allocations: 18.28 kB / 0.6126 GB, free: 0.7148 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03275/1.941, allocations: 17.98 MB / 0.6301 GB, free: 1.254 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001594/1.941, allocations: 71.77 kB / 0.6302 GB, free: 1.184 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002548/1.942, allocations: 163 kB / 0.6304 GB, free: 1.023 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01984/1.961, allocations: 8.54 MB / 0.6387 GB, free: 8.457 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/1.961, allocations: 0 / 0.6387 GB, free: 8.457 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.523e-06/1.961, allocations: 0 / 0.6387 GB, free: 8.457 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.37e-05/1.961, allocations: 6.156 kB / 0.6387 GB, free: 8.453 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.004038/1.966, allocations: 1.581 MB / 0.6402 GB, free: 6.816 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.829e-05/1.966, allocations: 12.03 kB / 0.6403 GB, free: 6.805 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001018/1.966, allocations: 40.38 kB / 0.6403 GB, free: 6.766 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003515/1.966, allocations: 294.2 kB / 0.6406 GB, free: 6.438 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.195e-05/1.966, allocations: 17.12 kB / 0.6406 GB, free: 6.422 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.773e-05/1.966, allocations: 21.88 kB / 0.6406 GB, free: 6.402 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004671/1.967, allocations: 312.3 kB / 0.6409 GB, free: 6.078 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.365e-05/1.967, allocations: 8.562 kB / 0.6409 GB, free: 6.07 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.086e-05/1.967, allocations: 8 kB / 0.6409 GB, free: 6.062 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.911e-05/1.967, allocations: 17.17 kB / 0.6409 GB, free: 6.047 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002987/1.967, allocations: 202 kB / 0.6411 GB, free: 5.852 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.03724/2.004, allocations: 18.23 MB / 0.6589 GB, free: 1.781 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002378/2.004, allocations: 122.5 kB / 0.6591 GB, free: 1.652 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001186/2.004, allocations: 88.91 kB / 0.6591 GB, free: 1.562 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1543/2.159, allocations: 77.74 MB / 0.7351 GB, free: 11.06 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.887e-05/2.159, allocations: 34.56 kB / 0.7351 GB, free: 11.02 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=34): time 2.705e-06/2.159, allocations: 0 / 0.7351 GB, free: 11.02 MB / 0.6075 GB Notification: Performance of matching and sorting (n=34): time 0.001359/2.16, allocations: 495.4 kB / 0.7356 GB, free: 10.5 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.446e-05/2.16, allocations: 55.41 kB / 0.7356 GB, free: 10.44 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005296/2.161, allocations: 356.5 kB / 0.736 GB, free: 10.08 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.265e-05/2.161, allocations: 30.36 kB / 0.736 GB, free: 10.04 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002019/2.161, allocations: 180.7 kB / 0.7362 GB, free: 9.859 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001086/2.161, allocations: 118.9 kB / 0.7363 GB, free: 9.742 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001034/2.161, allocations: 49.69 kB / 0.7363 GB, free: 9.688 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001841/2.161, allocations: 346.8 kB / 0.7367 GB, free: 9.34 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001509/2.162, allocations: 87.97 kB / 0.7367 GB, free: 9.254 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001754/2.162, allocations: 136.2 kB / 0.7369 GB, free: 9.105 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003558/2.162, allocations: 252.6 kB / 0.7371 GB, free: 8.848 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/2.162, allocations: 4 kB / 0.7371 GB, free: 8.844 MB / 0.6075 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0005883/2.163, allocations: 346.9 kB / 0.7374 GB, free: 8.496 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.407e-05/2.163, allocations: 8 kB / 0.7375 GB, free: 8.488 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.677e-06/2.163, allocations: 0 / 0.7375 GB, free: 8.488 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008842/2.164, allocations: 140.8 kB / 0.7376 GB, free: 8.348 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.037e-05/2.164, allocations: 15.92 kB / 0.7376 GB, free: 8.332 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006579/2.164, allocations: 0.6098 MB / 0.7382 GB, free: 7.699 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001718/2.164, allocations: 33.08 kB / 0.7382 GB, free: 7.668 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.862e-05/2.164, allocations: 4 kB / 0.7382 GB, free: 7.664 MB / 0.6075 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.0002178/2.165, allocations: 166.9 kB / 0.7384 GB, free: 7.492 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.537e-05/2.165, allocations: 31.77 kB / 0.7384 GB, free: 7.461 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009888/2.166, allocations: 0.6272 MB / 0.739 GB, free: 6.766 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0004521/2.166, allocations: 255.4 kB / 0.7393 GB, free: 6.508 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.712e-06/2.166, allocations: 0 / 0.7393 GB, free: 6.508 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.227e-06/2.166, allocations: 0 / 0.7393 GB, free: 6.508 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001187/2.167, allocations: 0.8281 MB / 0.7401 GB, free: 5.621 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.815e-06/2.167, allocations: 4 kB / 0.7401 GB, free: 5.617 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.715e-05/2.167, allocations: 16.88 kB / 0.7401 GB, free: 5.602 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000349/2.168, allocations: 100.8 kB / 0.7402 GB, free: 5.5 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.494e-05/2.168, allocations: 7.984 kB / 0.7402 GB, free: 5.492 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005541/2.168, allocations: 0.6438 MB / 0.7408 GB, free: 4.824 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/2.168, allocations: 0.9375 kB / 0.7408 GB, free: 4.824 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005546/2.169, allocations: 387.2 kB / 0.7412 GB, free: 4.43 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001283/2.169, allocations: 118.7 kB / 0.7413 GB, free: 4.297 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.859e-05/2.169, allocations: 17.52 kB / 0.7413 GB, free: 4.281 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001146/2.169, allocations: 4.062 kB / 0.7413 GB, free: 4.277 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.631e-05/2.169, allocations: 11.98 kB / 0.7414 GB, free: 4.266 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.019e-05/2.169, allocations: 4 kB / 0.7414 GB, free: 4.262 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0003797/2.17, allocations: 331.1 kB / 0.7417 GB, free: 3.938 MB / 0.6075 GB Notification: Performance of sort global known variables: time 8e-08/2.17, allocations: 0 / 0.7417 GB, free: 3.938 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.003135/2.173, allocations: 1.22 MB / 0.7429 GB, free: 2.715 MB / 0.6075 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.005734/2.179, allocations: 1.755 MB / 0.7446 GB, free: 0.9844 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0006613/2.179, allocations: 257.5 kB / 0.7448 GB, free: 0.7266 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 4.448e-06/2.179, allocations: 4.25 kB / 0.7448 GB, free: 0.7227 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0002825/2.18, allocations: 109.5 kB / 0.7449 GB, free: 0.6172 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007261/2.18, allocations: 132.8 kB / 0.7451 GB, free: 0.5 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001276/2.182, allocations: 0.6974 MB / 0.7457 GB, free: 15.77 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004467/2.182, allocations: 0.8029 MB / 0.7465 GB, free: 14.94 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.442e-05/2.182, allocations: 27.42 kB / 0.7465 GB, free: 14.91 MB / 0.6231 GB Notification: Performance of SimCode: time 5.71e-07/2.182, allocations: 8 kB / 0.7466 GB, free: 14.9 MB / 0.6231 GB Notification: Performance of Templates: time 0.03887/2.221, allocations: 26.13 MB / 0.7721 GB, free: 5.234 MB / 0.6387 GB [Timeout remaining time 657] make -j1 -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.makefile [Timeout 660] (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) [Timeout 480]