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: "" <> buildModelFMU(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestDynamicCheckValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_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.8263/0.8263, allocations: 150.9 MB / 166 MB, free: 14.59 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003043/0.0003043, allocations: 15.97 kB / 204.1 MB, free: 9.984 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1378/0.1381, allocations: 31.33 MB / 235.4 MB, free: 5.434 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.534/1.673, allocations: 293.8 MB / 0.5168 GB, free: 13.52 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.04316/1.716, allocations: 38.01 MB / 0.5539 GB, free: 7.641 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000258/1.716, allocations: 4 kB / 0.5539 GB, free: 7.637 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.000404/1.716, allocations: 96.8 kB / 0.554 GB, free: 7.543 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002711/1.717, allocations: 111.2 kB / 0.5541 GB, free: 7.434 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01848/1.735, allocations: 7.296 MB / 0.5613 GB, free: 136 kB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.000534/1.736, allocations: 426.6 kB / 0.5617 GB, free: 15.71 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000215/1.736, allocations: 152.3 kB / 0.5618 GB, free: 15.56 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002206/1.736, allocations: 163.2 kB / 0.562 GB, free: 15.4 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001839/1.736, allocations: 155.2 kB / 0.5621 GB, free: 15.25 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 3.339e-05/1.736, allocations: 16 kB / 0.5621 GB, free: 15.23 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02741/1.764, allocations: 17.74 MB / 0.5795 GB, free: 13.47 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001462/1.764, allocations: 59.75 kB / 0.5795 GB, free: 13.41 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002246/1.764, allocations: 171 kB / 0.5797 GB, free: 13.24 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0209/1.785, allocations: 8.503 MB / 0.588 GB, free: 4.719 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/1.785, allocations: 0 / 0.588 GB, free: 4.719 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.263e-06/1.785, allocations: 0 / 0.588 GB, free: 4.719 MB / 478.1 MB Notification: Performance of Transformations before backend: time 6.031e-06/1.785, allocations: 0 / 0.588 GB, free: 4.719 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.004096/1.789, allocations: 1.552 MB / 0.5895 GB, free: 3.117 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.816e-05/1.789, allocations: 8.031 kB / 0.5895 GB, free: 3.109 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.257e-05/1.789, allocations: 66.53 kB / 0.5896 GB, free: 3.035 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.391e-05/1.79, allocations: 43.47 kB / 0.5896 GB, free: 2.992 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00026/1.79, allocations: 266.2 kB / 0.5899 GB, free: 2.691 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.276e-05/1.79, allocations: 50.27 kB / 0.5899 GB, free: 2.637 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.283e-05/1.79, allocations: 20 kB / 0.5899 GB, free: 2.617 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004956/1.79, allocations: 354.7 kB / 0.5903 GB, free: 2.242 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.615e-05/1.79, allocations: 7.906 kB / 0.5903 GB, free: 2.234 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.621e-05/1.79, allocations: 12 kB / 0.5903 GB, free: 2.223 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.827e-05/1.79, allocations: 19.92 kB / 0.5903 GB, free: 2.203 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003667/1.791, allocations: 225.7 kB / 0.5905 GB, free: 1.984 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.01787/1.809, allocations: 9.981 MB / 0.6003 GB, free: 6.965 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006044/1.809, allocations: 267 kB / 0.6005 GB, free: 6.691 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001972/1.81, allocations: 145.2 kB / 0.6007 GB, free: 6.547 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1534/1.963, allocations: 85.48 MB / 0.6841 GB, free: 7.449 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003713/1.963, allocations: 217.3 kB / 0.6843 GB, free: 7.219 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=48): time 1.693e-06/1.963, allocations: 0 / 0.6843 GB, free: 7.219 MB / 0.5762 GB Notification: Performance of matching and sorting (n=48): time 0.001146/1.965, allocations: 0.5869 MB / 0.6849 GB, free: 6.605 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.187e-05/1.965, allocations: 85.06 kB / 0.685 GB, free: 6.504 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002394/1.965, allocations: 250.6 kB / 0.6852 GB, free: 6.258 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.322e-05/1.965, allocations: 33.7 kB / 0.6853 GB, free: 6.219 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 9.255e-05/1.965, allocations: 164.9 kB / 0.6854 GB, free: 6.055 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 9.592e-05/1.965, allocations: 153.7 kB / 0.6856 GB, free: 5.902 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.18e-05/1.965, allocations: 73.77 kB / 0.6856 GB, free: 5.824 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001034/1.965, allocations: 342.8 kB / 0.686 GB, free: 5.48 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001784/1.965, allocations: 108.8 kB / 0.6861 GB, free: 5.371 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002039/1.966, allocations: 160.1 kB / 0.6862 GB, free: 5.203 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003824/1.966, allocations: 291.2 kB / 0.6865 GB, free: 4.906 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.285e-06/1.966, allocations: 0 / 0.6865 GB, free: 4.906 MB / 0.5762 GB Notification: Performance of matching and sorting (n=55) (initialization): time 0.0007689/1.967, allocations: 438.7 kB / 0.6869 GB, free: 4.461 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.613e-05/1.967, allocations: 8 kB / 0.6869 GB, free: 4.453 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/1.967, allocations: 0 / 0.6869 GB, free: 4.453 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009618/1.968, allocations: 189.5 kB / 0.6871 GB, free: 4.262 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001159/1.968, allocations: 31.97 kB / 0.6871 GB, free: 4.23 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002017/1.97, allocations: 2.248 MB / 0.6893 GB, free: 1.82 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001965/1.97, allocations: 43.52 kB / 0.6894 GB, free: 1.777 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.524e-05/1.97, allocations: 12 kB / 0.6894 GB, free: 1.766 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.0001483/1.97, allocations: 153.7 kB / 0.6895 GB, free: 1.605 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.523e-05/1.97, allocations: 35.69 kB / 0.6896 GB, free: 1.57 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007395/1.971, allocations: 0.5677 MB / 0.6901 GB, free: 0.9648 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0004891/1.972, allocations: 366.3 kB / 0.6905 GB, free: 0.5938 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.944e-06/1.972, allocations: 0 / 0.6905 GB, free: 0.5938 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.44e-06/1.972, allocations: 3.984 kB / 0.6905 GB, free: 0.5898 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1467/2.118, allocations: 0.9744 MB / 0.6914 GB, free: 226 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.469e-06/2.118, allocations: 0 / 0.6914 GB, free: 226 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002849/2.119, allocations: 58.73 kB / 0.6915 GB, free: 226 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004851/2.119, allocations: 121.5 kB / 0.6916 GB, free: 226 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.155e-05/2.119, allocations: 8.578 kB / 0.6916 GB, free: 226 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003642/2.12, allocations: 0.6349 MB / 0.6922 GB, free: 225.5 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.315e-06/2.12, allocations: 3.562 kB / 0.6922 GB, free: 225.5 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008611/2.121, allocations: 0.6516 MB / 0.6929 GB, free: 225.4 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001058/2.121, allocations: 133.1 kB / 0.693 GB, free: 225.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.299e-05/2.121, allocations: 17.36 kB / 0.693 GB, free: 225.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002071/2.121, allocations: 19.75 kB / 0.693 GB, free: 225.3 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.089e-05/2.121, allocations: 29.5 kB / 0.6931 GB, free: 225.3 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.483e-05/2.121, allocations: 10.3 kB / 0.6931 GB, free: 225.3 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001736/2.121, allocations: 221.6 kB / 0.6933 GB, free: 225.2 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.6e-07/2.121, allocations: 0 / 0.6933 GB, free: 225.2 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002807/2.124, allocations: 1.216 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.005375/2.129, allocations: 2.884 MB / 0.6973 GB, free: 224.5 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0007973/2.13, allocations: 490.7 kB / 0.6978 GB, free: 224.3 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/2.13, allocations: 0 / 0.6978 GB, free: 224.3 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0003604/2.131, allocations: 201.8 kB / 0.6979 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.0007243/2.131, allocations: 123.5 kB / 0.6981 GB, free: 224.3 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004395/2.136, allocations: 3.98 MB / 0.702 GB, free: 222.5 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002064/2.136, allocations: 0.8057 MB / 0.7027 GB, free: 221.9 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001476/2.136, allocations: 33.11 kB / 0.7028 GB, free: 221.9 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001307/2.136, allocations: 134.7 kB / 0.7029 GB, free: 221.8 MB / 0.5762 GB Notification: Performance of SimCode: time 6.42e-07/2.136, allocations: 0 / 0.7029 GB, free: 221.8 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06636/2.203, allocations: 49.64 MB / 0.7514 GB, free: 190.7 MB / 0.5762 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001758/2.203, allocations: 263.4 kB / 0.7516 GB, free: 190.3 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.99/6.193, allocations: 6.344 kB / 0.7516 GB, free: 190.3 MB / 0.5762 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestDynamicCheckValve_fmu --startTime=0 --stopTime=300 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestDynamicCheckValve.fmu > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicCheckValve.pipe 2>&1)