Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8994/0.8994, allocations: 152.6 MB / 171.4 MB, free: 6.008 MB / 142.1 MB " [Timeout remaining time 179] 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.TestPipePressureLoss,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss") translateModel(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.0005944/0.0005944, allocations: 15.97 kB / 248.4 MB, free: 5.695 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1735/0.1741, allocations: 33.05 MB / 281.5 MB, free: 3.559 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.TestPipePressureLoss): time 1.57/1.744, allocations: 301.1 MB / 0.5689 GB, free: 5.605 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.2839/2.028, allocations: 34.61 MB / 0.6027 GB, free: 5.992 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002898/2.029, allocations: 4 kB / 0.6027 GB, free: 5.992 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/PipePressureLoss.mo:35:3-37:42: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/PipePressureLoss.mo:38:3-40:37: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.0004291/2.029, allocations: 129.5 kB / 0.6028 GB, free: 5.93 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002597/2.029, allocations: 115.4 kB / 0.6029 GB, free: 5.848 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.02924/2.058, allocations: 9.818 MB / 0.6125 GB, free: 1.352 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004943/2.059, allocations: 349.2 kB / 0.6129 GB, free: 1.141 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00017/2.059, allocations: 88.08 kB / 0.6129 GB, free: 1.09 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001976/2.059, allocations: 150 kB / 0.6131 GB, free: 1 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001451/2.059, allocations: 111.7 kB / 0.6132 GB, free: 0.9297 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 2.752e-05/2.059, allocations: 18.06 kB / 0.6132 GB, free: 0.9297 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03668/2.096, allocations: 17.91 MB / 0.6307 GB, free: 1.441 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 9.091e-05/2.096, allocations: 47.78 kB / 0.6307 GB, free: 1.395 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002456/2.097, allocations: 132.5 kB / 0.6309 GB, free: 1.266 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02127/2.118, allocations: 8.432 MB / 0.6391 GB, free: 8.809 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.851e-06/2.118, allocations: 0 / 0.6391 GB, free: 8.809 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.643e-06/2.118, allocations: 5.719 kB / 0.6391 GB, free: 8.805 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 8.255e-06/2.118, allocations: 0 / 0.6391 GB, free: 8.805 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.003969/2.122, allocations: 1.412 MB / 0.6405 GB, free: 7.355 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.65e-05/2.122, allocations: 12.84 kB / 0.6405 GB, free: 7.344 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.741e-05/2.122, allocations: 28.94 kB / 0.6405 GB, free: 7.316 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002384/2.122, allocations: 182.6 kB / 0.6407 GB, free: 7.113 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.248e-05/2.122, allocations: 16.44 kB / 0.6407 GB, free: 7.098 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.705e-05/2.122, allocations: 16.69 kB / 0.6407 GB, free: 7.082 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004719/2.123, allocations: 297.3 kB / 0.641 GB, free: 6.77 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.171e-05/2.123, allocations: 1.938 kB / 0.641 GB, free: 6.77 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.313e-05/2.123, allocations: 12 kB / 0.641 GB, free: 6.758 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.799e-05/2.123, allocations: 15.92 kB / 0.641 GB, free: 6.742 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002722/2.123, allocations: 166.3 kB / 0.6412 GB, free: 6.582 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.03787/2.161, allocations: 11.25 MB / 0.6522 GB, free: 11.19 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003265/2.161, allocations: 116 kB / 0.6523 GB, free: 11.07 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001144/2.161, allocations: 75.91 kB / 0.6524 GB, free: 11 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1491/2.31, allocations: 42.45 MB / 0.6938 GB, free: 0.5078 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.326e-05/2.31, allocations: 34.56 kB / 0.6939 GB, free: 476 kB / 0.545 GB Notification: Performance of pre-optimization done (n=34): time 2.465e-06/2.31, allocations: 0 / 0.6939 GB, free: 476 kB / 0.545 GB Notification: Performance of matching and sorting (n=34): time 0.001137/2.312, allocations: 370.4 kB / 0.6942 GB, free: 96 kB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.033e-05/2.312, allocations: 59.41 kB / 0.6943 GB, free: 24 kB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002849/2.312, allocations: 215.1 kB / 0.6945 GB, free: 15.8 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.392e-05/2.312, allocations: 29.7 kB / 0.6945 GB, free: 15.77 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001167/2.312, allocations: 144.8 kB / 0.6946 GB, free: 15.62 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 9.323e-05/2.312, allocations: 119.6 kB / 0.6948 GB, free: 15.5 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.906e-05/2.312, allocations: 49.66 kB / 0.6948 GB, free: 15.45 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001551/2.312, allocations: 338.8 kB / 0.6951 GB, free: 15.11 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001187/2.312, allocations: 75.97 kB / 0.6952 GB, free: 15.04 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001469/2.313, allocations: 117.5 kB / 0.6953 GB, free: 14.91 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002776/2.313, allocations: 211.7 kB / 0.6955 GB, free: 14.69 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.444e-06/2.313, allocations: 4 kB / 0.6955 GB, free: 14.68 MB / 0.5606 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.000468/2.313, allocations: 302.2 kB / 0.6958 GB, free: 14.38 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.659e-05/2.313, allocations: 4 kB / 0.6958 GB, free: 14.38 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.278e-06/2.313, allocations: 4 kB / 0.6958 GB, free: 14.37 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009496/2.314, allocations: 160.8 kB / 0.696 GB, free: 14.21 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.914e-05/2.314, allocations: 20.44 kB / 0.696 GB, free: 14.19 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006522/2.315, allocations: 0.6226 MB / 0.6966 GB, free: 13.54 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001213/2.315, allocations: 43.23 kB / 0.6966 GB, free: 13.5 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.41e-05/2.315, allocations: 4 kB / 0.6966 GB, free: 13.5 MB / 0.5606 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 (pipePressureLoss.C2.b,pipePressureLoss.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 (11): * Single equations (assignments): 8 * 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,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001493/2.315, allocations: 133.8 kB / 0.6968 GB, free: 13.36 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.999e-05/2.315, allocations: 23.84 kB / 0.6968 GB, free: 13.34 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008122/2.316, allocations: 0.5775 MB / 0.6974 GB, free: 12.69 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003877/2.317, allocations: 219.4 kB / 0.6976 GB, free: 12.46 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/2.317, allocations: 0 / 0.6976 GB, free: 12.46 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.231e-06/2.317, allocations: 4 kB / 0.6976 GB, free: 12.46 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001042/2.318, allocations: 0.7066 MB / 0.6983 GB, free: 11.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.036e-06/2.318, allocations: 1.312 kB / 0.6983 GB, free: 11.7 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.781e-05/2.318, allocations: 15.98 kB / 0.6983 GB, free: 11.69 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003982/2.318, allocations: 116.8 kB / 0.6984 GB, free: 11.57 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.17e-05/2.318, allocations: 3.938 kB / 0.6984 GB, free: 11.57 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000553/2.319, allocations: 0.6591 MB / 0.699 GB, free: 10.88 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/2.319, allocations: 0 / 0.699 GB, free: 10.88 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004906/2.319, allocations: 342.5 kB / 0.6994 GB, free: 10.53 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 6.686e-05/2.319, allocations: 31.78 kB / 0.6994 GB, free: 10.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.706e-05/2.319, allocations: 19.86 kB / 0.6994 GB, free: 10.48 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001029/2.319, allocations: 1.656 kB / 0.6994 GB, free: 10.48 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.4e-05/2.319, allocations: 12.83 kB / 0.6994 GB, free: 10.47 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.696e-06/2.319, allocations: 4 kB / 0.6994 GB, free: 10.46 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0002631/2.32, allocations: 243.1 kB / 0.6997 GB, free: 10.22 MB / 0.5606 GB Notification: Performance of sort global known variables: time 8.1e-08/2.32, allocations: 0 / 0.6997 GB, free: 10.22 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.003207/2.323, allocations: 1.193 MB / 0.7008 GB, free: 9.027 MB / 0.5606 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 (11): * Single equations (assignments): 10 * 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,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004984/2.328, allocations: 1.744 MB / 0.7025 GB, free: 7.309 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0005837/2.328, allocations: 215 kB / 0.7027 GB, free: 7.094 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/2.328, allocations: 0 / 0.7027 GB, free: 7.094 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.00022/2.329, allocations: 79.91 kB / 0.7028 GB, free: 7.016 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007936/2.329, allocations: 121.1 kB / 0.7029 GB, free: 6.914 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009737/2.33, allocations: 0.5359 MB / 0.7034 GB, free: 6.352 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004052/2.331, allocations: 0.7673 MB / 0.7042 GB, free: 5.559 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 8.479e-05/2.331, allocations: 16.53 kB / 0.7042 GB, free: 5.547 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.183e-05/2.331, allocations: 19.44 kB / 0.7042 GB, free: 5.531 MB / 0.5606 GB Notification: Performance of SimCode: time 4.41e-07/2.331, allocations: 4 kB / 0.7042 GB, free: 5.527 MB / 0.5606 GB Notification: Performance of Templates: time 0.06057/2.392, allocations: 42.69 MB / 0.7459 GB, free: 11.3 MB / 0.6075 GB " [Timeout remaining time 657] make -j1 -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.makefile [Timeout 660] (rm -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.sim & ./ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 8.636702073737979] Failed to read output from testmodel.py, exit status != 0: 2.55063346773386 2.790096057 0.66958926 Calling exit ... <OMPython.OMCSessionZMQ object at 0x7f80f97017b0>