Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve.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.TestCheckValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestCheckValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestCheckValve",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.8431/0.8431, allocations: 150.9 MB / 166 MB, free: 14.68 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003317/0.0003317, allocations: 11.98 kB / 204.1 MB, free: 10.04 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1755/0.1759, allocations: 31.33 MB / 235.4 MB, free: 5.445 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.TestCheckValve): time 1.595/1.771, allocations: 293.6 MB / 0.5167 GB, free: 13.65 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.04263/1.813, allocations: 37.6 MB / 0.5534 GB, free: 8.184 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002306/1.814, allocations: 8 kB / 0.5534 GB, free: 8.176 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/CheckValve.mo:38:3-39:49: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/CheckValve.mo:40:3-41:47: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.0003494/1.814, allocations: 84.53 kB / 0.5535 GB, free: 8.094 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001812/1.814, allocations: 83.3 kB / 0.5535 GB, free: 8.012 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01932/1.833, allocations: 7.174 MB / 0.5606 GB, free: 0.832 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004898/1.834, allocations: 342.5 kB / 0.5609 GB, free: 0.4961 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001962/1.834, allocations: 127.3 kB / 0.561 GB, free: 380 kB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002083/1.834, allocations: 131.4 kB / 0.5611 GB, free: 248 kB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001235/1.835, allocations: 119.4 kB / 0.5612 GB, free: 128 kB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.594e-05/1.835, allocations: 12 kB / 0.5613 GB, free: 116 kB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02677/1.861, allocations: 17.73 MB / 0.5786 GB, free: 14.36 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 8.704e-05/1.861, allocations: 47.77 kB / 0.5786 GB, free: 14.31 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001965/1.862, allocations: 139.2 kB / 0.5787 GB, free: 14.17 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02022/1.882, allocations: 8.449 MB / 0.587 GB, free: 5.703 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.161e-06/1.882, allocations: 0 / 0.587 GB, free: 5.703 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.383e-06/1.882, allocations: 4 kB / 0.587 GB, free: 5.699 MB / 478.1 MB Notification: Performance of Transformations before backend: time 6.663e-06/1.882, allocations: 0 / 0.587 GB, free: 5.699 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: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.004335/1.886, allocations: 1.474 MB / 0.5884 GB, free: 4.176 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.161e-05/1.886, allocations: 12.03 kB / 0.5885 GB, free: 4.164 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.038e-05/1.886, allocations: 62.53 kB / 0.5885 GB, free: 4.094 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.413e-05/1.887, allocations: 35.56 kB / 0.5885 GB, free: 4.059 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002331/1.887, allocations: 244.4 kB / 0.5888 GB, free: 3.785 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.662e-05/1.887, allocations: 46.14 kB / 0.5888 GB, free: 3.73 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.656e-05/1.887, allocations: 16 kB / 0.5888 GB, free: 3.715 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004739/1.887, allocations: 318.7 kB / 0.5891 GB, free: 3.379 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.034e-05/1.887, allocations: 4 kB / 0.5891 GB, free: 3.375 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.081e-05/1.887, allocations: 7.938 kB / 0.5892 GB, free: 3.367 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.683e-05/1.887, allocations: 23.92 kB / 0.5892 GB, free: 3.344 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003411/1.888, allocations: 192.3 kB / 0.5894 GB, free: 3.156 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.01774/1.905, allocations: 9.904 MB / 0.599 GB, free: 8.219 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000289/1.906, allocations: 158.8 kB / 0.5992 GB, free: 8.055 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001599/1.906, allocations: 113.2 kB / 0.5993 GB, free: 7.941 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1561/2.062, allocations: 85.47 MB / 0.6828 GB, free: 8.852 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000369/2.062, allocations: 197 kB / 0.6829 GB, free: 8.641 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=43): time 2.465e-06/2.062, allocations: 3.938 kB / 0.683 GB, free: 8.637 MB / 0.5762 GB Notification: Performance of matching and sorting (n=43): time 0.001054/2.064, allocations: 0.4913 MB / 0.6834 GB, free: 8.117 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.217e-05/2.064, allocations: 89.12 kB / 0.6835 GB, free: 8.012 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000204/2.064, allocations: 214.8 kB / 0.6837 GB, free: 7.789 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.076e-05/2.064, allocations: 29.7 kB / 0.6837 GB, free: 7.754 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001367/2.064, allocations: 144.7 kB / 0.6839 GB, free: 7.609 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001123/2.064, allocations: 141.9 kB / 0.684 GB, free: 7.469 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.938e-05/2.064, allocations: 53.7 kB / 0.6841 GB, free: 7.41 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001227/2.064, allocations: 342.8 kB / 0.6844 GB, free: 7.066 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001716/2.065, allocations: 92.41 kB / 0.6845 GB, free: 6.977 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002156/2.065, allocations: 165.4 kB / 0.6846 GB, free: 6.789 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00134/2.066, allocations: 0.5185 MB / 0.6852 GB, free: 6.246 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/2.066, allocations: 0 / 0.6852 GB, free: 6.246 MB / 0.5762 GB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0006654/2.067, allocations: 366.7 kB / 0.6855 GB, free: 5.879 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.796e-05/2.067, allocations: 4 kB / 0.6855 GB, free: 5.875 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.464e-06/2.067, allocations: 0 / 0.6855 GB, free: 5.875 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006444/2.067, allocations: 120.7 kB / 0.6856 GB, free: 5.754 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000103/2.068, allocations: 20.41 kB / 0.6856 GB, free: 5.734 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004507/2.068, allocations: 0.6146 MB / 0.6862 GB, free: 5.094 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001659/2.068, allocations: 35.58 kB / 0.6863 GB, free: 5.059 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.857e-05/2.068, allocations: 15.94 kB / 0.6863 GB, free: 5.043 MB / 0.5762 GB Warning: Assuming fixed start value for the following 1 variables: pulse.T0:DISCRETE(fixed = true protected = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 15 ($PRE.checkValve3.touvert,$whenCondition3,$PRE.checkValve3.tferme,$whenCondition2,$whenCondition1,$PRE.pulse.T0,checkValve3.tferme,checkValve3.touvert,checkValve3.ouvert,$PRE.checkValve3.ouvert,pulse.T0,checkValve3.C2.b,checkValve3.C1.a,puitsP1.C.a,sourceP1.C.b) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0001955/2.068, allocations: 158.2 kB / 0.6864 GB, free: 4.883 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.437e-05/2.068, allocations: 23.66 kB / 0.6865 GB, free: 4.859 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007111/2.069, allocations: 0.5051 MB / 0.687 GB, free: 4.316 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000484/2.07, allocations: 322.3 kB / 0.6873 GB, free: 3.992 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/2.07, allocations: 0 / 0.6873 GB, free: 3.992 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.388e-06/2.07, allocations: 0 / 0.6873 GB, free: 3.992 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001232/2.071, allocations: 0.8809 MB / 0.6881 GB, free: 3.051 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.935e-06/2.071, allocations: 0 / 0.6881 GB, free: 3.051 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.833e-05/2.071, allocations: 23.98 kB / 0.6881 GB, free: 3.027 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006221/2.072, allocations: 128.7 kB / 0.6883 GB, free: 2.898 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.773e-05/2.072, allocations: 11.98 kB / 0.6883 GB, free: 2.887 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004004/2.072, allocations: 0.6187 MB / 0.6889 GB, free: 2.242 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/2.072, allocations: 0 / 0.6889 GB, free: 2.242 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000631/2.073, allocations: 443.8 kB / 0.6893 GB, free: 1.789 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001039/2.073, allocations: 128.6 kB / 0.6894 GB, free: 1.645 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.25e-05/2.073, allocations: 8 kB / 0.6894 GB, free: 1.637 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001464/2.073, allocations: 11.98 kB / 0.6895 GB, free: 1.625 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.473e-05/2.073, allocations: 31.33 kB / 0.6895 GB, free: 1.598 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.097e-05/2.073, allocations: 8 kB / 0.6895 GB, free: 1.59 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001854/2.073, allocations: 188.5 kB / 0.6897 GB, free: 1.406 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.8e-07/2.073, allocations: 0 / 0.6897 GB, free: 1.406 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002979/2.076, allocations: 1.194 MB / 0.6908 GB, free: 216 kB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition3,$whenCondition2,$whenCondition1,pulse.T0,checkValve3.ouvert,checkValve3.touvert,checkValve3.tferme) * Number of discrete states: 2 (checkValve3.touvert,checkValve3.tferme) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 2 * 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,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.1692/2.246, allocations: 2.654 MB / 0.6934 GB, free: 225.6 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0007927/2.246, allocations: 326 kB / 0.6937 GB, free: 225.6 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 6.592e-06/2.246, allocations: 0.9688 kB / 0.6937 GB, free: 225.6 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.000357/2.247, allocations: 151.4 kB / 0.6939 GB, free: 225.6 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008035/2.248, allocations: 122.5 kB / 0.694 GB, free: 225.6 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005034/2.253, allocations: 3.366 MB / 0.6973 GB, free: 224 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002376/2.253, allocations: 0.7835 MB / 0.6981 GB, free: 223.3 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001564/2.253, allocations: 25.91 kB / 0.6981 GB, free: 223.3 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001312/2.253, allocations: 106.1 kB / 0.6982 GB, free: 223.2 MB / 0.5762 GB Notification: Performance of SimCode: time 7.52e-07/2.253, allocations: 0 / 0.6982 GB, free: 223.2 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06483/2.318, allocations: 47.8 MB / 0.7449 GB, free: 196.7 MB / 0.5762 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001579/2.318, allocations: 252.8 kB / 0.7451 GB, free: 196.5 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.919/6.237, allocations: 3 kB / 0.7451 GB, free: 196.5 MB / 0.5762 GB (rm -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestCheckValve_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestCheckValve.fmu > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestCheckValve.pipe 2>&1)