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.7634/0.7634, allocations: 150.9 MB / 166.5 MB, free: 14.42 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003162/0.0003162, allocations: 21.3 kB / 236.6 MB, free: 2.012 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05361/0.05394, allocations: 31.35 MB / 268 MB, free: 7.535 MB / 222.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.536/1.59, allocations: 294.8 MB / 0.5496 GB, free: 12.95 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.03659/1.626, allocations: 34.85 MB / 0.5836 GB, free: 9.953 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002588/1.627, allocations: 0 / 0.5836 GB, free: 9.953 MB / 478.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.0004297/1.627, allocations: 127.2 kB / 0.5838 GB, free: 9.828 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003026/1.627, allocations: 127 kB / 0.5839 GB, free: 9.703 MB / 478.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.02274/1.65, allocations: 9.764 MB / 0.5934 GB, free: 15.93 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006024/1.651, allocations: 462.5 kB / 0.5939 GB, free: 15.47 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002294/1.651, allocations: 152.6 kB / 0.594 GB, free: 15.32 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002522/1.651, allocations: 191.2 kB / 0.5942 GB, free: 15.14 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002082/1.652, allocations: 163.2 kB / 0.5943 GB, free: 14.98 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.515e-05/1.652, allocations: 24 kB / 0.5944 GB, free: 14.95 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02938/1.681, allocations: 17.9 MB / 0.6118 GB, free: 13.03 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001582/1.681, allocations: 67.7 kB / 0.6119 GB, free: 12.96 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.000248/1.681, allocations: 179.1 kB / 0.6121 GB, free: 12.79 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.02142/1.703, allocations: 8.499 MB / 0.6204 GB, free: 4.27 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.713e-06/1.703, allocations: 3.938 kB / 0.6204 GB, free: 4.266 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.653e-06/1.703, allocations: 0 / 0.6204 GB, free: 4.266 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.039e-05/1.703, allocations: 4 kB / 0.6204 GB, free: 4.262 MB / 0.4981 GB 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.004696/1.708, allocations: 1.536 MB / 0.6219 GB, free: 2.676 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.366e-05/1.708, allocations: 12.03 kB / 0.6219 GB, free: 2.664 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.574e-05/1.708, allocations: 70.53 kB / 0.622 GB, free: 2.586 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.185e-05/1.708, allocations: 39.47 kB / 0.622 GB, free: 2.547 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003501/1.708, allocations: 270.2 kB / 0.6223 GB, free: 2.242 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.385e-05/1.708, allocations: 46.27 kB / 0.6223 GB, free: 2.191 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.453e-05/1.708, allocations: 24 kB / 0.6223 GB, free: 2.168 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005288/1.709, allocations: 354.7 kB / 0.6227 GB, free: 1.797 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.377e-05/1.709, allocations: 0 / 0.6227 GB, free: 1.797 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.694e-05/1.709, allocations: 8 kB / 0.6227 GB, free: 1.789 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.003e-05/1.709, allocations: 19.92 kB / 0.6227 GB, free: 1.77 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004137/1.709, allocations: 225.8 kB / 0.6229 GB, free: 1.551 MB / 0.4981 GB 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.02077/1.73, allocations: 10.04 MB / 0.6327 GB, free: 6.469 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006717/1.731, allocations: 274.9 kB / 0.633 GB, free: 6.188 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002578/1.731, allocations: 151 kB / 0.6331 GB, free: 6.039 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3545/2.086, allocations: 85.98 MB / 0.7171 GB, free: 210.7 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003651/2.086, allocations: 212.8 kB / 0.7173 GB, free: 210.6 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=48): time 1.663e-06/2.086, allocations: 1.219 kB / 0.7173 GB, free: 210.6 MB / 0.5919 GB Notification: Performance of matching and sorting (n=48): time 0.001111/2.087, allocations: 0.5798 MB / 0.7178 GB, free: 210.5 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.523e-05/2.087, allocations: 83.92 kB / 0.7179 GB, free: 210.4 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002148/2.087, allocations: 252.8 kB / 0.7182 GB, free: 210.3 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 1.817e-05/2.087, allocations: 30.2 kB / 0.7182 GB, free: 210.3 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 7.971e-05/2.088, allocations: 168.8 kB / 0.7184 GB, free: 210.2 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 7.617e-05/2.088, allocations: 161.2 kB / 0.7185 GB, free: 210.1 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.644e-05/2.088, allocations: 60.36 kB / 0.7186 GB, free: 210.1 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 5.625e-05/2.088, allocations: 344.8 kB / 0.7189 GB, free: 209.8 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001702/2.088, allocations: 109.8 kB / 0.719 GB, free: 209.8 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001896/2.088, allocations: 162.1 kB / 0.7192 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003548/2.088, allocations: 289.8 kB / 0.7194 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/2.089, allocations: 1.438 kB / 0.7194 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of matching and sorting (n=55) (initialization): time 0.0007132/2.089, allocations: 440.6 kB / 0.7199 GB, free: 209.6 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.67e-05/2.089, allocations: 8.938 kB / 0.7199 GB, free: 209.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.853e-06/2.089, allocations: 0 / 0.7199 GB, free: 209.6 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008843/2.09, allocations: 189.7 kB / 0.72 GB, free: 209.6 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001074/2.09, allocations: 31.41 kB / 0.7201 GB, free: 209.6 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001681/2.092, allocations: 2.422 MB / 0.7224 GB, free: 207.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001814/2.092, allocations: 44.8 kB / 0.7225 GB, free: 207.5 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.186e-05/2.092, allocations: 14.77 kB / 0.7225 GB, free: 207.5 MB / 0.5919 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.0001182/2.092, allocations: 153.9 kB / 0.7226 GB, free: 207.4 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.36e-05/2.092, allocations: 33 kB / 0.7227 GB, free: 207.4 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000646/2.093, allocations: 0.5649 MB / 0.7232 GB, free: 207.2 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0004207/2.093, allocations: 364.6 kB / 0.7236 GB, free: 207.2 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.066e-06/2.093, allocations: 1.172 kB / 0.7236 GB, free: 207.2 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.378e-06/2.093, allocations: 7.375 kB / 0.7236 GB, free: 207.2 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00104/2.095, allocations: 0.9717 MB / 0.7245 GB, free: 206.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/2.095, allocations: 0.625 kB / 0.7245 GB, free: 206.8 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002606/2.095, allocations: 63.31 kB / 0.7246 GB, free: 206.8 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002989/2.095, allocations: 107.9 kB / 0.7247 GB, free: 206.8 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.823e-05/2.095, allocations: 6.719 kB / 0.7247 GB, free: 206.8 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003198/2.095, allocations: 0.6304 MB / 0.7253 GB, free: 206.3 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/2.095, allocations: 6.531 kB / 0.7253 GB, free: 206.3 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007524/2.096, allocations: 0.65 MB / 0.726 GB, free: 206.1 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 8.576e-05/2.096, allocations: 132.2 kB / 0.7261 GB, free: 206 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.856e-05/2.096, allocations: 7.719 kB / 0.7261 GB, free: 206 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001852/2.097, allocations: 23.91 kB / 0.7261 GB, free: 206 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.361e-05/2.097, allocations: 39.08 kB / 0.7262 GB, free: 206 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.966e-05/2.097, allocations: 5.375 kB / 0.7262 GB, free: 206 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0001553/2.097, allocations: 217.3 kB / 0.7264 GB, free: 205.9 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.663e-06/2.097, allocations: 2.594 kB / 0.7264 GB, free: 205.9 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.00257/2.099, allocations: 1.217 MB / 0.7276 GB, free: 205.9 MB / 0.5919 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.004697/2.104, allocations: 2.828 MB / 0.7303 GB, free: 205 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0007863/2.105, allocations: 0.4917 MB / 0.7308 GB, free: 204.9 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/2.105, allocations: 0 / 0.7308 GB, free: 204.9 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.000358/2.105, allocations: 204.2 kB / 0.731 GB, free: 204.9 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006925/2.106, allocations: 125.2 kB / 0.7311 GB, free: 204.9 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004239/2.11, allocations: 3.839 MB / 0.7349 GB, free: 203.1 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001935/2.11, allocations: 0.8066 MB / 0.7357 GB, free: 202.4 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0001346/2.111, allocations: 38.31 kB / 0.7357 GB, free: 202.4 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001269/2.111, allocations: 137.6 kB / 0.7358 GB, free: 202.4 MB / 0.5919 GB Notification: Performance of SimCode: time 3.01e-07/2.111, allocations: 0 / 0.7358 GB, free: 202.4 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06751/2.178, allocations: 49.99 MB / 0.7846 GB, free: 163.8 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.34/15.51, allocations: 3.438 kB / 0.7846 GB, free: 163.8 MB / 0.5919 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)