Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.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.8351/0.8351, 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.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve") translateModel(ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.0005725/0.0005725, allocations: 19.97 kB / 217.7 MB, free: 13.03 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05856/0.05914, allocations: 33.37 MB / 251.1 MB, free: 11.6 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.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve): time 1.747/1.807, allocations: 254.1 MB / 0.4933 GB, free: 14.88 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.2179/2.024, allocations: 165 MB / 0.6544 GB, free: 9.488 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003496/2.025, allocations: 19.88 kB / 0.6545 GB, free: 9.469 MB / 0.6075 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/Fluid/BoundaryConditions/SourceP.mo:59:3-60:65:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/Fluid/BoundaryConditions/SinkP.mo:47:3-48:67:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/Fluid/PressureLosses/ControlValve.mo:44:3-45:68:writable] Warning: Connector C1 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/Fluid/PressureLosses/ControlValve.mo:46:3-47:66:writable] Warning: Connector C2 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.0002868/2.025, allocations: 92.42 kB / 0.6545 GB, free: 9.379 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0003756/2.025, allocations: 178.9 kB / 0.6547 GB, free: 9.203 MB / 0.6075 GB [/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. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/Properties/Fluid/derDensity_derP_derh.mo:63:5-63:84:writable] Warning: T 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.03053/2.056, allocations: 11.6 MB / 0.666 GB, free: 13.59 MB / 0.6231 GB Notification: Performance of NFFlatten.flatten: time 0.0006301/2.057, allocations: 442.7 kB / 0.6665 GB, free: 13.15 MB / 0.6231 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003062/2.057, allocations: 185.2 kB / 0.6666 GB, free: 12.97 MB / 0.6231 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002333/2.057, allocations: 187.3 kB / 0.6668 GB, free: 12.79 MB / 0.6231 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002958/2.057, allocations: 219 kB / 0.667 GB, free: 12.57 MB / 0.6231 GB Notification: Performance of NFPackage.collectConstants: time 5.494e-05/2.058, allocations: 32 kB / 0.6671 GB, free: 12.54 MB / 0.6231 GB Notification: Performance of NFFlatten.collectFunctions: time 0.3412/2.399, allocations: 18.67 MB / 0.6853 GB, free: 14.74 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.0002304/2.399, allocations: 115.1 kB / 0.6854 GB, free: 14.74 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.0002578/2.399, allocations: 179.1 kB / 0.6856 GB, free: 14.74 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.02083/2.42, allocations: 9.906 MB / 0.6952 GB, free: 14.47 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 5.67e-06/2.42, allocations: 0 / 0.6952 GB, free: 14.47 MB / 0.6231 GB Notification: Performance of FrontEnd: time 2.034e-06/2.42, allocations: 1.656 kB / 0.6953 GB, free: 14.47 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 1.014e-05/2.42, allocations: 0 / 0.6953 GB, free: 14.47 MB / 0.6231 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 87 * Number of variables: 87 Notification: Performance of Generate backend data structure: time 0.004986/2.425, allocations: 1.871 MB / 0.6971 GB, free: 13.38 MB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 3.428e-05/2.425, allocations: 10.22 kB / 0.6971 GB, free: 13.38 MB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.878e-05/2.425, allocations: 62.12 kB / 0.6971 GB, free: 13.35 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003869/2.426, allocations: 307.6 kB / 0.6974 GB, free: 13.17 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.54e-05/2.426, allocations: 23.22 kB / 0.6975 GB, free: 13.17 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.567e-05/2.426, allocations: 40.5 kB / 0.6975 GB, free: 13.17 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004627/2.426, allocations: 378.1 kB / 0.6979 GB, free: 13.07 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.436e-05/2.426, allocations: 5.297 kB / 0.6979 GB, free: 13.07 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.512e-05/2.426, allocations: 12.69 kB / 0.6979 GB, free: 13.07 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.867e-06/2.426, allocations: 11.66 kB / 0.6979 GB, free: 13.07 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003755/2.427, allocations: 266.2 kB / 0.6981 GB, free: 13.07 MB / 0.6231 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.006809/2.433, allocations: 3.179 MB / 0.7012 GB, free: 12.38 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001859/2.434, allocations: 111.6 kB / 0.7014 GB, free: 12.36 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.824e-05/2.434, allocations: 46.16 kB / 0.7014 GB, free: 12.35 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2227/2.656, allocations: 67.14 MB / 0.767 GB, free: 15.2 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.951e-05/2.656, allocations: 30.56 kB / 0.767 GB, free: 15.16 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=7): time 1.773e-06/2.656, allocations: 0 / 0.767 GB, free: 15.16 MB / 0.6544 GB Notification: Performance of matching and sorting (n=7): time 0.0009132/2.657, allocations: 242 kB / 0.7672 GB, free: 14.95 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.135e-05/2.657, allocations: 56.61 kB / 0.7673 GB, free: 14.88 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005628/2.658, allocations: 443.3 kB / 0.7677 GB, free: 14.52 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 1.98e-05/2.658, allocations: 29.7 kB / 0.7677 GB, free: 14.49 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.000196/2.658, allocations: 273.4 kB / 0.768 GB, free: 14.27 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 2.667e-05/2.658, allocations: 27.38 kB / 0.768 GB, free: 14.25 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.053e-05/2.658, allocations: 62.64 kB / 0.7681 GB, free: 14.2 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001716/2.658, allocations: 344.1 kB / 0.7684 GB, free: 13.87 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001228/2.658, allocations: 64.97 kB / 0.7685 GB, free: 13.82 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002067/2.659, allocations: 160.2 kB / 0.7686 GB, free: 13.64 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003134/2.659, allocations: 237.7 kB / 0.7688 GB, free: 13.42 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/2.659, allocations: 7 kB / 0.7688 GB, free: 13.42 MB / 0.6544 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005906/2.66, allocations: 304.1 kB / 0.7691 GB, free: 13.19 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.682e-05/2.66, allocations: 4 kB / 0.7691 GB, free: 13.18 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.468e-06/2.66, allocations: 4.438 kB / 0.7691 GB, free: 13.18 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008511/2.66, allocations: 120.3 kB / 0.7693 GB, free: 13.07 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001488/2.661, allocations: 39.2 kB / 0.7693 GB, free: 13.03 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005511/2.661, allocations: 0.573 MB / 0.7699 GB, free: 12.46 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001905/2.661, allocations: 23.72 kB / 0.7699 GB, free: 12.44 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.408e-05/2.661, allocations: 15.98 kB / 0.7699 GB, free: 12.42 MB / 0.6544 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 6 (SourceP1.C.ftype,PuitsP1.fluid,ControlValve.fluid,SourceP1.fluid1,SourceP1.C.diff_on_2,ControlValve.C2.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (24): * Single equations (assignments): 23 * 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,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0002022/2.662, allocations: 176.8 kB / 0.7701 GB, free: 12.27 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.182e-05/2.662, allocations: 39.59 kB / 0.7701 GB, free: 12.23 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000508/2.662, allocations: 221.3 kB / 0.7703 GB, free: 12.05 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.196e-06/2.662, allocations: 0 / 0.7703 GB, free: 12.05 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.027e-06/2.662, allocations: 0 / 0.7703 GB, free: 12.05 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/2.662, allocations: 0 / 0.7703 GB, free: 12.05 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003205/2.662, allocations: 279.6 kB / 0.7706 GB, free: 11.8 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/2.662, allocations: 0 / 0.7706 GB, free: 11.8 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.143e-05/2.662, allocations: 4 kB / 0.7706 GB, free: 11.79 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004575/2.663, allocations: 75.47 kB / 0.7707 GB, free: 11.72 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.077e-06/2.663, allocations: 0 / 0.7707 GB, free: 11.72 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005076/2.663, allocations: 0.5693 MB / 0.7712 GB, free: 11.15 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/2.663, allocations: 0 / 0.7712 GB, free: 11.15 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004034/2.664, allocations: 210.8 kB / 0.7714 GB, free: 10.95 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001211/2.664, allocations: 57.84 kB / 0.7715 GB, free: 10.91 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.558e-05/2.664, allocations: 4 kB / 0.7715 GB, free: 10.9 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.456e-05/2.664, allocations: 1.203 kB / 0.7715 GB, free: 10.9 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.42e-05/2.664, allocations: 7.922 kB / 0.7715 GB, free: 10.89 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.436e-06/2.664, allocations: 8 kB / 0.7715 GB, free: 10.89 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.0003541/2.664, allocations: 305 kB / 0.7718 GB, free: 10.65 MB / 0.6544 GB Notification: Performance of sort global known variables: time 9e-08/2.664, allocations: 0 / 0.7718 GB, free: 10.65 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.004543/2.669, allocations: 1.489 MB / 0.7732 GB, free: 9.262 MB / 0.6544 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 (4): * Single equations (assignments): 3 * 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.00733/2.676, allocations: 2.229 MB / 0.7754 GB, free: 7.344 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0006163/2.677, allocations: 164.2 kB / 0.7756 GB, free: 7.227 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 3.556e-06/2.677, allocations: 4.125 kB / 0.7756 GB, free: 7.223 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0001805/2.677, allocations: 58.16 kB / 0.7756 GB, free: 7.176 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004858/2.678, allocations: 62.44 kB / 0.7757 GB, free: 7.141 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001388/2.679, allocations: 0.6647 MB / 0.7763 GB, free: 6.484 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002327/2.679, allocations: 204.4 kB / 0.7765 GB, free: 6.273 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.0001415/2.679, allocations: 48.33 kB / 0.7766 GB, free: 6.227 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.798e-05/2.679, allocations: 28.5 kB / 0.7766 GB, free: 6.199 MB / 0.6544 GB Notification: Performance of SimCode: time 4.21e-07/2.679, allocations: 0 / 0.7766 GB, free: 6.199 MB / 0.6544 GB Notification: Performance of Templates: time 0.07044/2.75, allocations: 45.96 MB / 0.8215 GB, free: 8.391 MB / 0.7012 GB " [Timeout remaining time 657] make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.makefile [Timeout 660] (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.sim & ./ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve -abortSlowSimulation -alarm=480 -s ida -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 9.080230892985128] Failed to read output from testmodel.py, exit status != 0: 2.906185764935799 2.920210002 0.496813925 Calling exit ...