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.845/0.845, allocations: 150.9 MB / 166.4 MB, free: 14.49 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005773/0.0005774, allocations: 19.97 kB / 204.6 MB, free: 9.734 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1459/0.1465, allocations: 31.33 MB / 236 MB, free: 5.402 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.539/1.686, allocations: 295 MB / 0.5185 GB, free: 13.04 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03779/1.724, allocations: 34.86 MB / 0.5526 GB, free: 10.31 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002273/1.724, allocations: 4 kB / 0.5526 GB, free: 10.3 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.0004027/1.724, allocations: 119.3 kB / 0.5527 GB, free: 10.19 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000287/1.724, allocations: 130.9 kB / 0.5528 GB, free: 10.06 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.0226/1.747, allocations: 9.759 MB / 0.5623 GB, free: 308 kB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005412/1.748, allocations: 450.6 kB / 0.5628 GB, free: 15.86 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002251/1.748, allocations: 154.6 kB / 0.5629 GB, free: 15.71 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002275/1.748, allocations: 183.2 kB / 0.5631 GB, free: 15.53 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002116/1.748, allocations: 167.2 kB / 0.5632 GB, free: 15.36 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 4.084e-05/1.748, allocations: 24 kB / 0.5633 GB, free: 15.34 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02728/1.776, allocations: 17.68 MB / 0.5805 GB, free: 13.64 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000149/1.776, allocations: 67.7 kB / 0.5806 GB, free: 13.57 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002426/1.776, allocations: 179.1 kB / 0.5808 GB, free: 13.39 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01621/1.792, allocations: 8.507 MB / 0.5891 GB, free: 4.867 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.05e-06/1.792, allocations: 0 / 0.5891 GB, free: 4.867 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.583e-06/1.792, allocations: 0 / 0.5891 GB, free: 4.867 MB / 478.1 MB Notification: Performance of Transformations before backend: time 7.985e-06/1.792, allocations: 0 / 0.5891 GB, free: 4.867 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.003663/1.796, allocations: 1.548 MB / 0.5906 GB, free: 3.27 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.768e-05/1.796, allocations: 12.03 kB / 0.5906 GB, free: 3.258 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.425e-05/1.796, allocations: 70.47 kB / 0.5907 GB, free: 3.18 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.617e-05/1.796, allocations: 43.47 kB / 0.5907 GB, free: 3.137 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002635/1.797, allocations: 266.3 kB / 0.591 GB, free: 2.836 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.128e-05/1.797, allocations: 42.27 kB / 0.591 GB, free: 2.789 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.434e-05/1.797, allocations: 27.91 kB / 0.591 GB, free: 2.762 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005022/1.797, allocations: 350.7 kB / 0.5914 GB, free: 2.391 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.362e-05/1.797, allocations: 0 / 0.5914 GB, free: 2.391 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.95e-05/1.797, allocations: 15.98 kB / 0.5914 GB, free: 2.375 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.621e-05/1.797, allocations: 17.77 kB / 0.5914 GB, free: 2.359 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003825/1.798, allocations: 229.8 kB / 0.5916 GB, free: 2.133 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.02071/1.818, allocations: 9.98 MB / 0.6014 GB, free: 7.117 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006732/1.819, allocations: 274.9 kB / 0.6016 GB, free: 6.836 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002146/1.819, allocations: 141.2 kB / 0.6018 GB, free: 6.695 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1817/2.001, allocations: 85.47 MB / 0.6852 GB, free: 7.605 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004029/2.001, allocations: 223.9 kB / 0.6854 GB, free: 7.371 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=48): time 2.224e-06/2.001, allocations: 0 / 0.6854 GB, free: 7.371 MB / 0.5762 GB Notification: Performance of matching and sorting (n=48): time 0.001267/2.003, allocations: 0.5739 MB / 0.686 GB, free: 6.77 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.408e-05/2.003, allocations: 85.06 kB / 0.6861 GB, free: 6.668 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002577/2.003, allocations: 250.6 kB / 0.6863 GB, free: 6.418 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.532e-05/2.003, allocations: 29.7 kB / 0.6863 GB, free: 6.383 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001131/2.003, allocations: 168.8 kB / 0.6865 GB, free: 6.215 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001042/2.003, allocations: 153.7 kB / 0.6867 GB, free: 6.062 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.822e-05/2.003, allocations: 65.91 kB / 0.6867 GB, free: 5.992 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001059/2.004, allocations: 342.8 kB / 0.687 GB, free: 5.648 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000215/2.004, allocations: 112.7 kB / 0.6872 GB, free: 5.535 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002325/2.004, allocations: 164.1 kB / 0.6873 GB, free: 5.359 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000423/2.004, allocations: 287.2 kB / 0.6876 GB, free: 5.062 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/2.004, allocations: 0 / 0.6876 GB, free: 5.062 MB / 0.5762 GB Notification: Performance of matching and sorting (n=55) (initialization): time 0.0008552/2.005, allocations: 438.7 kB / 0.688 GB, free: 4.617 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.659e-05/2.005, allocations: 11.94 kB / 0.688 GB, free: 4.605 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.303e-06/2.005, allocations: 0 / 0.688 GB, free: 4.605 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001026/2.006, allocations: 193.5 kB / 0.6882 GB, free: 4.41 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001272/2.007, allocations: 31.92 kB / 0.6882 GB, free: 4.379 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002247/2.009, allocations: 2.434 MB / 0.6906 GB, free: 1.781 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002107/2.009, allocations: 31.67 kB / 0.6906 GB, free: 1.75 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.733e-05/2.009, allocations: 16.12 kB / 0.6907 GB, free: 1.734 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.0001516/2.009, allocations: 147.3 kB / 0.6908 GB, free: 1.582 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.442e-05/2.009, allocations: 39.47 kB / 0.6908 GB, free: 1.543 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008289/2.01, allocations: 0.568 MB / 0.6914 GB, free: 0.9375 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0005369/2.011, allocations: 370.2 kB / 0.6917 GB, free: 0.5664 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/2.011, allocations: 3.938 kB / 0.6917 GB, free: 0.5625 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.354e-06/2.011, allocations: 3.984 kB / 0.6917 GB, free: 0.5586 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1462/2.157, allocations: 0.976 MB / 0.6927 GB, free: 225.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.461e-06/2.157, allocations: 0.6094 kB / 0.6927 GB, free: 225.9 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003116/2.157, allocations: 57.08 kB / 0.6928 GB, free: 225.9 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003734/2.158, allocations: 105.7 kB / 0.6929 GB, free: 225.9 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.307e-05/2.158, allocations: 7.531 kB / 0.6929 GB, free: 225.9 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004007/2.158, allocations: 0.6419 MB / 0.6935 GB, free: 225.4 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.816e-06/2.158, allocations: 4.516 kB / 0.6935 GB, free: 225.4 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009428/2.159, allocations: 0.6521 MB / 0.6941 GB, free: 225.3 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00012/2.159, allocations: 134.1 kB / 0.6943 GB, free: 225.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.015e-05/2.159, allocations: 10.06 kB / 0.6943 GB, free: 225.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002078/2.159, allocations: 17.02 kB / 0.6943 GB, free: 225.2 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.503e-05/2.16, allocations: 36.67 kB / 0.6943 GB, free: 225.2 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.652e-05/2.16, allocations: 9.359 kB / 0.6943 GB, free: 225.2 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.000201/2.16, allocations: 217.9 kB / 0.6945 GB, free: 225.1 MB / 0.5762 GB Notification: Performance of sort global known variables: time 5.01e-07/2.16, allocations: 2.5 kB / 0.6945 GB, free: 225.1 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002727/2.163, allocations: 1.205 MB / 0.6957 GB, free: 225.1 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.006386/2.169, allocations: 2.837 MB / 0.6985 GB, free: 224.3 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001044/2.17, allocations: 0.5012 MB / 0.699 GB, free: 224.2 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/2.17, allocations: 1.906 kB / 0.699 GB, free: 224.2 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0004133/2.17, allocations: 196.4 kB / 0.6992 GB, free: 224.2 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008235/2.171, allocations: 135.7 kB / 0.6993 GB, free: 224.2 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005221/2.177, allocations: 3.843 MB / 0.703 GB, free: 222.6 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001968/2.177, allocations: 0.8067 MB / 0.7038 GB, free: 221.9 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001703/2.177, allocations: 31.11 kB / 0.7039 GB, free: 221.9 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001427/2.177, allocations: 134.5 kB / 0.704 GB, free: 221.9 MB / 0.5762 GB Notification: Performance of SimCode: time 4.61e-07/2.177, allocations: 0 / 0.704 GB, free: 221.9 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07939/2.256, allocations: 50.04 MB / 0.7529 GB, free: 190.1 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.52/19.78, allocations: 4.75 kB / 0.7529 GB, free: 190.1 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)