Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.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.SimpleExamples.TestDynamicCheckValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestDynamicCheckValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_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.7413/0.7413, allocations: 150.8 MB / 166.1 MB, free: 14.63 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002712/0.0002712, allocations: 19.97 kB / 204.2 MB, free: 9.973 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1308/0.1311, allocations: 31.34 MB / 235.6 MB, free: 5.434 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.SimpleExamples.TestDynamicCheckValve): time 1.434/1.565, allocations: 293.9 MB / 0.5171 GB, free: 13.45 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03604/1.601, allocations: 35.07 MB / 0.5513 GB, free: 10.51 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002067/1.601, allocations: 4 kB / 0.5513 GB, free: 10.51 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.0003789/1.602, allocations: 104.3 kB / 0.5514 GB, free: 10.41 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002623/1.602, allocations: 123.2 kB / 0.5515 GB, free: 10.29 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.02087/1.623, allocations: 8.553 MB / 0.5599 GB, free: 1.73 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005555/1.623, allocations: 454.6 kB / 0.5603 GB, free: 1.285 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002041/1.624, allocations: 147.7 kB / 0.5604 GB, free: 1.145 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002161/1.624, allocations: 183.2 kB / 0.5606 GB, free: 0.9648 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001793/1.624, allocations: 167.2 kB / 0.5608 GB, free: 0.8008 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 3.292e-05/1.624, allocations: 24 kB / 0.5608 GB, free: 0.7773 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02496/1.649, allocations: 17.77 MB / 0.5782 GB, free: 14.99 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001151/1.649, allocations: 71.75 kB / 0.5782 GB, free: 14.92 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002043/1.649, allocations: 175.1 kB / 0.5784 GB, free: 14.75 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0147/1.664, allocations: 8.519 MB / 0.5867 GB, free: 6.207 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.728e-06/1.664, allocations: 0 / 0.5867 GB, free: 6.207 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.694e-06/1.664, allocations: 0 / 0.5867 GB, free: 6.207 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.12e-05/1.664, allocations: 0 / 0.5867 GB, free: 6.207 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.003853/1.668, allocations: 1.548 MB / 0.5882 GB, free: 4.605 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.909e-05/1.668, allocations: 12.03 kB / 0.5882 GB, free: 4.594 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.984e-05/1.668, allocations: 62.53 kB / 0.5883 GB, free: 4.523 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.262e-05/1.668, allocations: 47.47 kB / 0.5883 GB, free: 4.477 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002806/1.669, allocations: 258.3 kB / 0.5886 GB, free: 4.184 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.063e-05/1.669, allocations: 42.27 kB / 0.5886 GB, free: 4.137 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.295e-05/1.669, allocations: 35.84 kB / 0.5887 GB, free: 4.102 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005059/1.669, allocations: 350.7 kB / 0.589 GB, free: 3.734 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.51e-05/1.669, allocations: 0 / 0.589 GB, free: 3.734 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.327e-05/1.669, allocations: 13.36 kB / 0.589 GB, free: 3.723 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.756e-05/1.669, allocations: 19.92 kB / 0.589 GB, free: 3.703 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003666/1.67, allocations: 233.7 kB / 0.5892 GB, free: 3.473 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.01796/1.688, allocations: 9.978 MB / 0.599 GB, free: 8.461 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006022/1.688, allocations: 275 kB / 0.5993 GB, free: 8.18 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002102/1.688, allocations: 141.2 kB / 0.5994 GB, free: 8.039 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1548/1.843, allocations: 85.48 MB / 0.6829 GB, free: 8.938 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003849/1.844, allocations: 220 kB / 0.6831 GB, free: 8.707 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=48): time 2.374e-06/1.844, allocations: 0 / 0.6831 GB, free: 8.707 MB / 0.5762 GB Notification: Performance of matching and sorting (n=48): time 0.001173/1.845, allocations: 0.5733 MB / 0.6836 GB, free: 8.105 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.235e-05/1.845, allocations: 89 kB / 0.6837 GB, free: 8 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002426/1.845, allocations: 250.6 kB / 0.684 GB, free: 7.75 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.289e-05/1.845, allocations: 29.7 kB / 0.684 GB, free: 7.715 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 9.718e-05/1.845, allocations: 164.8 kB / 0.6841 GB, free: 7.551 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001017/1.845, allocations: 157.7 kB / 0.6843 GB, free: 7.395 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.843e-05/1.846, allocations: 65.92 kB / 0.6844 GB, free: 7.324 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001012/1.846, allocations: 342.8 kB / 0.6847 GB, free: 6.98 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001784/1.846, allocations: 108.8 kB / 0.6848 GB, free: 6.875 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001963/1.846, allocations: 160.1 kB / 0.6849 GB, free: 6.703 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003878/1.846, allocations: 299.4 kB / 0.6852 GB, free: 6.395 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.376e-06/1.846, allocations: 0 / 0.6852 GB, free: 6.395 MB / 0.5762 GB Notification: Performance of matching and sorting (n=55) (initialization): time 0.0007739/1.847, allocations: 438.6 kB / 0.6856 GB, free: 5.949 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.503e-05/1.847, allocations: 11.94 kB / 0.6856 GB, free: 5.938 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.853e-06/1.847, allocations: 0 / 0.6856 GB, free: 5.938 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009703/1.848, allocations: 197.5 kB / 0.6858 GB, free: 5.738 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001231/1.848, allocations: 27.92 kB / 0.6859 GB, free: 5.711 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002127/1.85, allocations: 2.427 MB / 0.6882 GB, free: 3.121 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000203/1.851, allocations: 35.67 kB / 0.6883 GB, free: 3.086 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.464e-05/1.851, allocations: 12.11 kB / 0.6883 GB, free: 3.074 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.0001431/1.851, allocations: 153.7 kB / 0.6884 GB, free: 2.914 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.872e-05/1.851, allocations: 31.53 kB / 0.6885 GB, free: 2.883 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007474/1.852, allocations: 0.5719 MB / 0.689 GB, free: 2.273 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0004819/1.852, allocations: 366.2 kB / 0.6894 GB, free: 1.906 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/1.852, allocations: 3.938 kB / 0.6894 GB, free: 1.902 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.252e-06/1.852, allocations: 0 / 0.6894 GB, free: 1.902 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001271/1.853, allocations: 0.9885 MB / 0.6903 GB, free: 0.8555 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.886e-06/1.854, allocations: 0 / 0.6903 GB, free: 0.8555 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002853/1.854, allocations: 63.92 kB / 0.6904 GB, free: 0.793 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003401/1.854, allocations: 100.8 kB / 0.6905 GB, free: 0.6914 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.492e-05/1.854, allocations: 7.984 kB / 0.6905 GB, free: 0.6836 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004443/1.855, allocations: 0.6395 MB / 0.6911 GB, free: 20 kB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/1.855, allocations: 3.984 kB / 0.6911 GB, free: 16 kB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1396/1.994, allocations: 0.6401 MB / 0.6918 GB, free: 226.2 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000129/1.994, allocations: 132.1 kB / 0.6919 GB, free: 226.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.629e-05/1.994, allocations: 15.94 kB / 0.6919 GB, free: 226.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002435/1.995, allocations: 16.73 kB / 0.6919 GB, free: 226.1 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8e-05/1.995, allocations: 35.66 kB / 0.6919 GB, free: 226.1 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.922e-05/1.995, allocations: 11.47 kB / 0.692 GB, free: 226.1 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002135/1.995, allocations: 219.1 kB / 0.6922 GB, free: 226 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2.31e-07/1.995, allocations: 0 / 0.6922 GB, free: 226 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002759/1.998, allocations: 1.208 MB / 0.6933 GB, free: 226 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.00597/2.004, allocations: 2.894 MB / 0.6962 GB, free: 225.3 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0009057/2.005, allocations: 0.4956 MB / 0.6967 GB, free: 225.1 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/2.005, allocations: 0.5938 kB / 0.6967 GB, free: 225.1 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0003762/2.005, allocations: 210.4 kB / 0.6969 GB, free: 225.1 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007183/2.006, allocations: 128.9 kB / 0.697 GB, free: 225.1 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004669/2.011, allocations: 3.976 MB / 0.7009 GB, free: 223.3 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002066/2.011, allocations: 0.8071 MB / 0.7016 GB, free: 222.6 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001561/2.011, allocations: 38.16 kB / 0.7017 GB, free: 222.6 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001337/2.011, allocations: 136.5 kB / 0.7018 GB, free: 222.6 MB / 0.5762 GB Notification: Performance of SimCode: time 3.21e-07/2.011, allocations: 0 / 0.7018 GB, free: 222.6 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06171/2.073, allocations: 50.14 MB / 0.7508 GB, free: 191.3 MB / 0.5762 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001452/2.073, allocations: 252.3 kB / 0.751 GB, free: 191 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.174/6.247, allocations: 0 / 0.751 GB, free: 191 MB / 0.5762 GB (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestDynamicCheckValve_fmu --startTime=0 --stopTime=300 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestDynamicCheckValve.fmu > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve.pipe 2>&1)