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) 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=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve") translateModel(ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.832/0.832, allocations: 150.9 MB / 166.4 MB, free: 14.43 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003143/0.0003143, allocations: 11.98 kB / 204.6 MB, free: 9.742 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1534/0.1538, allocations: 31.33 MB / 235.9 MB, free: 5.391 MB / 190.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.604/1.758, allocations: 294.9 MB / 0.5184 GB, free: 13.06 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.1896/1.948, allocations: 187.8 MB / 0.7018 GB, free: 0.7891 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002576/1.948, allocations: 11.88 kB / 0.7018 GB, free: 0.7773 MB / 0.5762 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.0002179/1.948, allocations: 67.48 kB / 0.7019 GB, free: 0.7109 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0003314/1.949, allocations: 146.8 kB / 0.702 GB, free: 0.5664 MB / 0.5762 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.2969/2.246, allocations: 11.49 MB / 0.7133 GB, free: 2.297 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.000507/2.246, allocations: 483 kB / 0.7137 GB, free: 2.297 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002855/2.247, allocations: 248.8 kB / 0.714 GB, free: 2.273 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002063/2.247, allocations: 200.8 kB / 0.7142 GB, free: 2.273 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002238/2.247, allocations: 216.7 kB / 0.7144 GB, free: 2.273 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 4.912e-05/2.247, allocations: 40.5 kB / 0.7144 GB, free: 2.273 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03063/2.278, allocations: 19.67 MB / 0.7336 GB, free: 2.168 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001748/2.278, allocations: 89.61 kB / 0.7337 GB, free: 2.168 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0002904/2.278, allocations: 225.9 kB / 0.7339 GB, free: 2.168 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.02193/2.3, allocations: 9.843 MB / 0.7435 GB, free: 15.68 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 6.963e-06/2.3, allocations: 3.562 kB / 0.7435 GB, free: 15.68 MB / 0.5919 GB Notification: Performance of FrontEnd: time 2.665e-06/2.3, allocations: 0.9062 kB / 0.7435 GB, free: 15.68 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 9.668e-06/2.3, allocations: 3.094 kB / 0.7435 GB, free: 15.68 MB / 0.5919 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.005211/2.305, allocations: 1.848 MB / 0.7453 GB, free: 14.5 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.184e-05/2.305, allocations: 15.33 kB / 0.7454 GB, free: 14.49 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001122/2.306, allocations: 53.22 kB / 0.7454 GB, free: 14.46 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00038/2.306, allocations: 327.8 kB / 0.7457 GB, free: 14.2 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.641e-05/2.306, allocations: 58.45 kB / 0.7458 GB, free: 14.17 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.132e-05/2.306, allocations: 39.09 kB / 0.7458 GB, free: 14.17 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005834/2.307, allocations: 407.6 kB / 0.7462 GB, free: 14.01 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.631e-05/2.307, allocations: 0.9375 kB / 0.7462 GB, free: 14.01 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.482e-05/2.307, allocations: 23.12 kB / 0.7462 GB, free: 14 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.117e-06/2.307, allocations: 8.344 kB / 0.7462 GB, free: 14 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004676/2.307, allocations: 279.4 kB / 0.7465 GB, free: 13.96 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001675/2.309, allocations: 2.025 MB / 0.7485 GB, free: 12.23 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005608/2.31, allocations: 221.5 kB / 0.7487 GB, free: 12.18 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001424/2.31, allocations: 85.09 kB / 0.7488 GB, free: 12.16 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2399/2.55, allocations: 122.5 MB / 0.8684 GB, free: 14.14 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003721/2.55, allocations: 139.3 kB / 0.8686 GB, free: 14.03 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=21): time 3.707e-06/2.55, allocations: 0 / 0.8686 GB, free: 14.03 MB / 0.7169 GB Notification: Performance of matching and sorting (n=21): time 0.001057/2.551, allocations: 412.3 kB / 0.8689 GB, free: 13.67 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.264e-05/2.551, allocations: 59.16 kB / 0.869 GB, free: 13.6 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003427/2.552, allocations: 315.8 kB / 0.8693 GB, free: 13.34 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.177e-05/2.552, allocations: 30.53 kB / 0.8693 GB, free: 13.31 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001403/2.552, allocations: 243.7 kB / 0.8696 GB, free: 13.12 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 4.915e-05/2.552, allocations: 68.84 kB / 0.8696 GB, free: 13.06 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001027/2.552, allocations: 77.97 kB / 0.8697 GB, free: 13 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 0.0001094/2.552, allocations: 340.8 kB / 0.87 GB, free: 12.67 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000177/2.552, allocations: 81.11 kB / 0.8701 GB, free: 12.62 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002265/2.552, allocations: 185.8 kB / 0.8703 GB, free: 12.43 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003742/2.553, allocations: 267.6 kB / 0.8705 GB, free: 12.2 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.948e-06/2.553, allocations: 0 / 0.8705 GB, free: 12.2 MB / 0.7169 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.000829/2.554, allocations: 396.3 kB / 0.8709 GB, free: 11.91 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.702e-05/2.554, allocations: 4 kB / 0.8709 GB, free: 11.9 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.827e-06/2.554, allocations: 4 kB / 0.8709 GB, free: 11.9 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009872/2.555, allocations: 166.8 kB / 0.8711 GB, free: 11.75 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001927/2.555, allocations: 56.22 kB / 0.8711 GB, free: 11.7 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002255/2.557, allocations: 2.375 MB / 0.8735 GB, free: 9.328 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002542/2.557, allocations: 43.64 kB / 0.8735 GB, free: 9.293 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.885e-05/2.557, allocations: 18.5 kB / 0.8735 GB, free: 9.277 MB / 0.7169 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.0001792/2.558, allocations: 162.5 kB / 0.8737 GB, free: 9.137 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.614e-05/2.558, allocations: 32.25 kB / 0.8737 GB, free: 9.105 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000746/2.558, allocations: 318.5 kB / 0.874 GB, free: 8.855 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.21e-06/2.558, allocations: 5.203 kB / 0.874 GB, free: 8.852 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.763e-06/2.558, allocations: 0 / 0.874 GB, free: 8.852 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.58e-06/2.558, allocations: 3.984 kB / 0.874 GB, free: 8.848 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003752/2.559, allocations: 387 kB / 0.8744 GB, free: 8.5 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/2.559, allocations: 4 kB / 0.8744 GB, free: 8.496 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002663/2.559, allocations: 50.47 kB / 0.8744 GB, free: 8.453 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004195/2.56, allocations: 68.47 kB / 0.8745 GB, free: 8.387 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.871e-05/2.56, allocations: 3 kB / 0.8745 GB, free: 8.387 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003867/2.56, allocations: 0.5739 MB / 0.8751 GB, free: 7.812 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/2.56, allocations: 0 / 0.8751 GB, free: 7.812 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007401/2.561, allocations: 386.1 kB / 0.8754 GB, free: 7.508 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001034/2.561, allocations: 125.8 kB / 0.8755 GB, free: 7.375 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.984e-05/2.561, allocations: 3.25 kB / 0.8756 GB, free: 7.375 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001619/2.561, allocations: 23.34 kB / 0.8756 GB, free: 7.355 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.586e-05/2.561, allocations: 23.41 kB / 0.8756 GB, free: 7.336 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.36e-05/2.561, allocations: 10.11 kB / 0.8756 GB, free: 7.328 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0002144/2.561, allocations: 232.1 kB / 0.8758 GB, free: 7.145 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.4e-07/2.561, allocations: 1.094 kB / 0.8758 GB, free: 7.145 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.003846/2.565, allocations: 1.47 MB / 0.8773 GB, free: 5.781 MB / 0.7169 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.005943/2.571, allocations: 2.21 MB / 0.8794 GB, free: 3.891 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0008298/2.572, allocations: 365.7 kB / 0.8798 GB, free: 3.598 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/2.572, allocations: 0 / 0.8798 GB, free: 3.598 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0002715/2.572, allocations: 112.5 kB / 0.8799 GB, free: 3.52 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004403/2.573, allocations: 87.92 kB / 0.88 GB, free: 3.457 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001327/2.574, allocations: 0.7799 MB / 0.8807 GB, free: 2.707 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003095/2.574, allocations: 0.7962 MB / 0.8815 GB, free: 1.883 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0001783/2.575, allocations: 42.95 kB / 0.8815 GB, free: 1.844 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.945e-05/2.575, allocations: 33.06 kB / 0.8816 GB, free: 1.812 MB / 0.7169 GB Notification: Performance of SimCode: time 2.7e-07/2.575, allocations: 0 / 0.8816 GB, free: 1.812 MB / 0.7169 GB Notification: Performance of Templates: time 0.05812/2.633, allocations: 47.37 MB / 0.9278 GB, free: 2.543 MB / 0.7637 GB make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.makefile (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)