Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.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.TestControlValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestControlValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestControlValve",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.8785/0.8785, allocations: 150.9 MB / 166 MB, free: 14.56 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002194/0.0002193, allocations: 7.984 kB / 204.1 MB, free: 9.969 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.226/0.2263, allocations: 31.33 MB / 235.4 MB, free: 5.418 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.TestControlValve): time 1.763/1.99, allocations: 293.6 MB / 0.5166 GB, free: 13.68 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.04564/2.035, allocations: 37.9 MB / 0.5536 GB, free: 7.918 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003033/2.036, allocations: 4 kB / 0.5537 GB, free: 7.914 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/ControlValve.mo:45:3-47:43: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/ControlValve.mo:48:3-50:38: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.000414/2.036, allocations: 127.5 kB / 0.5538 GB, free: 7.789 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002976/2.036, allocations: 135.2 kB / 0.5539 GB, free: 7.656 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02283/2.059, allocations: 7.281 MB / 0.561 GB, free: 380 kB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006214/2.06, allocations: 362.4 kB / 0.5614 GB, free: 16 kB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002366/2.06, allocations: 125.9 kB / 0.5615 GB, free: 15.89 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002569/2.06, allocations: 151.2 kB / 0.5616 GB, free: 15.74 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002004/2.06, allocations: 167.4 kB / 0.5618 GB, free: 15.58 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 2.44e-05/2.061, allocations: 12 kB / 0.5618 GB, free: 15.57 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03167/2.092, allocations: 17.8 MB / 0.5792 GB, free: 13.74 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001814/2.092, allocations: 79.69 kB / 0.5793 GB, free: 13.66 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002345/2.093, allocations: 155 kB / 0.5794 GB, free: 13.51 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02261/2.115, allocations: 8.531 MB / 0.5877 GB, free: 4.961 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.03e-06/2.115, allocations: 0 / 0.5877 GB, free: 4.961 MB / 478.1 MB Notification: Performance of FrontEnd: time 7.11e-07/2.115, allocations: 0 / 0.5877 GB, free: 4.961 MB / 478.1 MB Notification: Performance of Transformations before backend: time 4.789e-06/2.115, allocations: 0 / 0.5877 GB, free: 4.961 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: 77 * Number of variables: 77 Notification: Performance of Generate backend data structure: time 0.004477/2.12, allocations: 1.528 MB / 0.5892 GB, free: 3.383 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.954e-05/2.12, allocations: 8.031 kB / 0.5892 GB, free: 3.375 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.776e-05/2.12, allocations: 68.09 kB / 0.5893 GB, free: 3.301 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.237e-05/2.12, allocations: 43.38 kB / 0.5893 GB, free: 3.258 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000294/2.12, allocations: 290.2 kB / 0.5896 GB, free: 2.938 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.69e-05/2.12, allocations: 12.44 kB / 0.5896 GB, free: 2.922 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.436e-05/2.12, allocations: 20 kB / 0.5896 GB, free: 2.902 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004243/2.121, allocations: 323.4 kB / 0.59 GB, free: 2.562 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.634e-06/2.121, allocations: 0 / 0.59 GB, free: 2.562 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.786e-05/2.121, allocations: 8 kB / 0.59 GB, free: 2.555 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.431e-05/2.121, allocations: 15.94 kB / 0.59 GB, free: 2.539 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002715/2.121, allocations: 209 kB / 0.5902 GB, free: 2.336 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.03569/2.157, allocations: 18.11 MB / 0.6079 GB, free: 14.36 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002158/2.157, allocations: 152 kB / 0.608 GB, free: 14.2 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001151/2.157, allocations: 104.8 kB / 0.6081 GB, free: 14.1 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1462/2.303, allocations: 77.29 MB / 0.6836 GB, free: 8.035 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.909e-05/2.303, allocations: 34.56 kB / 0.6836 GB, free: 7.992 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=34): time 1.893e-06/2.303, allocations: 4 kB / 0.6836 GB, free: 7.988 MB / 0.5762 GB Notification: Performance of matching and sorting (n=34): time 0.001092/2.305, allocations: 495.2 kB / 0.6841 GB, free: 7.477 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.23e-05/2.305, allocations: 59.28 kB / 0.6841 GB, free: 7.406 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003773/2.305, allocations: 352.5 kB / 0.6845 GB, free: 7.051 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.663e-05/2.305, allocations: 33.7 kB / 0.6845 GB, free: 7.012 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001172/2.305, allocations: 184.4 kB / 0.6847 GB, free: 6.828 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 7.627e-05/2.305, allocations: 110.4 kB / 0.6848 GB, free: 6.719 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.807e-05/2.305, allocations: 53.55 kB / 0.6848 GB, free: 6.66 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001239/2.305, allocations: 346.8 kB / 0.6852 GB, free: 6.312 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001205/2.306, allocations: 87.97 kB / 0.6853 GB, free: 6.227 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001546/2.306, allocations: 140.2 kB / 0.6854 GB, free: 6.074 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003089/2.306, allocations: 252.5 kB / 0.6856 GB, free: 5.812 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/2.306, allocations: 0 / 0.6856 GB, free: 5.812 MB / 0.5762 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0004582/2.306, allocations: 345.6 kB / 0.686 GB, free: 5.465 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.488e-05/2.306, allocations: 4 kB / 0.686 GB, free: 5.461 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.957e-06/2.307, allocations: 0 / 0.686 GB, free: 5.461 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008085/2.307, allocations: 140.6 kB / 0.6861 GB, free: 5.32 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.476e-05/2.307, allocations: 17.34 kB / 0.6861 GB, free: 5.305 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005371/2.308, allocations: 0.6109 MB / 0.6867 GB, free: 4.668 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001391/2.308, allocations: 27.58 kB / 0.6867 GB, free: 4.641 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.671e-05/2.308, allocations: 11.98 kB / 0.6868 GB, free: 4.629 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: 4 (ControlValve.C2.b,ControlValve.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 (13): * Single equations (assignments): 10 * 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.0001551/2.308, allocations: 169.7 kB / 0.6869 GB, free: 4.453 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.417e-05/2.308, allocations: 31.62 kB / 0.6869 GB, free: 4.422 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008302/2.309, allocations: 0.6468 MB / 0.6876 GB, free: 3.703 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0004206/2.31, allocations: 258.4 kB / 0.6878 GB, free: 3.441 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/2.31, allocations: 0 / 0.6878 GB, free: 3.441 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.348e-06/2.31, allocations: 3.984 kB / 0.6878 GB, free: 3.438 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001045/2.311, allocations: 0.8337 MB / 0.6886 GB, free: 2.547 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/2.311, allocations: 0 / 0.6886 GB, free: 2.547 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.862e-05/2.311, allocations: 19.98 kB / 0.6887 GB, free: 2.527 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004901/2.311, allocations: 118.2 kB / 0.6888 GB, free: 2.41 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.096e-05/2.311, allocations: 4 kB / 0.6888 GB, free: 2.406 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004895/2.312, allocations: 0.642 MB / 0.6894 GB, free: 1.738 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/2.312, allocations: 8 kB / 0.6894 GB, free: 1.73 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005096/2.312, allocations: 381.6 kB / 0.6898 GB, free: 1.34 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001079/2.312, allocations: 120.7 kB / 0.6899 GB, free: 1.203 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.899e-05/2.312, allocations: 11.84 kB / 0.6899 GB, free: 1.191 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001165/2.313, allocations: 7.938 kB / 0.6899 GB, free: 1.184 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.052e-05/2.313, allocations: 7.984 kB / 0.6899 GB, free: 1.176 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.877e-06/2.313, allocations: 11.94 kB / 0.6899 GB, free: 1.164 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0003421/2.313, allocations: 335.1 kB / 0.6903 GB, free: 0.8359 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.31e-07/2.313, allocations: 0 / 0.6903 GB, free: 0.8359 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.2111/2.524, allocations: 1.2 MB / 0.6914 GB, free: 226.1 MB / 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.006696/2.531, allocations: 2.616 MB / 0.694 GB, free: 225.5 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0007429/2.532, allocations: 282.5 kB / 0.6942 GB, free: 225.4 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/2.532, allocations: 0.5312 kB / 0.6942 GB, free: 225.4 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0002949/2.532, allocations: 112 kB / 0.6944 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.0008505/2.533, allocations: 131.1 kB / 0.6945 GB, free: 225.4 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005325/2.538, allocations: 3.814 MB / 0.6982 GB, free: 223.8 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002521/2.538, allocations: 0.8084 MB / 0.699 GB, free: 223.1 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001352/2.539, allocations: 31.7 kB / 0.699 GB, free: 223.1 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001229/2.539, allocations: 121.9 kB / 0.6991 GB, free: 223.1 MB / 0.5762 GB Notification: Performance of SimCode: time 7.11e-07/2.539, allocations: 1.25 kB / 0.6991 GB, free: 223.1 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07633/2.615, allocations: 48.99 MB / 0.747 GB, free: 194.7 MB / 0.5762 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001666/2.615, allocations: 260 kB / 0.7472 GB, free: 194.5 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.948/6.564, allocations: 3.938 kB / 0.7472 GB, free: 194.5 MB / 0.5762 GB (rm -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestControlValve_fmu --startTime=0 --stopTime=80 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestControlValve.fmu > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe 2>&1)