Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.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: translateModel(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve") translateModel(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.7927/0.7927, allocations: 150.9 MB / 166 MB, free: 14.59 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003455/0.0003455, allocations: 11.98 kB / 204 MB, free: 10.1 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1556/0.1559, allocations: 31.33 MB / 235.4 MB, free: 5.688 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.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve): time 1.543/1.699, allocations: 292.8 MB / 0.5158 GB, free: 13.82 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.04178/1.741, allocations: 38.01 MB / 0.5529 GB, free: 7.949 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002418/1.741, allocations: 4 kB / 0.5529 GB, free: 7.945 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.0003951/1.742, allocations: 95.47 kB / 0.553 GB, free: 7.852 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002576/1.742, allocations: 119.2 kB / 0.5531 GB, free: 7.734 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01902/1.761, allocations: 7.289 MB / 0.5602 GB, free: 452 kB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.00053/1.762, allocations: 426.6 kB / 0.5606 GB, free: 24 kB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002208/1.762, allocations: 138.6 kB / 0.5608 GB, free: 15.88 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002335/1.762, allocations: 159.2 kB / 0.5609 GB, free: 15.73 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001888/1.762, allocations: 159.2 kB / 0.5611 GB, free: 15.57 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 3.318e-05/1.762, allocations: 16 kB / 0.5611 GB, free: 15.55 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02664/1.789, allocations: 17.75 MB / 0.5784 GB, free: 13.79 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001493/1.789, allocations: 59.7 kB / 0.5785 GB, free: 13.73 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000218/1.789, allocations: 163.1 kB / 0.5786 GB, free: 13.57 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01928/1.809, allocations: 8.511 MB / 0.587 GB, free: 5.035 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.103e-06/1.809, allocations: 0 / 0.587 GB, free: 5.035 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.492e-06/1.809, allocations: 4 kB / 0.587 GB, free: 5.031 MB / 478.1 MB Notification: Performance of Transformations before backend: time 9.167e-06/1.809, allocations: 0 / 0.587 GB, free: 5.031 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.004808/1.814, allocations: 1.536 MB / 0.5885 GB, free: 3.445 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.57e-05/1.814, allocations: 12.03 kB / 0.5885 GB, free: 3.434 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.277e-05/1.814, allocations: 43.45 kB / 0.5885 GB, free: 3.391 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003014/1.814, allocations: 270.3 kB / 0.5888 GB, free: 3.086 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.386e-05/1.814, allocations: 46.27 kB / 0.5888 GB, free: 3.035 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.673e-05/1.814, allocations: 24 kB / 0.5888 GB, free: 3.012 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000524/1.815, allocations: 350.7 kB / 0.5892 GB, free: 2.641 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.548e-05/1.815, allocations: 3.906 kB / 0.5892 GB, free: 2.637 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.674e-05/1.815, allocations: 12.52 kB / 0.5892 GB, free: 2.625 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.531e-05/1.815, allocations: 15.94 kB / 0.5892 GB, free: 2.609 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003962/1.815, allocations: 229.7 kB / 0.5894 GB, free: 2.387 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.01893/1.834, allocations: 9.993 MB / 0.5992 GB, free: 7.355 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000678/1.835, allocations: 271 kB / 0.5994 GB, free: 7.078 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002282/1.835, allocations: 149.2 kB / 0.5996 GB, free: 6.93 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1584/1.993, allocations: 85.48 MB / 0.6831 GB, free: 7.828 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004079/1.994, allocations: 217.1 kB / 0.6833 GB, free: 7.598 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=48): time 1.954e-06/1.994, allocations: 0 / 0.6833 GB, free: 7.598 MB / 0.5762 GB Notification: Performance of matching and sorting (n=48): time 0.001247/1.995, allocations: 0.5733 MB / 0.6838 GB, free: 6.996 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.234e-05/1.995, allocations: 85 kB / 0.6839 GB, free: 6.895 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002557/1.996, allocations: 254.6 kB / 0.6841 GB, free: 6.645 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.438e-05/1.996, allocations: 25.7 kB / 0.6842 GB, free: 6.613 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001038/1.996, allocations: 172.8 kB / 0.6843 GB, free: 6.441 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 9.327e-05/1.996, allocations: 149.8 kB / 0.6845 GB, free: 6.293 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.915e-05/1.996, allocations: 69.81 kB / 0.6845 GB, free: 6.219 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001177/1.996, allocations: 342.8 kB / 0.6849 GB, free: 5.875 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001853/1.996, allocations: 108.8 kB / 0.685 GB, free: 5.766 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002085/1.996, allocations: 164.1 kB / 0.6851 GB, free: 5.594 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003908/1.997, allocations: 283.2 kB / 0.6854 GB, free: 5.305 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.876e-06/1.997, allocations: 0 / 0.6854 GB, free: 5.305 MB / 0.5762 GB Notification: Performance of matching and sorting (n=55) (initialization): time 0.0007795/1.998, allocations: 438.6 kB / 0.6858 GB, free: 4.859 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.719e-05/1.998, allocations: 7.938 kB / 0.6858 GB, free: 4.852 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.135e-06/1.998, allocations: 0 / 0.6858 GB, free: 4.852 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009926/1.999, allocations: 197.6 kB / 0.686 GB, free: 4.652 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001169/1.999, allocations: 24.27 kB / 0.686 GB, free: 4.629 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002192/2.001, allocations: 2.265 MB / 0.6883 GB, free: 2.203 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002063/2.001, allocations: 39.61 kB / 0.6883 GB, free: 2.164 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.796e-05/2.001, allocations: 11.98 kB / 0.6883 GB, free: 2.152 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.0001675/2.001, allocations: 157.7 kB / 0.6885 GB, free: 1.988 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.583e-05/2.001, allocations: 31.62 kB / 0.6885 GB, free: 1.957 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007711/2.002, allocations: 0.56 MB / 0.689 GB, free: 1.359 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0005084/2.003, allocations: 374.2 kB / 0.6894 GB, free: 0.9805 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.144e-06/2.003, allocations: 0 / 0.6894 GB, free: 0.9805 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.138e-06/2.003, allocations: 0 / 0.6894 GB, free: 0.9805 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1588/2.162, allocations: 0.9878 MB / 0.6903 GB, free: 226.5 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.756e-06/2.162, allocations: 0 / 0.6903 GB, free: 226.5 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00033/2.162, allocations: 56.34 kB / 0.6904 GB, free: 226.5 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005194/2.162, allocations: 118.5 kB / 0.6905 GB, free: 226.5 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.526e-05/2.162, allocations: 4.984 kB / 0.6905 GB, free: 226.5 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004726/2.163, allocations: 0.6367 MB / 0.6911 GB, free: 226 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/2.163, allocations: 0 / 0.6911 GB, free: 226 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009405/2.164, allocations: 0.6514 MB / 0.6918 GB, free: 225.9 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000111/2.164, allocations: 134.4 kB / 0.6919 GB, free: 225.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.246e-05/2.164, allocations: 9.188 kB / 0.6919 GB, free: 225.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002066/2.164, allocations: 28.53 kB / 0.6919 GB, free: 225.8 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.119e-05/2.164, allocations: 31.27 kB / 0.692 GB, free: 225.8 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.654e-05/2.164, allocations: 6.688 kB / 0.692 GB, free: 225.8 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002002/2.165, allocations: 220.7 kB / 0.6922 GB, free: 225.7 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.5e-07/2.165, allocations: 2.125 kB / 0.6922 GB, free: 225.7 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.003153/2.168, allocations: 1.21 MB / 0.6934 GB, free: 225.7 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.004866/2.173, allocations: 1.79 MB / 0.6951 GB, free: 225.5 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0009437/2.174, allocations: 493.8 kB / 0.6956 GB, free: 225.4 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.985e-06/2.174, allocations: 2.312 kB / 0.6956 GB, free: 225.4 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0003973/2.174, allocations: 194.1 kB / 0.6958 GB, free: 225.4 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007909/2.175, allocations: 129.5 kB / 0.6959 GB, free: 225.4 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001354/2.176, allocations: 0.9998 MB / 0.6969 GB, free: 224.9 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002298/2.176, allocations: 0.8077 MB / 0.6977 GB, free: 224.2 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001474/2.177, allocations: 32.64 kB / 0.6977 GB, free: 224.2 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.105e-05/2.177, allocations: 32.84 kB / 0.6977 GB, free: 224.2 MB / 0.5762 GB Notification: Performance of SimCode: time 2.5e-07/2.177, allocations: 0 / 0.6977 GB, free: 224.2 MB / 0.5762 GB Notification: Performance of Templates: time 0.04612/2.223, allocations: 43.85 MB / 0.7406 GB, free: 200.5 MB / 0.5762 GB make -j1 -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.makefile (rm -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.sim & ./ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.pipe 2>&1)