Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.7691/0.7691, allocations: 152.6 MB / 170.7 MB, free: 6.309 MB / 142.1 MB [Timeout remaining time 89] 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.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve") translateModel(ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve") [Timeout 660] Notification: Performance of FrontEnd - loaded program: time 0.0004747/0.0004747, allocations: 11.98 kB / 247.2 MB, free: 6.441 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1489/0.1494, allocations: 33.04 MB / 280.3 MB, free: 3.676 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.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve): time 1.422/1.571, allocations: 301.3 MB / 0.5679 GB, free: 5.52 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.4265/1.998, allocations: 188.4 MB / 0.7519 GB, free: 4.262 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002229/1.998, allocations: 7.938 kB / 0.7519 GB, free: 4.254 MB / 0.6075 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SourceP.mo:58:3-59: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 4.0.0-master/Fluid/BoundaryConditions/SinkP.mo:46:3-47: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 4.0.0-master/Fluid/PressureLosses/DynamicCheckValve.mo:56:3-57:67: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 4.0.0-master/Fluid/PressureLosses/DynamicCheckValve.mo:58:3-59:65: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.0002387/1.998, allocations: 67.42 kB / 0.752 GB, free: 4.188 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.00034/1.998, allocations: 147.6 kB / 0.7521 GB, free: 4.043 MB / 0.6075 GB [/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. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-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.02856/2.027, allocations: 11.78 MB / 0.7636 GB, free: 8.254 MB / 0.6231 GB Notification: Performance of NFFlatten.flatten: time 0.0006924/2.028, allocations: 498.9 kB / 0.7641 GB, free: 7.766 MB / 0.6231 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003387/2.028, allocations: 204.7 kB / 0.7643 GB, free: 7.562 MB / 0.6231 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002689/2.028, allocations: 203.2 kB / 0.7645 GB, free: 7.363 MB / 0.6231 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002714/2.029, allocations: 227.1 kB / 0.7647 GB, free: 7.141 MB / 0.6231 GB Notification: Performance of NFPackage.collectConstants: time 6.342e-05/2.029, allocations: 40 kB / 0.7648 GB, free: 7.102 MB / 0.6231 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03361/2.062, allocations: 19.95 MB / 0.7842 GB, free: 3.133 MB / 0.6387 GB Notification: Performance of NFScalarize.scalarize: time 0.0001732/2.062, allocations: 95.69 kB / 0.7843 GB, free: 3.039 MB / 0.6387 GB Notification: Performance of NFVerifyModel.verify: time 0.0002698/2.063, allocations: 222.9 kB / 0.7845 GB, free: 2.82 MB / 0.6387 GB Notification: Performance of NFConvertDAE.convert: time 0.02131/2.084, allocations: 9.86 MB / 0.7942 GB, free: 8.934 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/2.084, allocations: 0 / 0.7942 GB, free: 8.934 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.934e-06/2.084, allocations: 0 / 0.7942 GB, free: 8.934 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 1.346e-05/2.084, allocations: 0 / 0.7942 GB, free: 8.934 MB / 0.6544 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 95 * Number of variables: 95 Notification: Performance of Generate backend data structure: time 0.004715/2.089, allocations: 1.925 MB / 0.7961 GB, free: 6.949 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.584e-05/2.089, allocations: 16.97 kB / 0.7961 GB, free: 6.934 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000112/2.089, allocations: 47.72 kB / 0.7961 GB, free: 6.887 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004836/2.089, allocations: 342.1 kB / 0.7964 GB, free: 6.516 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.397e-05/2.089, allocations: 58.7 kB / 0.7965 GB, free: 6.449 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.334e-05/2.09, allocations: 43.94 kB / 0.7965 GB, free: 6.406 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006899/2.09, allocations: 405.6 kB / 0.7969 GB, free: 5.988 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.565e-05/2.09, allocations: 0 / 0.7969 GB, free: 5.988 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.802e-05/2.09, allocations: 22.05 kB / 0.7969 GB, free: 5.969 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.226e-05/2.09, allocations: 12 kB / 0.797 GB, free: 5.957 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005615/2.091, allocations: 282.4 kB / 0.7972 GB, free: 5.684 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002109/2.093, allocations: 2.015 MB / 0.7992 GB, free: 3.445 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006138/2.094, allocations: 216.3 kB / 0.7994 GB, free: 3.227 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001616/2.094, allocations: 78.38 kB / 0.7995 GB, free: 3.148 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.484/2.578, allocations: 123.2 MB / 0.9198 GB, free: 6.602 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002766/2.578, allocations: 140.2 kB / 0.9199 GB, free: 6.512 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=21): time 2.194e-06/2.578, allocations: 0 / 0.9199 GB, free: 6.512 MB / 0.6856 GB Notification: Performance of matching and sorting (n=21): time 0.0008887/2.579, allocations: 406 kB / 0.9203 GB, free: 6.219 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.312e-05/2.579, allocations: 56.61 kB / 0.9204 GB, free: 6.152 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002751/2.579, allocations: 323.7 kB / 0.9207 GB, free: 5.941 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 1.738e-05/2.579, allocations: 29.08 kB / 0.9207 GB, free: 5.91 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003121/2.579, allocations: 243.4 kB / 0.9209 GB, free: 21.78 MB / 0.7012 GB Notification: Performance of collectInitialBindings (initialization): time 3.99e-05/2.58, allocations: 78.69 kB / 0.921 GB, free: 21.73 MB / 0.7012 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.471e-05/2.58, allocations: 70.77 kB / 0.9211 GB, free: 21.68 MB / 0.7012 GB Notification: Performance of setup shared object (initialization): time 0.0001461/2.58, allocations: 345.2 kB / 0.9214 GB, free: 21.36 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001568/2.58, allocations: 77.97 kB / 0.9215 GB, free: 21.32 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001742/2.58, allocations: 186.1 kB / 0.9217 GB, free: 21.15 MB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003086/2.58, allocations: 267.4 kB / 0.9219 GB, free: 20.93 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/2.58, allocations: 0 / 0.9219 GB, free: 20.93 MB / 0.7012 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006905/2.581, allocations: 384 kB / 0.9223 GB, free: 20.69 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 1.468e-05/2.581, allocations: 8.438 kB / 0.9223 GB, free: 20.68 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.264e-06/2.581, allocations: 4.938 kB / 0.9223 GB, free: 20.68 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008894/2.582, allocations: 176.1 kB / 0.9225 GB, free: 20.57 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001701/2.582, allocations: 49.75 kB / 0.9225 GB, free: 20.54 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002185/2.584, allocations: 2.379 MB / 0.9248 GB, free: 18.27 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002336/2.585, allocations: 43.64 kB / 0.9249 GB, free: 18.24 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.219e-05/2.585, allocations: 15.31 kB / 0.9249 GB, free: 18.23 MB / 0.7012 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 9 (sourceP1.C.ftype,puitsP1.fluid,checkValve.fluid,checkValve.libre,$whenCondition1,$whenCondition2,sourceP1.fluid1,sourceP1.C.diff_on_2,checkValve.C2.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.0001717/2.585, allocations: 164.7 kB / 0.9251 GB, free: 18.09 MB / 0.7012 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.861e-05/2.585, allocations: 33.41 kB / 0.9251 GB, free: 18.06 MB / 0.7012 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006023/2.585, allocations: 316.5 kB / 0.9254 GB, free: 17.86 MB / 0.7012 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.865e-06/2.585, allocations: 5.406 kB / 0.9254 GB, free: 17.86 MB / 0.7012 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.322e-06/2.585, allocations: 0 / 0.9254 GB, free: 17.86 MB / 0.7012 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.617e-06/2.585, allocations: 4 kB / 0.9254 GB, free: 17.86 MB / 0.7012 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002989/2.586, allocations: 391 kB / 0.9258 GB, free: 17.57 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.435e-06/2.586, allocations: 4.766 kB / 0.9258 GB, free: 17.57 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002225/2.586, allocations: 43.81 kB / 0.9258 GB, free: 17.54 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003678/2.586, allocations: 75.33 kB / 0.9259 GB, free: 17.48 MB / 0.7012 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.637e-05/2.586, allocations: 6.859 kB / 0.9259 GB, free: 17.48 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004182/2.587, allocations: 0.5711 MB / 0.9265 GB, free: 16.92 MB / 0.7012 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/2.587, allocations: 0 / 0.9265 GB, free: 16.92 MB / 0.7012 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006399/2.587, allocations: 376.3 kB / 0.9268 GB, free: 16.66 MB / 0.7012 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001145/2.588, allocations: 129.7 kB / 0.9269 GB, free: 16.54 MB / 0.7012 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.586e-05/2.588, allocations: 11.31 kB / 0.9269 GB, free: 16.53 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001537/2.588, allocations: 13.2 kB / 0.927 GB, free: 16.52 MB / 0.7012 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.304e-05/2.588, allocations: 30.59 kB / 0.927 GB, free: 16.51 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.808e-05/2.588, allocations: 6.422 kB / 0.927 GB, free: 16.51 MB / 0.7012 GB Notification: Performance of sorting global known variables: time 0.0001911/2.588, allocations: 235.5 kB / 0.9272 GB, free: 16.34 MB / 0.7012 GB Notification: Performance of sort global known variables: time 1.01e-07/2.588, allocations: 64 / 0.9272 GB, free: 16.34 MB / 0.7012 GB Notification: Performance of remove unused functions: time 0.002893/2.591, allocations: 1.49 MB / 0.9287 GB, free: 15.23 MB / 0.7012 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (checkValve.theta,checkValve.omega) * 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 (20): * Single equations (assignments): 19 * 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.004396/2.595, allocations: 2.228 MB / 0.9309 GB, free: 13.68 MB / 0.7012 GB Notification: Performance of simCode: created initialization part: time 0.0006628/2.596, allocations: 351.8 kB / 0.9312 GB, free: 13.43 MB / 0.7012 GB Notification: Performance of simCode: created event and clocks part: time 2.235e-06/2.596, allocations: 0.875 kB / 0.9312 GB, free: 13.43 MB / 0.7012 GB Notification: Performance of simCode: created simulation system equations: time 0.0002258/2.596, allocations: 106.8 kB / 0.9313 GB, free: 13.36 MB / 0.7012 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000364/2.597, allocations: 86.66 kB / 0.9314 GB, free: 13.33 MB / 0.7012 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00111/2.598, allocations: 0.8016 MB / 0.9322 GB, free: 12.61 MB / 0.7012 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004033/2.598, allocations: 0.8085 MB / 0.9329 GB, free: 11.83 MB / 0.7012 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.15e-05/2.598, allocations: 35.31 kB / 0.933 GB, free: 11.8 MB / 0.7012 GB Notification: Performance of SimCode: time 3.9e-07/2.598, allocations: 0 / 0.933 GB, free: 11.8 MB / 0.7012 GB Notification: Performance of Templates: time 0.04149/2.64, allocations: 30.98 MB / 0.9632 GB, free: 14.59 MB / 0.7325 GB [Timeout remaining time 657] make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.makefile [Timeout 660] (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.sim & ./ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.pipe 2>&1) [Timeout 480]