Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.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.9092/0.9092, allocations: 153.8 MB / 173.4 MB, free: 4.875 MB / 142.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.TestDynamicCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve") translateModel(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.0006066/0.0006066, allocations: 11.98 kB / 251 MB, free: 3.934 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1849/0.1855, allocations: 33.36 MB / 284.3 MB, free: 2.066 MB / 222.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.TestDynamicCheckValve): time 1.944/2.13, allocations: 307.7 MB / 0.5781 GB, free: 17.44 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.03455/2.164, allocations: 30.89 MB / 0.6083 GB, free: 2.539 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003902/2.165, allocations: 1.344 kB / 0.6083 GB, free: 2.539 MB / 478.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/DynamicCheckValve.mo:61:3-63:16: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/DynamicCheckValve.mo:64:3-65:51: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.0005877/2.165, allocations: 126.3 kB / 0.6084 GB, free: 2.484 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005599/2.166, allocations: 148.1 kB / 0.6086 GB, free: 2.391 MB / 478.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.03428/2.2, allocations: 9.862 MB / 0.6182 GB, free: 12.29 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.001123/2.201, allocations: 458.7 kB / 0.6186 GB, free: 11.84 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003559/2.202, allocations: 143.5 kB / 0.6188 GB, free: 11.7 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004726/2.202, allocations: 203.6 kB / 0.619 GB, free: 11.5 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003314/2.203, allocations: 151.2 kB / 0.6191 GB, free: 11.35 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 6.335e-05/2.203, allocations: 24 kB / 0.6191 GB, free: 11.33 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0499/2.252, allocations: 16.77 MB / 0.6355 GB, free: 10.54 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001769/2.253, allocations: 67.7 kB / 0.6356 GB, free: 10.47 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.000218/2.253, allocations: 139.3 kB / 0.6357 GB, free: 10.34 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.02253/2.275, allocations: 8.54 MB / 0.6441 GB, free: 1.773 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.191e-06/2.275, allocations: 4 kB / 0.6441 GB, free: 1.77 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.562e-06/2.275, allocations: 0 / 0.6441 GB, free: 1.77 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.707e-05/2.275, allocations: 0 / 0.6441 GB, free: 1.77 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: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.004813/2.28, allocations: 1.552 MB / 0.6456 GB, free: 180 kB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.999e-05/2.28, allocations: 11.97 kB / 0.6456 GB, free: 168 kB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002176/2.28, allocations: 56.45 kB / 0.6456 GB, free: 112 kB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003656/2.281, allocations: 204.6 kB / 0.6458 GB, free: 15.88 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001048/2.281, allocations: 79.78 kB / 0.6459 GB, free: 15.79 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.173e-05/2.281, allocations: 24 kB / 0.6459 GB, free: 15.77 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006294/2.282, allocations: 355 kB / 0.6463 GB, free: 15.4 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.291e-05/2.282, allocations: 3.938 kB / 0.6463 GB, free: 15.4 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.018e-05/2.282, allocations: 12 kB / 0.6463 GB, free: 15.39 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.927e-05/2.282, allocations: 13.03 kB / 0.6463 GB, free: 15.38 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004489/2.282, allocations: 226.3 kB / 0.6465 GB, free: 15.16 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.02061/2.303, allocations: 6.024 MB / 0.6524 GB, free: 9.07 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007165/2.303, allocations: 254.8 kB / 0.6526 GB, free: 8.809 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002424/2.304, allocations: 124.9 kB / 0.6528 GB, free: 8.684 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1763/2.48, allocations: 48.42 MB / 0.7001 GB, free: 8.219 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004692/2.48, allocations: 229.5 kB / 0.7003 GB, free: 7.98 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=48): time 2.505e-06/2.48, allocations: 0.8438 kB / 0.7003 GB, free: 7.98 MB / 0.5606 GB Notification: Performance of matching and sorting (n=48): time 0.001144/2.482, allocations: 486.4 kB / 0.7007 GB, free: 7.496 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.567e-05/2.482, allocations: 77.11 kB / 0.7008 GB, free: 7.402 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000259/2.482, allocations: 232.8 kB / 0.701 GB, free: 7.168 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 3.055e-05/2.482, allocations: 29.7 kB / 0.7011 GB, free: 7.133 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001402/2.482, allocations: 173 kB / 0.7012 GB, free: 6.961 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001237/2.482, allocations: 158.5 kB / 0.7014 GB, free: 6.805 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001081/2.482, allocations: 63.05 kB / 0.7014 GB, free: 6.738 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001834/2.483, allocations: 346.7 kB / 0.7018 GB, free: 6.391 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002129/2.483, allocations: 112.7 kB / 0.7019 GB, free: 6.281 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002466/2.483, allocations: 163.6 kB / 0.702 GB, free: 6.105 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004741/2.483, allocations: 299.2 kB / 0.7023 GB, free: 5.797 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/2.483, allocations: 0 / 0.7023 GB, free: 5.797 MB / 0.5606 GB Notification: Performance of matching and sorting (n=55) (initialization): time 0.0008892/2.484, allocations: 426.8 kB / 0.7027 GB, free: 5.363 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.689e-05/2.484, allocations: 4 kB / 0.7027 GB, free: 5.359 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.294e-06/2.484, allocations: 0 / 0.7027 GB, free: 5.359 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009907/2.485, allocations: 193.6 kB / 0.7029 GB, free: 5.164 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001362/2.486, allocations: 31.91 kB / 0.7029 GB, free: 5.133 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002772/2.488, allocations: 2.304 MB / 0.7052 GB, free: 2.695 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002056/2.488, allocations: 39.75 kB / 0.7052 GB, free: 2.656 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.775e-05/2.489, allocations: 13.17 kB / 0.7052 GB, free: 2.645 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: 7 (checkValve.C2.b,checkValve.C1.a,puitsP1.C.a,sourceP1.C.b,checkValve.libre,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,2), (1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001808/2.489, allocations: 146 kB / 0.7054 GB, free: 2.492 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.663e-05/2.489, allocations: 27.81 kB / 0.7054 GB, free: 2.465 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000914/2.49, allocations: 0.5707 MB / 0.706 GB, free: 1.863 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000581/2.49, allocations: 362.2 kB / 0.7063 GB, free: 1.5 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.415e-06/2.49, allocations: 0 / 0.7063 GB, free: 1.5 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.329e-06/2.49, allocations: 0.8438 kB / 0.7063 GB, free: 1.5 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001433/2.492, allocations: 0.862 MB / 0.7072 GB, free: 0.5977 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.422e-06/2.492, allocations: 4.484 kB / 0.7072 GB, free: 0.5938 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002971/2.492, allocations: 55.86 kB / 0.7072 GB, free: 0.5391 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00037/2.492, allocations: 108.8 kB / 0.7073 GB, free: 440 kB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.497e-05/2.492, allocations: 12.61 kB / 0.7073 GB, free: 428 kB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006051/2.493, allocations: 0.6443 MB / 0.708 GB, free: 15.75 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/2.493, allocations: 0.8594 kB / 0.708 GB, free: 15.75 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001056/2.494, allocations: 0.6437 MB / 0.7086 GB, free: 15.09 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001161/2.494, allocations: 53.53 kB / 0.7086 GB, free: 15.04 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.407e-05/2.494, allocations: 16.94 kB / 0.7087 GB, free: 15.02 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000194/2.494, allocations: 15.98 kB / 0.7087 GB, free: 15 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.294e-05/2.494, allocations: 39.86 kB / 0.7087 GB, free: 14.96 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.842e-05/2.495, allocations: 12.89 kB / 0.7087 GB, free: 14.95 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002157/2.495, allocations: 193.2 kB / 0.7089 GB, free: 14.76 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.2e-07/2.495, allocations: 0 / 0.7089 GB, free: 14.76 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.003373/2.498, allocations: 1.239 MB / 0.7101 GB, free: 13.52 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (checkValve.omega,checkValve.theta) * Number of discrete variables: 3 ($whenCondition2,$whenCondition1,checkValve.libre) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.005056/2.503, allocations: 1.742 MB / 0.7118 GB, free: 11.8 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001129/2.504, allocations: 475.5 kB / 0.7123 GB, free: 11.32 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/2.504, allocations: 0 / 0.7123 GB, free: 11.32 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0004338/2.505, allocations: 171.3 kB / 0.7124 GB, free: 11.15 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007561/2.505, allocations: 130.1 kB / 0.7126 GB, free: 11.04 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001662/2.507, allocations: 0.9104 MB / 0.7134 GB, free: 10.1 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000226/2.507, allocations: 204.2 kB / 0.7136 GB, free: 9.887 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.904e-05/2.507, allocations: 31.44 kB / 0.7137 GB, free: 9.855 MB / 0.5762 GB Notification: Performance of SimCode: time 6.61e-07/2.507, allocations: 0 / 0.7137 GB, free: 9.855 MB / 0.5762 GB Notification: Performance of Templates: time 0.04276/2.55, allocations: 26.96 MB / 0.74 GB, free: 15.29 MB / 0.6075 GB " [Timeout remaining time 657] make -j1 -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.makefile [Timeout 660] (rm -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.sim & ./ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 13.394745830912143] Failed to read output from testmodel.py, exit status != 0: 2.734949206933379 2.990494382 0.712164027 Calling exit ...