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 0.8672/0.8672, allocations: 153.8 MB / 173.4 MB, free: 4.883 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.0005447/0.0005447, allocations: 15.97 kB / 251 MB, free: 3.906 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1679/0.1685, allocations: 33.36 MB / 284.4 MB, free: 2.055 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.915/2.083, allocations: 307.8 MB / 0.5783 GB, free: 17.33 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.2114/2.295, allocations: 165.1 MB / 0.7395 GB, free: 15.44 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004175/2.295, allocations: 7.938 kB / 0.7395 GB, free: 15.43 MB / 0.6075 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.0003154/2.296, allocations: 67.94 kB / 0.7396 GB, free: 15.37 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0005886/2.296, allocations: 160.1 kB / 0.7397 GB, free: 15.21 MB / 0.6075 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.03098/2.327, allocations: 11.64 MB / 0.7511 GB, free: 3.566 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0007354/2.328, allocations: 0.491 MB / 0.7516 GB, free: 3.074 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003117/2.328, allocations: 213.1 kB / 0.7518 GB, free: 2.863 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003385/2.329, allocations: 219.2 kB / 0.752 GB, free: 2.648 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002764/2.329, allocations: 199 kB / 0.7522 GB, free: 2.453 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 6.416e-05/2.329, allocations: 40 kB / 0.7522 GB, free: 2.414 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03413/2.363, allocations: 18.62 MB / 0.7704 GB, free: 15.77 MB / 0.6387 GB Notification: Performance of NFScalarize.scalarize: time 0.0002052/2.363, allocations: 111.6 kB / 0.7705 GB, free: 15.66 MB / 0.6387 GB Notification: Performance of NFVerifyModel.verify: time 0.0002595/2.363, allocations: 195 kB / 0.7707 GB, free: 15.47 MB / 0.6387 GB Notification: Performance of NFConvertDAE.convert: time 0.02599/2.389, allocations: 9.887 MB / 0.7804 GB, free: 5.555 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 6.873e-06/2.389, allocations: 0 / 0.7804 GB, free: 5.555 MB / 0.6387 GB Notification: Performance of FrontEnd: time 1.603e-06/2.389, allocations: 0 / 0.7804 GB, free: 5.555 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 1.024e-05/2.389, allocations: 0 / 0.7804 GB, free: 5.555 MB / 0.6387 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.004912/2.394, allocations: 1.928 MB / 0.7822 GB, free: 3.578 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 3.518e-05/2.394, allocations: 8.031 kB / 0.7822 GB, free: 3.57 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002327/2.395, allocations: 71.61 kB / 0.7823 GB, free: 3.5 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004919/2.395, allocations: 300.7 kB / 0.7826 GB, free: 3.184 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.249e-05/2.395, allocations: 84.41 kB / 0.7827 GB, free: 3.09 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.195e-05/2.395, allocations: 36 kB / 0.7827 GB, free: 3.055 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006991/2.396, allocations: 412.8 kB / 0.7831 GB, free: 2.621 MB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.852e-05/2.396, allocations: 1.688 kB / 0.7831 GB, free: 2.621 MB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.611e-05/2.396, allocations: 16 kB / 0.7831 GB, free: 2.605 MB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.088e-05/2.396, allocations: 8 kB / 0.7831 GB, free: 2.598 MB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005664/2.397, allocations: 278.4 kB / 0.7834 GB, free: 2.328 MB / 0.6387 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001685/2.398, allocations: 1.221 MB / 0.7846 GB, free: 1.059 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006014/2.399, allocations: 204.2 kB / 0.7848 GB, free: 0.8516 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001671/2.399, allocations: 80.78 kB / 0.7849 GB, free: 0.7695 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4157/2.815, allocations: 69.09 MB / 0.8523 GB, free: 301.9 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002948/2.815, allocations: 143.3 kB / 0.8525 GB, free: 301.8 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=21): time 1.994e-06/2.815, allocations: 4.984 kB / 0.8525 GB, free: 301.8 MB / 0.6856 GB Notification: Performance of matching and sorting (n=21): time 0.0009257/2.816, allocations: 326.3 kB / 0.8528 GB, free: 301.8 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.097e-05/2.816, allocations: 54 kB / 0.8528 GB, free: 301.7 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003359/2.816, allocations: 360.7 kB / 0.8532 GB, free: 301.6 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 1.93e-05/2.816, allocations: 30.11 kB / 0.8532 GB, free: 301.6 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001135/2.817, allocations: 249.2 kB / 0.8534 GB, free: 301.5 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 4.153e-05/2.817, allocations: 83.12 kB / 0.8535 GB, free: 301.5 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.813e-05/2.817, allocations: 80.98 kB / 0.8536 GB, free: 301.4 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 5.435e-05/2.817, allocations: 341.4 kB / 0.8539 GB, free: 301.1 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001646/2.817, allocations: 83.05 kB / 0.854 GB, free: 301.1 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001913/2.817, allocations: 179.2 kB / 0.8542 GB, free: 301 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003317/2.817, allocations: 257.7 kB / 0.8544 GB, free: 300.9 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/2.817, allocations: 4.719 kB / 0.8544 GB, free: 300.9 MB / 0.6856 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007103/2.818, allocations: 387 kB / 0.8548 GB, free: 300.8 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 1.61e-05/2.818, allocations: 7.938 kB / 0.8548 GB, free: 300.8 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.282e-06/2.818, allocations: 0 / 0.8548 GB, free: 300.8 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009179/2.819, allocations: 167.7 kB / 0.855 GB, free: 300.8 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000175/2.819, allocations: 53.5 kB / 0.855 GB, free: 300.8 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001751/2.821, allocations: 2.256 MB / 0.8572 GB, free: 298.9 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002389/2.821, allocations: 50.06 kB / 0.8573 GB, free: 298.8 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.333e-05/2.821, allocations: 12.09 kB / 0.8573 GB, free: 298.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.0001507/2.821, allocations: 169.4 kB / 0.8574 GB, free: 298.7 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.179e-05/2.821, allocations: 39.3 kB / 0.8575 GB, free: 298.7 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006261/2.822, allocations: 322.2 kB / 0.8578 GB, free: 298.6 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.557e-06/2.822, allocations: 3.719 kB / 0.8578 GB, free: 298.6 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.513e-06/2.822, allocations: 0 / 0.8578 GB, free: 298.6 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/2.822, allocations: 0.5469 kB / 0.8578 GB, free: 298.6 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002343/2.822, allocations: 282.2 kB / 0.8581 GB, free: 298.5 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/2.822, allocations: 0.875 kB / 0.8581 GB, free: 298.5 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000243/2.823, allocations: 47.06 kB / 0.8581 GB, free: 298.5 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003905/2.823, allocations: 77.58 kB / 0.8582 GB, free: 298.5 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.843e-05/2.823, allocations: 11.5 kB / 0.8582 GB, free: 298.5 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002822/2.823, allocations: 0.5658 MB / 0.8587 GB, free: 298 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.021e-06/2.823, allocations: 3.969 kB / 0.8587 GB, free: 298 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006308/2.824, allocations: 387.6 kB / 0.8591 GB, free: 297.8 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001152/2.824, allocations: 54.41 kB / 0.8592 GB, free: 297.8 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.752e-05/2.824, allocations: 7.625 kB / 0.8592 GB, free: 297.8 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001518/2.824, allocations: 18.97 kB / 0.8592 GB, free: 297.8 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.796e-05/2.824, allocations: 27.16 kB / 0.8592 GB, free: 297.8 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.898e-05/2.824, allocations: 11.34 kB / 0.8592 GB, free: 297.8 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.0001862/2.824, allocations: 240.4 kB / 0.8595 GB, free: 297.7 MB / 0.6856 GB Notification: Performance of sort global known variables: time 6e-08/2.824, allocations: 5.266 kB / 0.8595 GB, free: 297.7 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.00296/2.827, allocations: 1.501 MB / 0.8609 GB, free: 297.7 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.004736/2.832, allocations: 2.212 MB / 0.8631 GB, free: 296.3 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.0006937/2.833, allocations: 349.3 kB / 0.8634 GB, free: 296 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/2.833, allocations: 0 / 0.8634 GB, free: 296 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.0002418/2.833, allocations: 105.3 kB / 0.8635 GB, free: 295.9 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004081/2.834, allocations: 84.41 kB / 0.8636 GB, free: 295.9 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001242/2.835, allocations: 0.8529 MB / 0.8644 GB, free: 295.1 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001392/2.835, allocations: 218 kB / 0.8646 GB, free: 294.8 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.137e-05/2.835, allocations: 38.42 kB / 0.8647 GB, free: 294.8 MB / 0.6856 GB Notification: Performance of SimCode: time 4.01e-07/2.835, allocations: 0 / 0.8647 GB, free: 294.8 MB / 0.6856 GB Notification: Performance of Templates: time 0.03318/2.868, allocations: 31.09 MB / 0.895 GB, free: 264.4 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: 13.790987403132021] Failed to read output from testmodel.py, exit status != 0: 2.9945985628291965 3.003878781 0.612069156 Calling exit ...