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 master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/package.mo): time 1.153/1.153, allocations: 153.8 MB / 173.4 MB, free: 4.922 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.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve") translateModel(ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.0006274/0.0006274, allocations: 11.98 kB / 251.1 MB, free: 3.984 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2035/0.2041, allocations: 33.36 MB / 284.4 MB, free: 2.133 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.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve): time 1.872/2.077, allocations: 307.7 MB / 0.5783 GB, free: 15.96 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.2381/2.315, allocations: 191.4 MB / 0.7652 GB, free: 5.406 MB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005004/2.315, allocations: 11.94 kB / 0.7652 GB, free: 5.395 MB / 0.6231 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/Fluid/BoundaryConditions/SourceP.mo:59:3-60: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 master/Fluid/BoundaryConditions/SinkP.mo:47:3-48: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 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 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.0003355/2.315, allocations: 63.42 kB / 0.7653 GB, free: 5.332 MB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 0.0006515/2.316, allocations: 154.8 kB / 0.7654 GB, free: 5.18 MB / 0.6231 GB [/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. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 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.03473/2.351, allocations: 11.82 MB / 0.777 GB, free: 9.359 MB / 0.6387 GB Notification: Performance of NFFlatten.flatten: time 0.0009447/2.352, allocations: 0.4949 MB / 0.7775 GB, free: 8.859 MB / 0.6387 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004157/2.352, allocations: 205.2 kB / 0.7777 GB, free: 8.656 MB / 0.6387 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004693/2.353, allocations: 224.8 kB / 0.7779 GB, free: 8.438 MB / 0.6387 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004204/2.353, allocations: 219.1 kB / 0.7781 GB, free: 8.223 MB / 0.6387 GB Notification: Performance of NFPackage.collectConstants: time 9.499e-05/2.353, allocations: 44 kB / 0.7781 GB, free: 8.18 MB / 0.6387 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04093/2.394, allocations: 19.99 MB / 0.7976 GB, free: 4.16 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.0002087/2.394, allocations: 111.6 kB / 0.7978 GB, free: 4.051 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.0003281/2.395, allocations: 230.8 kB / 0.798 GB, free: 3.824 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.02441/2.419, allocations: 9.885 MB / 0.8076 GB, free: 9.914 MB / 0.67 GB Notification: Performance of FrontEnd - DAE generated: time 5.109e-06/2.419, allocations: 7.938 kB / 0.8076 GB, free: 9.906 MB / 0.67 GB Notification: Performance of FrontEnd: time 1.353e-06/2.419, allocations: 0 / 0.8076 GB, free: 9.906 MB / 0.67 GB Notification: Performance of Transformations before backend: time 2.361e-05/2.419, allocations: 0 / 0.8076 GB, free: 9.906 MB / 0.67 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.006057/2.425, allocations: 1.94 MB / 0.8095 GB, free: 7.922 MB / 0.67 GB Notification: Performance of prepare preOptimizeDAE: time 4.278e-05/2.425, allocations: 12.03 kB / 0.8095 GB, free: 7.91 MB / 0.67 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002732/2.425, allocations: 67.66 kB / 0.8096 GB, free: 7.844 MB / 0.67 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005684/2.426, allocations: 292.8 kB / 0.8099 GB, free: 7.531 MB / 0.67 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.77e-05/2.426, allocations: 84.34 kB / 0.81 GB, free: 7.438 MB / 0.67 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.107e-05/2.426, allocations: 40.61 kB / 0.81 GB, free: 7.398 MB / 0.67 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007463/2.427, allocations: 408.9 kB / 0.8104 GB, free: 6.977 MB / 0.67 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.145e-05/2.427, allocations: 3.938 kB / 0.8104 GB, free: 6.973 MB / 0.67 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.592e-05/2.427, allocations: 16 kB / 0.8104 GB, free: 6.957 MB / 0.67 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.346e-05/2.427, allocations: 9.25 kB / 0.8104 GB, free: 6.949 MB / 0.67 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005957/2.428, allocations: 283.9 kB / 0.8107 GB, free: 6.672 MB / 0.67 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00243/2.43, allocations: 2 MB / 0.8126 GB, free: 4.457 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006027/2.431, allocations: 210.9 kB / 0.8128 GB, free: 4.246 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001634/2.431, allocations: 72.83 kB / 0.8129 GB, free: 4.172 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4273/2.858, allocations: 68.82 MB / 0.8801 GB, free: 276.5 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002863/2.858, allocations: 142.5 kB / 0.8803 GB, free: 276.4 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=21): time 1.863e-06/2.858, allocations: 0 / 0.8803 GB, free: 276.4 MB / 0.6856 GB Notification: Performance of matching and sorting (n=21): time 0.0009123/2.859, allocations: 331.6 kB / 0.8806 GB, free: 276.2 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.178e-05/2.859, allocations: 55.41 kB / 0.8806 GB, free: 276.1 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003735/2.86, allocations: 375.9 kB / 0.881 GB, free: 275.8 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 2.03e-05/2.86, allocations: 29.2 kB / 0.881 GB, free: 275.8 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001163/2.86, allocations: 253 kB / 0.8813 GB, free: 275.6 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 5.812e-05/2.86, allocations: 78.59 kB / 0.8813 GB, free: 275.6 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.798e-05/2.86, allocations: 80.73 kB / 0.8814 GB, free: 275.5 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 6.557e-05/2.86, allocations: 342.3 kB / 0.8817 GB, free: 275.2 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001728/2.86, allocations: 84.05 kB / 0.8818 GB, free: 275.1 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001863/2.86, allocations: 179.7 kB / 0.882 GB, free: 274.9 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003288/2.861, allocations: 268.9 kB / 0.8822 GB, free: 274.7 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.667e-06/2.861, allocations: 0 / 0.8822 GB, free: 274.7 MB / 0.6856 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007439/2.861, allocations: 377.9 kB / 0.8826 GB, free: 274.4 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 1.837e-05/2.861, allocations: 11.94 kB / 0.8826 GB, free: 274.4 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.484e-06/2.861, allocations: 0 / 0.8826 GB, free: 274.4 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009239/2.862, allocations: 175.7 kB / 0.8828 GB, free: 274.3 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001779/2.863, allocations: 48 kB / 0.8828 GB, free: 274.2 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001712/2.864, allocations: 2.29 MB / 0.8851 GB, free: 271.9 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000254/2.865, allocations: 48.84 kB / 0.8851 GB, free: 271.9 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.34e-05/2.865, allocations: 12 kB / 0.8851 GB, free: 271.8 MB / 0.6856 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.0001496/2.865, allocations: 174.9 kB / 0.8853 GB, free: 271.7 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.6e-05/2.865, allocations: 47.69 kB / 0.8853 GB, free: 271.6 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006184/2.865, allocations: 309.8 kB / 0.8856 GB, free: 271.3 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.548e-06/2.865, allocations: 4 kB / 0.8856 GB, free: 271.3 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.423e-06/2.865, allocations: 0 / 0.8856 GB, free: 271.3 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.368e-06/2.865, allocations: 3.984 kB / 0.8856 GB, free: 271.3 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003029/2.866, allocations: 377.2 kB / 0.886 GB, free: 270.9 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.385e-06/2.866, allocations: 0 / 0.886 GB, free: 270.9 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002415/2.866, allocations: 50.97 kB / 0.886 GB, free: 270.8 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003942/2.866, allocations: 76.45 kB / 0.8861 GB, free: 270.8 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.783e-05/2.866, allocations: 4 kB / 0.8861 GB, free: 270.8 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002848/2.867, allocations: 0.5708 MB / 0.8867 GB, free: 270.2 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/2.867, allocations: 0 / 0.8867 GB, free: 270.2 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006402/2.867, allocations: 385.5 kB / 0.887 GB, free: 269.8 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001261/2.867, allocations: 69.92 kB / 0.8871 GB, free: 269.7 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.147e-05/2.867, allocations: 8.125 kB / 0.8871 GB, free: 269.7 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001734/2.868, allocations: 19.92 kB / 0.8871 GB, free: 269.7 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.763e-05/2.868, allocations: 27.94 kB / 0.8872 GB, free: 269.7 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.948e-05/2.868, allocations: 12 kB / 0.8872 GB, free: 269.7 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.0002118/2.868, allocations: 267.1 kB / 0.8874 GB, free: 269.4 MB / 0.6856 GB Notification: Performance of sort global known variables: time 1.1e-07/2.868, allocations: 0 / 0.8874 GB, free: 269.4 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.002962/2.871, allocations: 1.489 MB / 0.8889 GB, free: 268.1 MB / 0.6856 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 (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.005643/2.877, allocations: 2.213 MB / 0.891 GB, free: 266.3 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.0006963/2.877, allocations: 356.1 kB / 0.8914 GB, free: 266 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/2.877, allocations: 0 / 0.8914 GB, free: 266 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.0002461/2.877, allocations: 103.5 kB / 0.8915 GB, free: 265.9 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004334/2.878, allocations: 87.7 kB / 0.8916 GB, free: 265.8 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001326/2.879, allocations: 0.8565 MB / 0.8924 GB, free: 264.9 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001975/2.879, allocations: 0.8125 MB / 0.8932 GB, free: 264.1 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001008/2.88, allocations: 43.42 kB / 0.8932 GB, free: 264 MB / 0.6856 GB Notification: Performance of SimCode: time 6.21e-07/2.88, allocations: 0 / 0.8932 GB, free: 264 MB / 0.6856 GB Notification: Performance of Templates: time 0.03419/2.914, allocations: 31.07 MB / 0.9236 GB, free: 233.6 MB / 0.6856 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] [Calling sys.exit(0), Time elapsed: 14.580289687030017] Failed to read output from testmodel.py, exit status != 0: 3.05098338983953 3.06043328 0.6386804269999999 Calling exit ...