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.794/0.794, allocations: 150.9 MB / 166.5 MB, free: 14.38 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003054/0.0003054, allocations: 18.44 kB / 236.6 MB, free: 1.98 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05787/0.05819, allocations: 31.34 MB / 267.9 MB, free: 7.539 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.618/1.676, allocations: 295 MB / 0.5497 GB, free: 12.75 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.04307/1.719, allocations: 34.84 MB / 0.5837 GB, free: 9.77 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002923/1.72, allocations: 7.938 kB / 0.5838 GB, free: 9.762 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.0005714/1.72, allocations: 127.2 kB / 0.5839 GB, free: 9.637 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005046/1.721, allocations: 134.9 kB / 0.584 GB, free: 9.504 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.02563/1.746, allocations: 9.749 MB / 0.5935 GB, free: 15.73 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006325/1.747, allocations: 454.5 kB / 0.594 GB, free: 15.29 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002242/1.747, allocations: 156.6 kB / 0.5941 GB, free: 15.14 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002302/1.748, allocations: 187.2 kB / 0.5943 GB, free: 14.95 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002165/1.748, allocations: 167.2 kB / 0.5944 GB, free: 14.79 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.513e-05/1.748, allocations: 24 kB / 0.5945 GB, free: 14.77 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0288/1.777, allocations: 17.9 MB / 0.6119 GB, free: 12.85 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001366/1.777, allocations: 67.77 kB / 0.612 GB, free: 12.78 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002322/1.777, allocations: 179 kB / 0.6122 GB, free: 12.61 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.01875/1.796, allocations: 8.503 MB / 0.6205 GB, free: 4.082 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.391e-06/1.796, allocations: 4 kB / 0.6205 GB, free: 4.078 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.052e-06/1.796, allocations: 0 / 0.6205 GB, free: 4.078 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.354e-05/1.796, allocations: 4 kB / 0.6205 GB, free: 4.074 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.00449/1.8, allocations: 1.544 MB / 0.622 GB, free: 2.48 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.197e-05/1.8, allocations: 8.031 kB / 0.622 GB, free: 2.473 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.797e-05/1.801, allocations: 70.52 kB / 0.6221 GB, free: 2.395 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.407e-05/1.801, allocations: 43.47 kB / 0.6221 GB, free: 2.352 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000293/1.801, allocations: 262.3 kB / 0.6224 GB, free: 2.055 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.986e-05/1.801, allocations: 46.27 kB / 0.6224 GB, free: 2.004 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.767e-05/1.801, allocations: 24 kB / 0.6224 GB, free: 1.98 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005439/1.802, allocations: 354.7 kB / 0.6228 GB, free: 1.609 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.493e-05/1.802, allocations: 0 / 0.6228 GB, free: 1.609 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.596e-05/1.802, allocations: 8 kB / 0.6228 GB, free: 1.602 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.509e-05/1.802, allocations: 15.94 kB / 0.6228 GB, free: 1.586 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003852/1.802, allocations: 229.7 kB / 0.623 GB, free: 1.363 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.01958/1.822, allocations: 10.04 MB / 0.6328 GB, free: 6.277 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006467/1.822, allocations: 271 kB / 0.6331 GB, free: 6 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002223/1.823, allocations: 143.1 kB / 0.6332 GB, free: 5.859 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3799/2.202, allocations: 85.99 MB / 0.7172 GB, free: 210 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004316/2.203, allocations: 212.8 kB / 0.7174 GB, free: 209.9 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=48): time 1.874e-06/2.203, allocations: 0.8125 kB / 0.7174 GB, free: 209.9 MB / 0.5919 GB Notification: Performance of matching and sorting (n=48): time 0.001198/2.204, allocations: 0.5778 MB / 0.718 GB, free: 209.8 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.494e-05/2.204, allocations: 83.73 kB / 0.718 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002331/2.204, allocations: 250.7 kB / 0.7183 GB, free: 209.6 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 2.018e-05/2.204, allocations: 34.64 kB / 0.7183 GB, free: 209.6 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 8.917e-05/2.205, allocations: 166.6 kB / 0.7185 GB, free: 209.5 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 8.375e-05/2.205, allocations: 156 kB / 0.7186 GB, free: 209.4 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.296e-05/2.205, allocations: 63.55 kB / 0.7187 GB, free: 209.4 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 7.165e-05/2.205, allocations: 345.8 kB / 0.719 GB, free: 209.1 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001733/2.205, allocations: 104.9 kB / 0.7191 GB, free: 209.1 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001923/2.205, allocations: 166.2 kB / 0.7193 GB, free: 209 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003784/2.206, allocations: 285.4 kB / 0.7195 GB, free: 209 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/2.206, allocations: 3.281 kB / 0.7195 GB, free: 209 MB / 0.5919 GB Notification: Performance of matching and sorting (n=55) (initialization): time 0.000697/2.206, allocations: 438.4 kB / 0.72 GB, free: 208.9 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.679e-05/2.206, allocations: 8.188 kB / 0.72 GB, free: 208.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.977e-06/2.206, allocations: 1.188 kB / 0.72 GB, free: 208.9 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009546/2.207, allocations: 189.2 kB / 0.7201 GB, free: 208.9 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001147/2.207, allocations: 30.33 kB / 0.7202 GB, free: 208.9 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001788/2.209, allocations: 2.429 MB / 0.7225 GB, free: 206.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001833/2.209, allocations: 40.59 kB / 0.7226 GB, free: 206.8 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.176e-05/2.209, allocations: 13.08 kB / 0.7226 GB, free: 206.8 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.0001362/2.21, allocations: 156.1 kB / 0.7227 GB, free: 206.7 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.099e-05/2.21, allocations: 32.34 kB / 0.7228 GB, free: 206.7 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006567/2.21, allocations: 0.5685 MB / 0.7233 GB, free: 206.5 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000425/2.211, allocations: 364.9 kB / 0.7237 GB, free: 206.4 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.054e-06/2.211, allocations: 4 kB / 0.7237 GB, free: 206.4 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.548e-06/2.211, allocations: 0 / 0.7237 GB, free: 206.4 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001107/2.212, allocations: 0.9779 MB / 0.7246 GB, free: 206.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.097e-06/2.212, allocations: 0.625 kB / 0.7246 GB, free: 206.1 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002566/2.212, allocations: 57.33 kB / 0.7247 GB, free: 206.1 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003131/2.212, allocations: 109.5 kB / 0.7248 GB, free: 206.1 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.206e-05/2.212, allocations: 8.047 kB / 0.7248 GB, free: 206.1 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003718/2.213, allocations: 0.6326 MB / 0.7254 GB, free: 205.6 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.756e-06/2.213, allocations: 8 kB / 0.7254 GB, free: 205.6 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008416/2.214, allocations: 0.6489 MB / 0.7261 GB, free: 205.4 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 9.066e-05/2.214, allocations: 132.5 kB / 0.7262 GB, free: 205.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.97e-05/2.214, allocations: 13.2 kB / 0.7262 GB, free: 205.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001862/2.214, allocations: 27.8 kB / 0.7262 GB, free: 205.3 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.148e-05/2.214, allocations: 34.55 kB / 0.7263 GB, free: 205.3 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.361e-05/2.214, allocations: 10.06 kB / 0.7263 GB, free: 205.3 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0001773/2.214, allocations: 219.3 kB / 0.7265 GB, free: 205.2 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.1e-07/2.214, allocations: 0 / 0.7265 GB, free: 205.2 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.003226/2.218, allocations: 1.213 MB / 0.7277 GB, free: 205.1 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.005465/2.223, allocations: 2.828 MB / 0.7304 GB, free: 204.3 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0008387/2.224, allocations: 0.4916 MB / 0.7309 GB, free: 204.1 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 3.377e-06/2.224, allocations: 2.344 kB / 0.7309 GB, free: 204.1 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0003633/2.224, allocations: 199.3 kB / 0.7311 GB, free: 204.1 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006989/2.225, allocations: 126.6 kB / 0.7312 GB, free: 204.1 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00505/2.23, allocations: 3.844 MB / 0.735 GB, free: 202.4 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002314/2.23, allocations: 0.8074 MB / 0.7358 GB, free: 201.7 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0001442/2.23, allocations: 29.2 kB / 0.7358 GB, free: 201.7 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001481/2.231, allocations: 135.8 kB / 0.7359 GB, free: 201.7 MB / 0.5919 GB Notification: Performance of SimCode: time 4.41e-07/2.231, allocations: 0 / 0.7359 GB, free: 201.7 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08008/2.311, allocations: 50.35 MB / 0.7851 GB, free: 162.8 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.32/15.63, allocations: 3.531 kB / 0.7851 GB, free: 162.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)