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 master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/package.mo): time 0.5009/0.5009, allocations: 111.6 MB / 131.2 MB, free: 4.562 MB / 122.7 MB " [Timeout remaining time 179] Using package ThermoSysPro with version 4.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/package.mo) Running command: translateModel(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve") translateModel(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.794e-06/1.794e-06, allocations: 0 / 176.1 MB, free: 9.246 MB / 170.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.377e-05/1.556e-05, allocations: 2.312 kB / 176.1 MB, free: 9.242 MB / 170.7 MB Notification: Automatically loaded package Complex 4.1.0 due to uses annotation from Modelica. Notification: Automatically loaded package ModelicaServices 4.1.0 due to uses annotation from Modelica. Notification: Automatically loaded package Modelica 4.1.0 due to usage. Notification: Performance of NFInst.instantiate(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve): time 1.027/1.027, allocations: 257 MB / 433.1 MB, free: 404 kB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.02934/1.056, allocations: 33.34 MB / 466.5 MB, free: 14.93 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001674/1.056, allocations: 4 kB / 466.5 MB, free: 14.93 MB / 426.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/WaterSteam/BoundaryConditions/SourceP.mo:19:3-20:78: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 master/WaterSteam/BoundaryConditions/SinkP.mo:19:3-20:80: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 master/WaterSteam/PressureLosses/ControlValve.mo:24:3-25:81: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 master/WaterSteam/PressureLosses/ControlValve.mo:26:3-27:79: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.0004375/1.057, allocations: 155.2 kB / 466.6 MB, free: 14.78 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002088/1.057, allocations: 171 kB / 466.8 MB, free: 14.61 MB / 426.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/Properties/WaterSteam/IF97_packages.mo:470:9-470: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 master/Properties/WaterSteam/IF97_packages.mo:525:9-525: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 master/Properties/WaterSteam/IF97_packages.mo:708:9-708: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 master/Properties/WaterSteamSimple/prop4_Ph.mo:51:3-51: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 master/Properties/WaterSteamSimple/prop4_Ph.mo:51:3-51: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 master/Properties/WaterSteamSimple/prop4_Ph_der.mo:118:3-118:151: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 master/Properties/WaterSteamSimple/prop4_Ph_der.mo:118:3-118:151: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.01878/1.076, allocations: 9.955 MB / 476.7 MB, free: 4.609 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004825/1.076, allocations: 406 kB / 477.1 MB, free: 4.211 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001923/1.076, allocations: 112.8 kB / 477.2 MB, free: 4.098 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002959/1.077, allocations: 251.3 kB / 477.5 MB, free: 3.852 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001672/1.077, allocations: 139.7 kB / 477.6 MB, free: 3.715 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 2.899e-05/1.077, allocations: 20 kB / 477.6 MB, free: 3.695 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2208/1.298, allocations: 16.83 MB / 494.5 MB, free: 8.375 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001238/1.298, allocations: 77.12 kB / 494.5 MB, free: 8.375 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001548/1.298, allocations: 96.48 kB / 494.6 MB, free: 8.375 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01414/1.312, allocations: 10.82 MB / 0.4936 GB, free: 4.711 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.501e-06/1.312, allocations: 0 / 0.4936 GB, free: 4.711 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.904e-06/1.312, allocations: 0 / 0.4936 GB, free: 4.711 MB / 426.7 MB Notification: Performance of Transformations before backend: time 6.542e-06/1.312, allocations: 3.562 kB / 0.4936 GB, free: 4.711 MB / 426.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.002934/1.315, allocations: 1.608 MB / 0.4952 GB, free: 3.551 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.114e-05/1.315, allocations: 14.52 kB / 0.4952 GB, free: 3.547 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.238e-05/1.315, allocations: 48.92 kB / 0.4953 GB, free: 3.523 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001845/1.315, allocations: 230.4 kB / 0.4955 GB, free: 3.32 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.201e-05/1.315, allocations: 14.72 kB / 0.4955 GB, free: 3.316 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.846e-05/1.315, allocations: 19.62 kB / 0.4955 GB, free: 3.309 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002702/1.316, allocations: 271.6 kB / 0.4958 GB, free: 3.109 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.829e-06/1.316, allocations: 0.7812 kB / 0.4958 GB, free: 3.109 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.469e-05/1.316, allocations: 6.406 kB / 0.4958 GB, free: 3.105 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.706e-05/1.316, allocations: 15.64 kB / 0.4958 GB, free: 3.098 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001216/1.316, allocations: 113.4 kB / 0.4959 GB, free: 3.07 MB / 426.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.01697/1.333, allocations: 11.2 MB / 0.5068 GB, free: 11.96 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001357/1.333, allocations: 79.03 kB / 0.5069 GB, free: 11.87 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.149e-05/1.333, allocations: 51.67 kB / 0.507 GB, free: 11.81 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07231/1.405, allocations: 43.75 MB / 0.5497 GB, free: 96 kB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.269e-05/1.405, allocations: 33.39 kB / 0.5497 GB, free: 52 kB / 474.7 MB Notification: Performance of pre-optimization done (n=34): time 3.707e-06/1.405, allocations: 1.125 kB / 0.5497 GB, free: 52 kB / 474.7 MB Notification: Performance of matching and sorting (n=34): time 0.0006998/1.406, allocations: 284.5 kB / 0.55 GB, free: 15.77 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.72e-05/1.406, allocations: 55.41 kB / 0.55 GB, free: 15.7 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002392/1.406, allocations: 338.2 kB / 0.5504 GB, free: 15.35 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 1.293e-05/1.406, allocations: 25.7 kB / 0.5504 GB, free: 15.32 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001059/1.406, allocations: 243.3 kB / 0.5506 GB, free: 15.08 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.114e-05/1.406, allocations: 114.1 kB / 0.5507 GB, free: 14.97 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.862e-05/1.407, allocations: 61.08 kB / 0.5508 GB, free: 14.9 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.000134/1.407, allocations: 0.5274 MB / 0.5513 GB, free: 14.36 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.861e-05/1.407, allocations: 43.73 kB / 0.5513 GB, free: 14.32 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.496e-05/1.407, allocations: 103.8 kB / 0.5514 GB, free: 14.2 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001535/1.407, allocations: 166.1 kB / 0.5516 GB, free: 14.02 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/1.407, allocations: 0 / 0.5516 GB, free: 14.02 MB / 490.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0002547/1.407, allocations: 243.8 kB / 0.5518 GB, free: 13.78 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.67e-05/1.407, allocations: 8 kB / 0.5518 GB, free: 13.77 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.993e-06/1.407, allocations: 0 / 0.5518 GB, free: 13.77 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003828/1.408, allocations: 87.53 kB / 0.5519 GB, free: 13.68 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.146e-05/1.408, allocations: 23.7 kB / 0.5519 GB, free: 13.66 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003876/1.408, allocations: 0.8507 MB / 0.5528 GB, free: 12.78 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.801e-05/1.408, allocations: 35.02 kB / 0.5528 GB, free: 12.75 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.077e-05/1.408, allocations: 4 kB / 0.5528 GB, free: 12.75 MB / 490.7 MB 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 8.886e-05/1.408, allocations: 160.6 kB / 0.553 GB, free: 12.58 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.145e-05/1.408, allocations: 27.81 kB / 0.553 GB, free: 12.55 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000551/1.409, allocations: 0.6556 MB / 0.5536 GB, free: 11.8 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001897/1.409, allocations: 183.4 kB / 0.5538 GB, free: 11.62 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.937e-06/1.409, allocations: 0 / 0.5538 GB, free: 11.62 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/1.409, allocations: 0 / 0.5538 GB, free: 11.62 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007455/1.41, allocations: 0.692 MB / 0.5545 GB, free: 10.89 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/1.41, allocations: 3.984 kB / 0.5545 GB, free: 10.89 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.447e-05/1.41, allocations: 19.94 kB / 0.5545 GB, free: 10.87 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001505/1.41, allocations: 77.12 kB / 0.5546 GB, free: 10.79 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.07e-05/1.41, allocations: 8.562 kB / 0.5546 GB, free: 10.78 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003105/1.41, allocations: 0.8577 MB / 0.5554 GB, free: 9.895 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/1.41, allocations: 32 / 0.5554 GB, free: 9.895 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002709/1.411, allocations: 380 kB / 0.5558 GB, free: 9.504 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.274e-05/1.411, allocations: 35.78 kB / 0.5558 GB, free: 9.469 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.694e-05/1.411, allocations: 12.58 kB / 0.5558 GB, free: 9.457 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.686e-05/1.411, allocations: 4 kB / 0.5558 GB, free: 9.453 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.8e-05/1.411, allocations: 9.156 kB / 0.5558 GB, free: 9.445 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.546e-06/1.411, allocations: 4 kB / 0.5558 GB, free: 9.441 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0002583/1.411, allocations: 287.1 kB / 0.5561 GB, free: 9.16 MB / 490.7 MB Notification: Performance of sort global known variables: time 8.1e-08/1.411, allocations: 0 / 0.5561 GB, free: 9.16 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.002226/1.413, allocations: 1.231 MB / 0.5573 GB, free: 7.926 MB / 490.7 MB 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.003059/1.416, allocations: 1.918 MB / 0.5592 GB, free: 6.246 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0003827/1.417, allocations: 210.9 kB / 0.5594 GB, free: 6.035 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/1.417, allocations: 0 / 0.5594 GB, free: 6.035 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001264/1.417, allocations: 91.92 kB / 0.5595 GB, free: 5.945 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004166/1.417, allocations: 133.9 kB / 0.5596 GB, free: 5.824 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001021/1.418, allocations: 0.597 MB / 0.5602 GB, free: 5.207 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.625e-05/1.418, allocations: 112.1 kB / 0.5603 GB, free: 5.082 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 6.772e-05/1.418, allocations: 29.05 kB / 0.5603 GB, free: 5.055 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.021e-05/1.418, allocations: 20.5 kB / 0.5604 GB, free: 5.031 MB / 490.7 MB Notification: Performance of SimCode: time 6.01e-07/1.418, allocations: 0 / 0.5604 GB, free: 5.031 MB / 490.7 MB Notification: Performance of Templates: time 0.04967/1.468, allocations: 53.58 MB / 0.6127 GB, free: 15.74 MB / 0.5417 GB " [Timeout remaining time 658] 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=240 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 5.887173953931779]