Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.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: "" <> buildModelFMU(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestDynamicCheckValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestDynamicCheckValve",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.7712/0.7712, allocations: 150.9 MB / 166.4 MB, free: 14.48 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000319/0.0003191, allocations: 23.97 kB / 204.6 MB, free: 9.664 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1287/0.129, allocations: 31.32 MB / 236 MB, free: 5.375 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.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve): time 1.477/1.606, allocations: 294.9 MB / 0.5184 GB, free: 13.1 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03735/1.643, allocations: 34.85 MB / 0.5524 GB, free: 10.38 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002509/1.643, allocations: 0 / 0.5524 GB, free: 10.38 MB / 446.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-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 4.0.0-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 4.0.0-master/WaterSteam/PressureLosses/DynamicCheckValve.mo:61:3-63:16: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 4.0.0-master/WaterSteam/PressureLosses/DynamicCheckValve.mo:64:3-65:51: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.0004376/1.644, allocations: 132.5 kB / 0.5526 GB, free: 10.25 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003564/1.644, allocations: 130.9 kB / 0.5527 GB, free: 10.12 MB / 446.1 MB [/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. Notification: Performance of NFTyping.typeClassSections: time 0.02291/1.667, allocations: 9.756 MB / 0.5622 GB, free: 376 kB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006884/1.668, allocations: 454.6 kB / 0.5626 GB, free: 15.92 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003144/1.668, allocations: 155.2 kB / 0.5628 GB, free: 15.77 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003533/1.668, allocations: 183.2 kB / 0.563 GB, free: 15.59 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002734/1.669, allocations: 163.2 kB / 0.5631 GB, free: 15.43 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 6.009e-05/1.669, allocations: 24 kB / 0.5631 GB, free: 15.41 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02991/1.699, allocations: 17.68 MB / 0.5804 GB, free: 13.71 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001266/1.699, allocations: 71.64 kB / 0.5805 GB, free: 13.64 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002222/1.699, allocations: 179.1 kB / 0.5806 GB, free: 13.46 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01771/1.717, allocations: 8.511 MB / 0.589 GB, free: 4.93 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.651e-06/1.717, allocations: 0 / 0.589 GB, free: 4.93 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.483e-06/1.717, allocations: 4 kB / 0.589 GB, free: 4.926 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.459e-05/1.717, allocations: 0 / 0.589 GB, free: 4.926 MB / 478.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.004317/1.721, allocations: 1.544 MB / 0.5905 GB, free: 3.332 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.032e-05/1.721, allocations: 8.031 kB / 0.5905 GB, free: 3.324 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.909e-05/1.721, allocations: 74.52 kB / 0.5905 GB, free: 3.242 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.687e-05/1.721, allocations: 43.47 kB / 0.5906 GB, free: 3.199 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002853/1.722, allocations: 258.3 kB / 0.5908 GB, free: 2.906 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.053e-05/1.722, allocations: 48.14 kB / 0.5909 GB, free: 2.855 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.933e-05/1.722, allocations: 27.91 kB / 0.5909 GB, free: 2.828 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005046/1.722, allocations: 358.7 kB / 0.5912 GB, free: 2.449 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.409e-05/1.722, allocations: 0 / 0.5912 GB, free: 2.449 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.786e-05/1.722, allocations: 8 kB / 0.5913 GB, free: 2.441 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.692e-05/1.722, allocations: 11.94 kB / 0.5913 GB, free: 2.43 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003749/1.723, allocations: 237.7 kB / 0.5915 GB, free: 2.195 MB / 478.1 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.02011/1.743, allocations: 9.985 MB / 0.6012 GB, free: 7.176 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006522/1.744, allocations: 267 kB / 0.6015 GB, free: 6.902 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001997/1.744, allocations: 149.2 kB / 0.6016 GB, free: 6.754 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1673/1.911, allocations: 85.47 MB / 0.6851 GB, free: 7.664 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003941/1.911, allocations: 216 kB / 0.6853 GB, free: 7.438 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=48): time 2.234e-06/1.911, allocations: 8 kB / 0.6853 GB, free: 7.43 MB / 0.5762 GB Notification: Performance of matching and sorting (n=48): time 0.001173/1.913, allocations: 0.5696 MB / 0.6859 GB, free: 6.832 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.991e-05/1.913, allocations: 93.05 kB / 0.686 GB, free: 6.723 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002374/1.913, allocations: 246.7 kB / 0.6862 GB, free: 6.48 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.542e-05/1.913, allocations: 37.62 kB / 0.6862 GB, free: 6.438 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 9.936e-05/1.913, allocations: 168.8 kB / 0.6864 GB, free: 6.27 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001043/1.913, allocations: 149.7 kB / 0.6865 GB, free: 6.121 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.115e-05/1.913, allocations: 65.91 kB / 0.6866 GB, free: 6.051 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001106/1.913, allocations: 342.8 kB / 0.6869 GB, free: 5.707 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001838/1.914, allocations: 112.7 kB / 0.687 GB, free: 5.594 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002259/1.914, allocations: 164.1 kB / 0.6872 GB, free: 5.418 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003865/1.914, allocations: 279.2 kB / 0.6875 GB, free: 5.129 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.639e-06/1.914, allocations: 4 kB / 0.6875 GB, free: 5.125 MB / 0.5762 GB Notification: Performance of matching and sorting (n=55) (initialization): time 0.0007724/1.915, allocations: 434.6 kB / 0.6879 GB, free: 4.684 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.755e-05/1.915, allocations: 13.8 kB / 0.6879 GB, free: 4.672 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.365e-06/1.915, allocations: 4 kB / 0.6879 GB, free: 4.668 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009367/1.916, allocations: 194.6 kB / 0.6881 GB, free: 4.473 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001131/1.916, allocations: 27.98 kB / 0.6881 GB, free: 4.445 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002253/1.918, allocations: 2.433 MB / 0.6905 GB, free: 1.848 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001967/1.919, allocations: 39.7 kB / 0.6905 GB, free: 1.809 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.384e-05/1.919, allocations: 12 kB / 0.6905 GB, free: 1.797 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 7 (checkValve.C2.b,checkValve.C1.a,puitsP1.C.a,sourceP1.C.b,checkValve.libre,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.0001585/1.919, allocations: 151.2 kB / 0.6907 GB, free: 1.641 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.983e-05/1.919, allocations: 35.53 kB / 0.6907 GB, free: 1.605 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007592/1.92, allocations: 0.564 MB / 0.6913 GB, free: 1 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000482/1.92, allocations: 358.3 kB / 0.6916 GB, free: 0.6406 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/1.92, allocations: 9.062 kB / 0.6916 GB, free: 0.6328 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.691e-06/1.92, allocations: 3.984 kB / 0.6916 GB, free: 0.6289 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1529/2.073, allocations: 0.9837 MB / 0.6926 GB, free: 226.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.589e-06/2.073, allocations: 3.875 kB / 0.6926 GB, free: 226.1 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000282/2.073, allocations: 59.56 kB / 0.6926 GB, free: 226.1 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003656/2.074, allocations: 103.2 kB / 0.6927 GB, free: 226.1 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.162e-05/2.074, allocations: 6.75 kB / 0.6927 GB, free: 226.1 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003805/2.074, allocations: 0.6381 MB / 0.6934 GB, free: 225.6 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/2.074, allocations: 0 / 0.6934 GB, free: 225.6 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008271/2.075, allocations: 0.6506 MB / 0.694 GB, free: 225.5 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001057/2.075, allocations: 138.4 kB / 0.6941 GB, free: 225.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.062e-05/2.075, allocations: 8.594 kB / 0.6941 GB, free: 225.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001856/2.075, allocations: 19.88 kB / 0.6942 GB, free: 225.4 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.747e-05/2.075, allocations: 35.09 kB / 0.6942 GB, free: 225.4 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.47e-05/2.075, allocations: 7.562 kB / 0.6942 GB, free: 225.4 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001851/2.076, allocations: 218.5 kB / 0.6944 GB, free: 225.3 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1e-07/2.076, allocations: 0 / 0.6944 GB, free: 225.3 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002703/2.078, allocations: 1.216 MB / 0.6956 GB, free: 225.3 MB / 0.5762 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 (30): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.005474/2.084, allocations: 2.828 MB / 0.6984 GB, free: 224.6 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.00101/2.085, allocations: 0.4991 MB / 0.6988 GB, free: 224.4 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.466e-06/2.085, allocations: 0.6875 kB / 0.6988 GB, free: 224.4 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0003722/2.085, allocations: 199.8 kB / 0.699 GB, free: 224.4 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001008/2.086, allocations: 143.2 kB / 0.6992 GB, free: 224.4 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004927/2.091, allocations: 3.833 MB / 0.7029 GB, free: 222.7 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001892/2.091, allocations: 0.8071 MB / 0.7037 GB, free: 222 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001591/2.092, allocations: 34.08 kB / 0.7037 GB, free: 222 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001365/2.092, allocations: 135.6 kB / 0.7039 GB, free: 222 MB / 0.5762 GB Notification: Performance of SimCode: time 4.51e-07/2.092, allocations: 0.9688 kB / 0.7039 GB, free: 222 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07416/2.166, allocations: 50.05 MB / 0.7527 GB, free: 190.2 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.28/14.45, allocations: 16.84 kB / 0.7528 GB, free: 190.2 MB / 0.5762 GB (rm -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.sim & python3 -m fmpy simulate --output-file ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve_res.csv --start-time 0 --stop-time 300 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.12 ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestDynamicCheckValve.fmu > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.pipe 2>&1)