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.8801/0.8801, allocations: 153.8 MB / 172.7 MB, free: 4.852 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.0005679/0.0005679, allocations: 15.97 kB / 250.2 MB, free: 3.926 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1769/0.1774, allocations: 33.36 MB / 283.6 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.939/2.117, allocations: 307.7 MB / 0.5774 GB, free: 17.49 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.03879/2.155, allocations: 30.89 MB / 0.6076 GB, free: 2.551 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004734/2.156, allocations: 2.656 kB / 0.6076 GB, free: 2.551 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.0007418/2.157, allocations: 127.5 kB / 0.6077 GB, free: 2.496 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007658/2.157, allocations: 151.8 kB / 0.6078 GB, free: 2.398 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.04762/2.205, allocations: 9.866 MB / 0.6175 GB, free: 12.18 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.001306/2.206, allocations: 456.1 kB / 0.6179 GB, free: 11.73 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004546/2.207, allocations: 132.7 kB / 0.618 GB, free: 11.6 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006651/2.207, allocations: 203.2 kB / 0.6182 GB, free: 11.4 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004401/2.208, allocations: 155.2 kB / 0.6184 GB, free: 11.25 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 9.411e-05/2.208, allocations: 24 kB / 0.6184 GB, free: 11.23 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.05918/2.267, allocations: 16.78 MB / 0.6348 GB, free: 10.44 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0002443/2.267, allocations: 67.7 kB / 0.6349 GB, free: 10.38 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0003271/2.268, allocations: 139.3 kB / 0.635 GB, free: 10.24 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.02703/2.295, allocations: 8.536 MB / 0.6433 GB, free: 1.68 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.933e-06/2.295, allocations: 0 / 0.6433 GB, free: 1.68 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.403e-06/2.295, allocations: 0 / 0.6433 GB, free: 1.68 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 8.887e-06/2.295, allocations: 0 / 0.6433 GB, free: 1.68 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.0041/2.299, allocations: 1.564 MB / 0.6449 GB, free: 76 kB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.414e-05/2.299, allocations: 8.031 kB / 0.6449 GB, free: 68 kB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000189/2.299, allocations: 53.73 kB / 0.6449 GB, free: 16 kB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003283/2.299, allocations: 208.5 kB / 0.6451 GB, free: 15.79 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.435e-05/2.3, allocations: 76.78 kB / 0.6452 GB, free: 15.7 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.829e-05/2.3, allocations: 20.75 kB / 0.6452 GB, free: 15.68 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005644/2.3, allocations: 358.4 kB / 0.6455 GB, free: 15.31 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.531e-05/2.3, allocations: 3.938 kB / 0.6455 GB, free: 15.3 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.478e-05/2.3, allocations: 12 kB / 0.6456 GB, free: 15.29 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.648e-05/2.3, allocations: 15.92 kB / 0.6456 GB, free: 15.28 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004123/2.301, allocations: 229.8 kB / 0.6458 GB, free: 15.05 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.01957/2.32, allocations: 6.027 MB / 0.6517 GB, free: 8.965 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006632/2.321, allocations: 243.7 kB / 0.6519 GB, free: 8.715 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002132/2.321, allocations: 123.6 kB / 0.652 GB, free: 8.594 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1724/2.493, allocations: 48.43 MB / 0.6993 GB, free: 8.117 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004847/2.494, allocations: 223.9 kB / 0.6995 GB, free: 7.883 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=48): time 2.345e-06/2.494, allocations: 0 / 0.6995 GB, free: 7.883 MB / 0.5606 GB Notification: Performance of matching and sorting (n=48): time 0.001174/2.495, allocations: 487 kB / 0.7 GB, free: 7.398 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.328e-05/2.495, allocations: 81.11 kB / 0.7001 GB, free: 7.301 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002577/2.495, allocations: 224.8 kB / 0.7003 GB, free: 7.074 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 3.063e-05/2.496, allocations: 33.7 kB / 0.7003 GB, free: 7.035 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001541/2.496, allocations: 165 kB / 0.7005 GB, free: 6.867 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001348/2.496, allocations: 167.3 kB / 0.7006 GB, free: 6.703 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001162/2.496, allocations: 65.91 kB / 0.7007 GB, free: 6.633 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001799/2.496, allocations: 342.8 kB / 0.701 GB, free: 6.289 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002184/2.496, allocations: 108.7 kB / 0.7011 GB, free: 6.184 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002536/2.497, allocations: 171.6 kB / 0.7013 GB, free: 6 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004735/2.497, allocations: 291.2 kB / 0.7016 GB, free: 5.699 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/2.497, allocations: 0 / 0.7016 GB, free: 5.699 MB / 0.5606 GB Notification: Performance of matching and sorting (n=55) (initialization): time 0.0008644/2.498, allocations: 426.8 kB / 0.702 GB, free: 5.27 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.955e-05/2.498, allocations: 12.78 kB / 0.702 GB, free: 5.258 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.596e-06/2.498, allocations: 1.453 kB / 0.702 GB, free: 5.258 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001009/2.499, allocations: 195.2 kB / 0.7022 GB, free: 5.062 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001248/2.499, allocations: 23.92 kB / 0.7022 GB, free: 5.039 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002632/2.502, allocations: 2.305 MB / 0.7045 GB, free: 2.605 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002047/2.502, allocations: 44.42 kB / 0.7045 GB, free: 2.562 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.637e-05/2.502, allocations: 12 kB / 0.7045 GB, free: 2.551 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.0001667/2.502, allocations: 141.8 kB / 0.7047 GB, free: 2.402 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.721e-05/2.502, allocations: 28.66 kB / 0.7047 GB, free: 2.375 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008848/2.503, allocations: 0.5691 MB / 0.7052 GB, free: 1.77 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0005947/2.504, allocations: 370.3 kB / 0.7056 GB, free: 1.398 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.134e-06/2.504, allocations: 0 / 0.7056 GB, free: 1.398 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.663e-06/2.504, allocations: 3.984 kB / 0.7056 GB, free: 1.395 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001397/2.505, allocations: 0.8465 MB / 0.7064 GB, free: 0.5078 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.466e-06/2.505, allocations: 0.875 kB / 0.7064 GB, free: 0.5078 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003081/2.505, allocations: 67.91 kB / 0.7065 GB, free: 452 kB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003578/2.506, allocations: 108.8 kB / 0.7066 GB, free: 340 kB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.455e-05/2.506, allocations: 9.031 kB / 0.7066 GB, free: 332 kB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005903/2.506, allocations: 0.642 MB / 0.7072 GB, free: 15.66 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/2.506, allocations: 0 / 0.7072 GB, free: 15.66 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001086/2.507, allocations: 0.653 MB / 0.7079 GB, free: 14.99 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001007/2.507, allocations: 48.31 kB / 0.7079 GB, free: 14.94 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.4e-05/2.508, allocations: 11.94 kB / 0.7079 GB, free: 14.93 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001974/2.508, allocations: 19.92 kB / 0.7079 GB, free: 14.91 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.258e-05/2.508, allocations: 35.94 kB / 0.708 GB, free: 14.88 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.309e-05/2.508, allocations: 7.938 kB / 0.708 GB, free: 14.87 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002128/2.508, allocations: 201.2 kB / 0.7082 GB, free: 14.67 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1e-07/2.508, allocations: 0 / 0.7082 GB, free: 14.67 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.003038/2.511, allocations: 1.24 MB / 0.7094 GB, free: 13.43 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.004632/2.516, allocations: 1.741 MB / 0.7111 GB, free: 11.71 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001018/2.517, allocations: 479.5 kB / 0.7115 GB, free: 11.22 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/2.517, allocations: 0 / 0.7115 GB, free: 11.22 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0004344/2.517, allocations: 169.4 kB / 0.7117 GB, free: 11.05 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007575/2.518, allocations: 129.4 kB / 0.7118 GB, free: 10.95 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001651/2.52, allocations: 0.8828 MB / 0.7127 GB, free: 10.05 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002062/2.52, allocations: 204.2 kB / 0.7129 GB, free: 9.828 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001296/2.52, allocations: 25.58 kB / 0.7129 GB, free: 9.809 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.857e-05/2.52, allocations: 35.42 kB / 0.7129 GB, free: 9.773 MB / 0.5762 GB Notification: Performance of SimCode: time 4.81e-07/2.52, allocations: 4 kB / 0.7129 GB, free: 9.77 MB / 0.5762 GB Notification: Performance of Templates: time 0.06355/2.584, allocations: 44.18 MB / 0.7561 GB, free: 14.12 MB / 0.6231 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: 14.302079079672694] Failed to read output from testmodel.py, exit status != 0: 2.941837064921856 2.952073206 0.654631756 Calling exit ...