Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.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.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_Book_SimpleExamples_PressureLoss_TestControlValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_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.8025/0.8025, allocations: 150.9 MB / 166 MB, free: 14.67 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000289/0.0002889, allocations: 15.97 kB / 204.1 MB, free: 10.05 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1415/0.1418, allocations: 31.33 MB / 235.4 MB, free: 5.438 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.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve): time 1.516/1.658, allocations: 293.7 MB / 0.5167 GB, free: 13.66 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.178/1.836, allocations: 188.7 MB / 0.701 GB, free: 0.5703 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002041/1.837, allocations: 4 kB / 0.701 GB, free: 0.5664 MB / 0.5762 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SourceP.mo:58:3-59:65:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SinkP.mo:46:3-47:67:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/PressureLosses/ControlValve.mo:44:3-45:68:writable] Warning: Connector C1 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/PressureLosses/ControlValve.mo:46:3-47:66:writable] Warning: Connector C2 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.0002274/1.837, allocations: 84.34 kB / 0.7011 GB, free: 496 kB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0002559/1.837, allocations: 155.1 kB / 0.7012 GB, free: 340 kB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.2787/2.116, allocations: 8.739 MB / 0.7098 GB, free: 3.84 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0004985/2.116, allocations: 413 kB / 0.7101 GB, free: 3.84 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002544/2.117, allocations: 199.2 kB / 0.7103 GB, free: 3.832 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001781/2.117, allocations: 166.1 kB / 0.7105 GB, free: 3.832 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002118/2.117, allocations: 219.3 kB / 0.7107 GB, free: 3.832 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 3.661e-05/2.117, allocations: 24.72 kB / 0.7107 GB, free: 3.832 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02758/2.145, allocations: 19.99 MB / 0.7302 GB, free: 3.742 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001818/2.145, allocations: 95.94 kB / 0.7303 GB, free: 3.742 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0003205/2.145, allocations: 200.7 kB / 0.7305 GB, free: 3.742 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.02113/2.166, allocations: 9.97 MB / 0.7403 GB, free: 1.059 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/2.166, allocations: 0 / 0.7403 GB, free: 1.059 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.303e-06/2.166, allocations: 0.8438 kB / 0.7403 GB, free: 1.059 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 7.955e-06/2.166, allocations: 0 / 0.7403 GB, free: 1.059 MB / 0.5762 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 87 * Number of variables: 87 Notification: Performance of Generate backend data structure: time 0.004079/2.17, allocations: 1.837 MB / 0.7421 GB, free: 15.87 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.799e-05/2.17, allocations: 10.25 kB / 0.7421 GB, free: 15.87 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.745e-05/2.171, allocations: 74.78 kB / 0.7421 GB, free: 15.82 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.334e-05/2.171, allocations: 53.16 kB / 0.7422 GB, free: 15.79 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003486/2.171, allocations: 344 kB / 0.7425 GB, free: 15.52 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.338e-05/2.171, allocations: 29.5 kB / 0.7425 GB, free: 15.52 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.489e-05/2.171, allocations: 34.25 kB / 0.7426 GB, free: 15.52 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004864/2.172, allocations: 385.1 kB / 0.7429 GB, free: 15.37 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.537e-06/2.172, allocations: 0.5625 kB / 0.7429 GB, free: 15.37 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.741e-05/2.172, allocations: 19.84 kB / 0.743 GB, free: 15.37 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.366e-06/2.172, allocations: 10.05 kB / 0.743 GB, free: 15.37 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003694/2.172, allocations: 270.1 kB / 0.7432 GB, free: 15.34 MB / 0.5919 GB 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.008077/2.18, allocations: 6.207 MB / 0.7493 GB, free: 10.09 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002342/2.18, allocations: 112.4 kB / 0.7494 GB, free: 10.06 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.037e-05/2.18, allocations: 49.08 kB / 0.7495 GB, free: 10.05 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2149/2.395, allocations: 118.3 MB / 0.865 GB, free: 452 kB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.998e-05/2.395, allocations: 37.47 kB / 0.865 GB, free: 408 kB / 0.7012 GB Notification: Performance of pre-optimization done (n=7): time 1.783e-06/2.395, allocations: 4 kB / 0.865 GB, free: 404 kB / 0.7012 GB Notification: Performance of matching and sorting (n=7): time 0.0008515/2.396, allocations: 305.7 kB / 0.8653 GB, free: 104 kB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.073e-05/2.396, allocations: 61.5 kB / 0.8653 GB, free: 36 kB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004656/2.397, allocations: 426.1 kB / 0.8657 GB, free: 15.69 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.516e-05/2.397, allocations: 26.8 kB / 0.8658 GB, free: 15.66 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.000147/2.397, allocations: 262.4 kB / 0.866 GB, free: 15.45 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.218e-05/2.397, allocations: 26.59 kB / 0.8661 GB, free: 15.43 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.554e-05/2.397, allocations: 55.59 kB / 0.8661 GB, free: 15.39 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 9.933e-05/2.397, allocations: 340.6 kB / 0.8664 GB, free: 15.06 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001065/2.397, allocations: 65.22 kB / 0.8665 GB, free: 15.01 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001586/2.397, allocations: 164.2 kB / 0.8666 GB, free: 14.83 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002593/2.398, allocations: 237.2 kB / 0.8669 GB, free: 14.61 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/2.398, allocations: 0 / 0.8669 GB, free: 14.61 MB / 0.7169 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005346/2.398, allocations: 309.3 kB / 0.8672 GB, free: 14.38 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.821e-05/2.398, allocations: 7.984 kB / 0.8672 GB, free: 14.37 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.406e-06/2.398, allocations: 7.938 kB / 0.8672 GB, free: 14.36 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008213/2.399, allocations: 115 kB / 0.8673 GB, free: 14.25 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001394/2.399, allocations: 42.64 kB / 0.8673 GB, free: 14.21 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004384/2.4, allocations: 0.5615 MB / 0.8679 GB, free: 13.65 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001695/2.4, allocations: 31.23 kB / 0.8679 GB, free: 13.62 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.347e-05/2.4, allocations: 16.06 kB / 0.8679 GB, free: 13.61 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 6 (SourceP1.C.ftype,PuitsP1.fluid,ControlValve.fluid,SourceP1.fluid1,SourceP1.C.diff_on_2,ControlValve.C2.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (24): * Single equations (assignments): 23 * 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,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0001627/2.4, allocations: 171.2 kB / 0.8681 GB, free: 13.45 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.431e-05/2.4, allocations: 35.25 kB / 0.8681 GB, free: 13.42 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004523/2.401, allocations: 219.7 kB / 0.8683 GB, free: 13.23 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.99e-06/2.401, allocations: 4 kB / 0.8683 GB, free: 13.23 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/2.401, allocations: 0 / 0.8683 GB, free: 13.23 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.685e-06/2.401, allocations: 3.656 kB / 0.8683 GB, free: 13.23 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003316/2.401, allocations: 353.2 kB / 0.8687 GB, free: 12.89 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.358e-06/2.401, allocations: 5.203 kB / 0.8687 GB, free: 12.89 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.572e-05/2.401, allocations: 10.89 kB / 0.8687 GB, free: 12.88 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004716/2.401, allocations: 81.58 kB / 0.8688 GB, free: 12.81 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.082e-05/2.402, allocations: 3.984 kB / 0.8688 GB, free: 12.8 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003915/2.402, allocations: 0.5722 MB / 0.8693 GB, free: 12.23 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/2.402, allocations: 0 / 0.8693 GB, free: 12.23 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003501/2.402, allocations: 200.2 kB / 0.8695 GB, free: 12.04 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 9.013e-05/2.402, allocations: 108 kB / 0.8696 GB, free: 11.92 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.157e-05/2.402, allocations: 7.938 kB / 0.8696 GB, free: 11.91 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.504e-05/2.403, allocations: 3.688 kB / 0.8696 GB, free: 11.91 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.521e-05/2.403, allocations: 8.047 kB / 0.8696 GB, free: 11.9 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.587e-06/2.403, allocations: 9.203 kB / 0.8697 GB, free: 11.89 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0003037/2.403, allocations: 309.3 kB / 0.87 GB, free: 11.65 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.5e-07/2.403, allocations: 0 / 0.87 GB, free: 11.65 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.003679/2.407, allocations: 1.453 MB / 0.8714 GB, free: 10.29 MB / 0.7169 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 (4): * Single equations (assignments): 3 * 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.0068/2.413, allocations: 2.941 MB / 0.8742 GB, free: 7.707 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004533/2.414, allocations: 160.6 kB / 0.8744 GB, free: 7.586 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/2.414, allocations: 1.094 kB / 0.8744 GB, free: 7.586 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001688/2.414, allocations: 67.17 kB / 0.8745 GB, free: 7.535 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004349/2.414, allocations: 69.67 kB / 0.8745 GB, free: 7.488 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005309/2.42, allocations: 3.788 MB / 0.8782 GB, free: 3.941 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003277/2.42, allocations: 0.8019 MB / 0.879 GB, free: 3.121 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0001676/2.42, allocations: 46.91 kB / 0.8791 GB, free: 3.074 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001337/2.42, allocations: 119.3 kB / 0.8792 GB, free: 3.039 MB / 0.7169 GB Notification: Performance of SimCode: time 5.01e-07/2.42, allocations: 0 / 0.8792 GB, free: 3.039 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08173/2.502, allocations: 52.46 MB / 0.9304 GB, free: 14.85 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002208/2.502, allocations: 309.5 kB / 0.9307 GB, free: 14.47 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.211/6.713, allocations: 0 / 0.9307 GB, free: 14.47 MB / 0.7794 GB (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Fluid_Examples_Book_SimpleExamples_PressureLoss_TestControlValve_fmu --startTime=0 --stopTime=80 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Fluid_Examples_Book_SimpleExamples_PressureLoss_TestControlValve.fmu > ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe 2>&1)