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.9924/0.9924, allocations: 120.4 MB / 140.1 MB, free: 40 kB / 126.1 MB " [Timeout remaining time 179] Using package ThermoSysPro with version 4.1 (/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 0.0005571/0.0005571, allocations: 15.97 kB / 217.7 MB, free: 13.05 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05797/0.05852, allocations: 33.36 MB / 251 MB, free: 11.62 MB / 238.1 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.76/1.819, allocations: 254 MB / 0.4932 GB, free: 14.61 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.04364/1.863, allocations: 30.81 MB / 0.5233 GB, free: 15.94 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001923/1.863, allocations: 4 kB / 0.5233 GB, free: 15.94 MB / 494.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 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 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 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 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.0004755/1.863, allocations: 156.1 kB / 0.5234 GB, free: 15.79 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002938/1.864, allocations: 177.8 kB / 0.5236 GB, free: 15.61 MB / 494.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 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 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 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 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 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 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 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.02525/1.889, allocations: 9.843 MB / 0.5332 GB, free: 5.758 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006314/1.889, allocations: 394.2 kB / 0.5336 GB, free: 5.371 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002259/1.89, allocations: 110.7 kB / 0.5337 GB, free: 5.262 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003178/1.89, allocations: 179.3 kB / 0.5339 GB, free: 5.086 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002482/1.89, allocations: 167.3 kB / 0.534 GB, free: 4.922 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.369e-05/1.89, allocations: 20 kB / 0.534 GB, free: 4.902 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03169/1.922, allocations: 16.83 MB / 0.5505 GB, free: 4.047 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001763/1.922, allocations: 83.62 kB / 0.5506 GB, free: 3.965 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001959/1.922, allocations: 123.3 kB / 0.5507 GB, free: 3.844 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.01799/1.94, allocations: 8.548 MB / 0.559 GB, free: 11.27 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/1.94, allocations: 0 / 0.559 GB, free: 11.27 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.463e-06/1.94, allocations: 3.938 kB / 0.559 GB, free: 11.27 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 8.266e-06/1.94, allocations: 0 / 0.559 GB, free: 11.27 MB / 0.5137 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.003896/1.944, allocations: 1.5 MB / 0.5605 GB, free: 9.73 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.808e-05/1.944, allocations: 12.03 kB / 0.5605 GB, free: 9.719 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.652e-05/1.944, allocations: 43.72 kB / 0.5605 GB, free: 9.676 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003282/1.945, allocations: 236 kB / 0.5608 GB, free: 9.422 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.731e-05/1.945, allocations: 20.44 kB / 0.5608 GB, free: 9.398 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.129e-05/1.945, allocations: 16 kB / 0.5608 GB, free: 9.383 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005032/1.945, allocations: 331.7 kB / 0.5611 GB, free: 9.039 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.487e-05/1.945, allocations: 3.984 kB / 0.5611 GB, free: 9.035 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.738e-05/1.945, allocations: 8 kB / 0.5611 GB, free: 9.027 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.469e-05/1.945, allocations: 8 kB / 0.5611 GB, free: 9.02 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000329/1.946, allocations: 217.1 kB / 0.5613 GB, free: 8.805 MB / 0.5137 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.03902/1.985, allocations: 10.87 MB / 0.572 GB, free: 13.88 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002358/1.985, allocations: 118.5 kB / 0.5721 GB, free: 13.75 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001281/1.985, allocations: 93.89 kB / 0.5722 GB, free: 13.66 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1617/2.147, allocations: 43.59 MB / 0.6147 GB, free: 2.016 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.223e-05/2.147, allocations: 30.56 kB / 0.6148 GB, free: 1.977 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=34): time 2.084e-06/2.147, allocations: 0 / 0.6148 GB, free: 1.977 MB / 0.5606 GB Notification: Performance of matching and sorting (n=34): time 0.001249/2.148, allocations: 424.4 kB / 0.6152 GB, free: 1.555 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.782e-05/2.148, allocations: 55.34 kB / 0.6152 GB, free: 1.488 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004499/2.149, allocations: 312.2 kB / 0.6155 GB, free: 1.18 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.291e-05/2.149, allocations: 29.7 kB / 0.6155 GB, free: 1.145 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001622/2.149, allocations: 196.5 kB / 0.6157 GB, free: 0.9453 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 9.462e-05/2.149, allocations: 115 kB / 0.6158 GB, free: 0.832 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.935e-05/2.149, allocations: 45.69 kB / 0.6159 GB, free: 0.7812 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001719/2.149, allocations: 342.8 kB / 0.6162 GB, free: 448 kB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001451/2.149, allocations: 91.97 kB / 0.6163 GB, free: 356 kB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001828/2.149, allocations: 140.2 kB / 0.6164 GB, free: 200 kB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003603/2.15, allocations: 252.7 kB / 0.6167 GB, free: 15.93 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.28e-06/2.15, allocations: 4 kB / 0.6167 GB, free: 15.93 MB / 0.5762 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0005771/2.15, allocations: 349.5 kB / 0.617 GB, free: 15.58 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.977e-05/2.15, allocations: 4 kB / 0.617 GB, free: 15.57 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.355e-05/2.15, allocations: 4 kB / 0.617 GB, free: 15.57 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008891/2.151, allocations: 140.8 kB / 0.6171 GB, free: 15.43 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.248e-05/2.151, allocations: 15.92 kB / 0.6172 GB, free: 15.41 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000654/2.152, allocations: 0.611 MB / 0.6178 GB, free: 14.78 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001234/2.152, allocations: 27.75 kB / 0.6178 GB, free: 14.75 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.976e-05/2.152, allocations: 11.98 kB / 0.6178 GB, free: 14.74 MB / 0.5762 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.0001815/2.152, allocations: 157.8 kB / 0.618 GB, free: 14.57 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.565e-05/2.152, allocations: 23.81 kB / 0.618 GB, free: 14.55 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009567/2.153, allocations: 0.6387 MB / 0.6186 GB, free: 13.83 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0004856/2.154, allocations: 268.7 kB / 0.6189 GB, free: 13.56 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.33e-05/2.154, allocations: 7.984 kB / 0.6189 GB, free: 13.55 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/2.154, allocations: 0 / 0.6189 GB, free: 13.55 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001164/2.155, allocations: 0.7053 MB / 0.6195 GB, free: 12.81 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.629e-06/2.155, allocations: 0 / 0.6195 GB, free: 12.81 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.311e-05/2.155, allocations: 19.98 kB / 0.6196 GB, free: 12.79 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003968/2.155, allocations: 104.8 kB / 0.6197 GB, free: 12.68 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.458e-05/2.155, allocations: 8 kB / 0.6197 GB, free: 12.68 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006528/2.156, allocations: 0.646 MB / 0.6203 GB, free: 12 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/2.156, allocations: 0 / 0.6203 GB, free: 12 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005859/2.157, allocations: 383.8 kB / 0.6207 GB, free: 11.61 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 9.336e-05/2.157, allocations: 43.8 kB / 0.6207 GB, free: 11.57 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.268e-05/2.157, allocations: 15.89 kB / 0.6207 GB, free: 11.55 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001138/2.157, allocations: 8 kB / 0.6207 GB, free: 11.55 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.061e-05/2.157, allocations: 11.97 kB / 0.6207 GB, free: 11.54 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.106e-05/2.157, allocations: 7.938 kB / 0.6208 GB, free: 11.53 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0003909/2.157, allocations: 307.1 kB / 0.621 GB, free: 11.23 MB / 0.5762 GB Notification: Performance of sort global known variables: time 8e-08/2.157, allocations: 0 / 0.621 GB, free: 11.23 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.003302/2.161, allocations: 1.224 MB / 0.6222 GB, free: 10 MB / 0.5762 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.005596/2.166, allocations: 1.764 MB / 0.624 GB, free: 8.227 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0008008/2.167, allocations: 261.6 kB / 0.6242 GB, free: 7.965 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/2.167, allocations: 4.062 kB / 0.6242 GB, free: 7.961 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0003295/2.167, allocations: 109.3 kB / 0.6243 GB, free: 7.855 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007991/2.168, allocations: 111.7 kB / 0.6244 GB, free: 7.75 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001226/2.169, allocations: 0.6627 MB / 0.6251 GB, free: 7.059 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002261/2.17, allocations: 200.7 kB / 0.6253 GB, free: 6.844 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 9.45e-05/2.17, allocations: 25.95 kB / 0.6253 GB, free: 6.82 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.485e-05/2.17, allocations: 20.5 kB / 0.6253 GB, free: 6.801 MB / 0.5762 GB Notification: Performance of SimCode: time 4.81e-07/2.17, allocations: 0 / 0.6253 GB, free: 6.801 MB / 0.5762 GB Notification: Performance of Templates: time 0.06827/2.238, allocations: 42.5 MB / 0.6668 GB, free: 12.38 MB / 0.6231 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 -s ida -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 8.518130684038624] Failed to read output from testmodel.py, exit status != 0: 2.517742933006957 2.526551368 0.5839164219999999 Calling exit ...