Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve.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.567/0.567, allocations: 120.4 MB / 140.2 MB, free: 12.97 MB / 138.7 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.TestCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve") translateModel(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.704e-06/1.704e-06, allocations: 0 / 217.9 MB, free: 8.656 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.854e-05/2.024e-05, allocations: 4.688 kB / 217.9 MB, free: 8.652 MB / 202.7 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.TestCheckValve): time 1.029/1.029, allocations: 254.3 MB / 472.2 MB, free: 8.832 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.2652/1.294, allocations: 30.57 MB / 0.491 GB, free: 0.9258 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002115/1.294, allocations: 3 kB / 0.491 GB, free: 0.9258 MB / 442.7 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/CheckValve.mo:38:3-39:49: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/CheckValve.mo:40:3-41:47: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.0003725/1.295, allocations: 108.5 kB / 0.4911 GB, free: 0.9258 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002235/1.295, allocations: 124.1 kB / 0.4912 GB, free: 0.9141 MB / 442.7 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.02328/1.318, allocations: 9.784 MB / 0.5007 GB, free: 15.09 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006328/1.319, allocations: 388.5 kB / 0.5011 GB, free: 14.95 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002253/1.319, allocations: 104.8 kB / 0.5012 GB, free: 14.92 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003641/1.319, allocations: 239.5 kB / 0.5014 GB, free: 14.83 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001177/1.32, allocations: 88.48 kB / 0.5015 GB, free: 14.79 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 2.96e-05/1.32, allocations: 19.47 kB / 0.5015 GB, free: 14.79 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02606/1.346, allocations: 16.79 MB / 0.5179 GB, free: 3.105 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001109/1.346, allocations: 49.23 kB / 0.518 GB, free: 3.062 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002237/1.346, allocations: 100.8 kB / 0.5181 GB, free: 2.973 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0223/1.368, allocations: 10.83 MB / 0.5286 GB, free: 8.637 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.402e-06/1.368, allocations: 0.6562 kB / 0.5287 GB, free: 8.637 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.054e-06/1.368, allocations: 5.469 kB / 0.5287 GB, free: 8.633 MB / 474.7 MB Notification: Performance of Transformations before backend: time 7.525e-06/1.368, allocations: 0 / 0.5287 GB, free: 8.633 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.004015/1.372, allocations: 1.442 MB / 0.5301 GB, free: 7.16 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.224e-05/1.372, allocations: 12.03 kB / 0.5301 GB, free: 7.148 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.563e-05/1.372, allocations: 35.7 kB / 0.5301 GB, free: 7.113 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001919/1.373, allocations: 179.8 kB / 0.5303 GB, free: 6.914 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.954e-05/1.373, allocations: 48.61 kB / 0.5303 GB, free: 6.863 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.22e-05/1.373, allocations: 20.84 kB / 0.5303 GB, free: 6.844 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005551/1.373, allocations: 321.2 kB / 0.5307 GB, free: 6.508 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.829e-06/1.373, allocations: 4 kB / 0.5307 GB, free: 6.504 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.789e-05/1.373, allocations: 8 kB / 0.5307 GB, free: 6.496 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.384e-05/1.373, allocations: 17.36 kB / 0.5307 GB, free: 6.48 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002231/1.374, allocations: 196.4 kB / 0.5309 GB, free: 6.285 MB / 474.7 MB 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.0103/1.384, allocations: 5.959 MB / 0.5367 GB, free: 452 kB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002817/1.384, allocations: 131.4 kB / 0.5368 GB, free: 312 kB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001147/1.384, allocations: 97.16 kB / 0.5369 GB, free: 212 kB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08231/1.467, allocations: 48.42 MB / 0.5842 GB, free: 15.75 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000338/1.467, allocations: 197 kB / 0.5844 GB, free: 15.54 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=43): time 2.454e-06/1.467, allocations: 0 / 0.5844 GB, free: 15.54 MB / 0.5261 GB Notification: Performance of matching and sorting (n=43): time 0.0009892/1.468, allocations: 443 kB / 0.5848 GB, free: 15.1 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.094e-05/1.468, allocations: 81.11 kB / 0.5849 GB, free: 15 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001426/1.468, allocations: 178.3 kB / 0.5851 GB, free: 14.82 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 1.51e-05/1.468, allocations: 26.27 kB / 0.5851 GB, free: 14.79 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 9.172e-05/1.468, allocations: 152.7 kB / 0.5852 GB, free: 14.64 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 9.94e-05/1.468, allocations: 138.7 kB / 0.5854 GB, free: 14.5 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.294e-05/1.468, allocations: 57.64 kB / 0.5854 GB, free: 14.44 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001104/1.468, allocations: 342.8 kB / 0.5857 GB, free: 14.1 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001164/1.469, allocations: 97.44 kB / 0.5858 GB, free: 14 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001407/1.469, allocations: 171.3 kB / 0.586 GB, free: 13.82 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009213/1.47, allocations: 0.5205 MB / 0.5865 GB, free: 13.27 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.749e-06/1.47, allocations: 4 kB / 0.5865 GB, free: 13.27 MB / 0.5261 GB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0006206/1.47, allocations: 360.5 kB / 0.5868 GB, free: 12.91 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 2.385e-05/1.47, allocations: 4 kB / 0.5869 GB, free: 12.91 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.094e-05/1.47, allocations: 4.844 kB / 0.5869 GB, free: 12.9 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005515/1.471, allocations: 128.9 kB / 0.587 GB, free: 12.77 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.409e-05/1.471, allocations: 15.94 kB / 0.587 GB, free: 12.76 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006156/1.472, allocations: 0.6084 MB / 0.5876 GB, free: 12.12 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00014/1.472, allocations: 36.42 kB / 0.5876 GB, free: 12.09 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.906e-05/1.472, allocations: 8 kB / 0.5876 GB, free: 12.08 MB / 0.5261 GB Warning: Assuming fixed start value for the following 1 variables: pulse.T0:DISCRETE(fixed = true protected = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 15 ($PRE.checkValve3.touvert,$whenCondition3,$PRE.checkValve3.tferme,$whenCondition2,$whenCondition1,$PRE.pulse.T0,checkValve3.tferme,checkValve3.touvert,checkValve3.ouvert,$PRE.checkValve3.ouvert,pulse.T0,checkValve3.C2.b,checkValve3.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 (23): * Single equations (assignments): 20 * 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.0002144/1.472, allocations: 152.1 kB / 0.5878 GB, free: 11.93 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.477e-05/1.472, allocations: 23.92 kB / 0.5878 GB, free: 11.9 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007204/1.473, allocations: 0.4971 MB / 0.5883 GB, free: 11.37 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0004434/1.473, allocations: 330.2 kB / 0.5886 GB, free: 11.04 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.553e-06/1.473, allocations: 0 / 0.5886 GB, free: 11.04 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.831e-06/1.473, allocations: 0 / 0.5886 GB, free: 11.04 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001089/1.474, allocations: 0.7603 MB / 0.5893 GB, free: 10.24 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.639e-06/1.474, allocations: 0.5 kB / 0.5893 GB, free: 10.24 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.849e-05/1.474, allocations: 27.98 kB / 0.5894 GB, free: 10.21 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004879/1.475, allocations: 130.6 kB / 0.5895 GB, free: 10.09 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.19e-05/1.475, allocations: 12.92 kB / 0.5895 GB, free: 10.07 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004361/1.475, allocations: 0.6238 MB / 0.5901 GB, free: 9.426 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/1.475, allocations: 3.984 kB / 0.5901 GB, free: 9.422 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005894/1.476, allocations: 443.9 kB / 0.5905 GB, free: 8.969 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 9.024e-05/1.476, allocations: 52.2 kB / 0.5906 GB, free: 8.918 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.612e-05/1.476, allocations: 8 kB / 0.5906 GB, free: 8.91 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001276/1.476, allocations: 13.95 kB / 0.5906 GB, free: 8.898 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.591e-05/1.476, allocations: 19.97 kB / 0.5906 GB, free: 8.879 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.554e-05/1.476, allocations: 10 kB / 0.5906 GB, free: 8.871 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0001589/1.476, allocations: 163.2 kB / 0.5908 GB, free: 8.711 MB / 0.5261 GB Notification: Performance of sort global known variables: time 8e-08/1.476, allocations: 0 / 0.5908 GB, free: 8.711 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0039/1.48, allocations: 1.22 MB / 0.592 GB, free: 7.488 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition3,$whenCondition2,$whenCondition1,pulse.T0,checkValve3.ouvert,checkValve3.touvert,checkValve3.tferme) * Number of discrete states: 2 (checkValve3.touvert,checkValve3.tferme) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 2 * 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 Backend phase and start with SimCode phase: time 0.004871/1.485, allocations: 1.906 MB / 0.5938 GB, free: 5.801 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0006674/1.486, allocations: 309.3 kB / 0.5941 GB, free: 5.492 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 3.556e-06/1.486, allocations: 0 / 0.5941 GB, free: 5.492 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.000191/1.486, allocations: 132.5 kB / 0.5943 GB, free: 5.363 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004715/1.486, allocations: 121.1 kB / 0.5944 GB, free: 5.254 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008691/1.487, allocations: 0.6018 MB / 0.595 GB, free: 4.625 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001149/1.487, allocations: 177.3 kB / 0.5951 GB, free: 4.434 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.627e-05/1.487, allocations: 24.5 kB / 0.5952 GB, free: 4.41 MB / 0.5261 GB Notification: Performance of SimCode: time 1.202e-06/1.487, allocations: 0 / 0.5952 GB, free: 4.41 MB / 0.5261 GB Notification: Performance of Templates: time 0.0234/1.511, allocations: 25.41 MB / 0.62 GB, free: 11.13 MB / 0.5573 GB " [Timeout remaining time 658] make -j1 -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve.makefile [Timeout 660] (rm -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve.sim & ./ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 7.305173982866108] Failed to read output from testmodel.py, exit status != 0: 1.7685103304684162 1.682612063 0.31249438100000004 Calling exit ...