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.7215/0.7215, allocations: 150.9 MB / 166 MB, free: 14.66 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002763/0.0002763, allocations: 15.97 kB / 204.1 MB, free: 10.05 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1146/0.1149, allocations: 31.33 MB / 235.4 MB, free: 5.449 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.37/1.484, allocations: 293.9 MB / 0.5169 GB, free: 13.52 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03656/1.521, allocations: 38.01 MB / 0.554 GB, free: 7.645 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001593/1.521, allocations: 4 kB / 0.554 GB, free: 7.641 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.0003395/1.522, allocations: 100 kB / 0.5541 GB, free: 7.543 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002254/1.522, allocations: 115.1 kB / 0.5542 GB, free: 7.43 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0157/1.538, allocations: 7.287 MB / 0.5614 GB, free: 144 kB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.000408/1.538, allocations: 430.7 kB / 0.5618 GB, free: 15.72 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001817/1.538, allocations: 144.3 kB / 0.5619 GB, free: 15.58 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001952/1.538, allocations: 167.2 kB / 0.5621 GB, free: 15.41 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001657/1.539, allocations: 155.3 kB / 0.5622 GB, free: 15.26 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 3.16e-05/1.539, allocations: 16 kB / 0.5622 GB, free: 15.25 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02257/1.561, allocations: 17.73 MB / 0.5795 GB, free: 13.49 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 9.505e-05/1.561, allocations: 67.69 kB / 0.5796 GB, free: 13.42 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001771/1.561, allocations: 167 kB / 0.5798 GB, free: 13.26 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01206/1.573, allocations: 8.511 MB / 0.5881 GB, free: 4.727 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.778e-06/1.574, allocations: 0 / 0.5881 GB, free: 4.727 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.032e-06/1.574, allocations: 0 / 0.5881 GB, free: 4.727 MB / 478.1 MB Notification: Performance of Transformations before backend: time 4.849e-06/1.574, allocations: 0 / 0.5881 GB, free: 4.727 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.002935/1.576, allocations: 1.548 MB / 0.5896 GB, free: 3.129 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.574e-05/1.577, allocations: 8.031 kB / 0.5896 GB, free: 3.121 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.117e-05/1.577, allocations: 78.41 kB / 0.5897 GB, free: 3.035 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.062e-05/1.577, allocations: 43.47 kB / 0.5897 GB, free: 2.992 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002387/1.577, allocations: 258.3 kB / 0.59 GB, free: 2.699 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.843e-05/1.577, allocations: 46.27 kB / 0.59 GB, free: 2.648 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.085e-05/1.577, allocations: 24 kB / 0.59 GB, free: 2.625 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004667/1.577, allocations: 360.2 kB / 0.5904 GB, free: 2.242 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.258e-05/1.577, allocations: 3.906 kB / 0.5904 GB, free: 2.238 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.478e-05/1.578, allocations: 12 kB / 0.5904 GB, free: 2.227 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.468e-05/1.578, allocations: 19.92 kB / 0.5904 GB, free: 2.207 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003454/1.578, allocations: 217.8 kB / 0.5906 GB, free: 1.996 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.0173/1.595, allocations: 9.994 MB / 0.6004 GB, free: 6.969 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005711/1.596, allocations: 271 kB / 0.6006 GB, free: 6.691 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001949/1.596, allocations: 145.2 kB / 0.6008 GB, free: 6.547 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1452/1.741, allocations: 85.46 MB / 0.6842 GB, free: 7.457 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003609/1.742, allocations: 223.9 kB / 0.6844 GB, free: 7.219 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=48): time 1.593e-06/1.742, allocations: 0 / 0.6844 GB, free: 7.219 MB / 0.5762 GB Notification: Performance of matching and sorting (n=48): time 0.001119/1.743, allocations: 0.5773 MB / 0.685 GB, free: 6.613 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.34e-05/1.743, allocations: 85.06 kB / 0.6851 GB, free: 6.512 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002244/1.743, allocations: 250.6 kB / 0.6853 GB, free: 6.266 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.066e-05/1.743, allocations: 29.7 kB / 0.6854 GB, free: 6.23 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 9.362e-05/1.743, allocations: 164.8 kB / 0.6855 GB, free: 6.066 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 8.818e-05/1.743, allocations: 157.7 kB / 0.6857 GB, free: 5.91 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.388e-05/1.743, allocations: 66.11 kB / 0.6857 GB, free: 5.84 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 9.842e-05/1.743, allocations: 342.8 kB / 0.6861 GB, free: 5.496 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001751/1.744, allocations: 112.8 kB / 0.6862 GB, free: 5.383 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001965/1.744, allocations: 164 kB / 0.6863 GB, free: 5.211 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003697/1.744, allocations: 287.2 kB / 0.6866 GB, free: 4.918 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/1.744, allocations: 0 / 0.6866 GB, free: 4.918 MB / 0.5762 GB Notification: Performance of matching and sorting (n=55) (initialization): time 0.0007618/1.745, allocations: 442.5 kB / 0.687 GB, free: 4.469 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.52e-05/1.745, allocations: 4 kB / 0.687 GB, free: 4.465 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.123e-06/1.745, allocations: 8.125 kB / 0.687 GB, free: 4.457 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009445/1.746, allocations: 189.5 kB / 0.6872 GB, free: 4.266 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001141/1.746, allocations: 27.92 kB / 0.6872 GB, free: 4.238 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001889/1.748, allocations: 2.249 MB / 0.6894 GB, free: 1.828 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001883/1.748, allocations: 47.72 kB / 0.6895 GB, free: 1.781 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.179e-05/1.748, allocations: 12 kB / 0.6895 GB, free: 1.77 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.0001368/1.748, allocations: 155.3 kB / 0.6896 GB, free: 1.609 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.307e-05/1.748, allocations: 27.62 kB / 0.6897 GB, free: 1.582 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007371/1.749, allocations: 0.5639 MB / 0.6902 GB, free: 0.9805 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0004865/1.75, allocations: 368 kB / 0.6906 GB, free: 0.6094 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.994e-06/1.75, allocations: 0 / 0.6906 GB, free: 0.6094 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.282e-06/1.75, allocations: 7.984 kB / 0.6906 GB, free: 0.6016 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1306/1.88, allocations: 0.9752 MB / 0.6915 GB, free: 226 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.017e-06/1.88, allocations: 2.188 kB / 0.6915 GB, free: 226 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002693/1.881, allocations: 56.36 kB / 0.6916 GB, free: 226 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004751/1.881, allocations: 121 kB / 0.6917 GB, free: 226 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.921e-05/1.881, allocations: 7.031 kB / 0.6917 GB, free: 226 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003495/1.881, allocations: 0.6345 MB / 0.6923 GB, free: 225.5 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/1.881, allocations: 7.344 kB / 0.6923 GB, free: 225.5 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008299/1.882, allocations: 0.6445 MB / 0.693 GB, free: 225.3 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 9.626e-05/1.882, allocations: 131.2 kB / 0.6931 GB, free: 225.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.194e-05/1.882, allocations: 17.89 kB / 0.6931 GB, free: 225.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001963/1.883, allocations: 18.62 kB / 0.6931 GB, free: 225.2 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.982e-05/1.883, allocations: 32.77 kB / 0.6931 GB, free: 225.2 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.447e-05/1.883, allocations: 12.12 kB / 0.6932 GB, free: 225.2 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.000168/1.883, allocations: 218.8 kB / 0.6934 GB, free: 225.2 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.5e-07/1.883, allocations: 1.312 kB / 0.6934 GB, free: 225.2 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002563/1.885, allocations: 1.21 MB / 0.6945 GB, free: 225.2 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.004883/1.89, allocations: 2.898 MB / 0.6974 GB, free: 224.4 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0007438/1.891, allocations: 488.7 kB / 0.6978 GB, free: 224.3 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/1.891, allocations: 0 / 0.6978 GB, free: 224.3 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0003584/1.891, allocations: 202.1 kB / 0.698 GB, free: 224.3 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006785/1.892, allocations: 130.8 kB / 0.6982 GB, free: 224.3 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004062/1.896, allocations: 3.978 MB / 0.702 GB, free: 222.5 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001637/1.896, allocations: 0.8061 MB / 0.7028 GB, free: 221.8 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001292/1.897, allocations: 36.67 kB / 0.7029 GB, free: 221.8 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001211/1.897, allocations: 137.9 kB / 0.703 GB, free: 221.8 MB / 0.5762 GB Notification: Performance of SimCode: time 1.9e-07/1.897, allocations: 0 / 0.703 GB, free: 221.8 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.296/5.192, allocations: 49.61 MB / 0.7514 GB, free: 190.8 MB / 0.5762 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001835/5.193, allocations: 245.2 kB / 0.7517 GB, free: 190.5 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.456/9.649, allocations: 0 / 0.7517 GB, free: 190.5 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)