Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.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.TestPipePressureLoss,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestPipePressureLoss",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestPipePressureLoss",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.8014/0.8014, allocations: 150.9 MB / 166.1 MB, free: 14.61 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003489/0.0003489, allocations: 15.97 kB / 204.2 MB, free: 9.957 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1581/0.1585, allocations: 31.33 MB / 235.6 MB, free: 5.402 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.TestPipePressureLoss): time 1.627/1.785, allocations: 293.6 MB / 0.5167 GB, free: 13.68 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0394/1.825, allocations: 34.64 MB / 0.5506 GB, free: 11.18 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004111/1.825, allocations: 4 kB / 0.5506 GB, free: 11.18 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/PipePressureLoss.mo:35:3-37:42: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/PipePressureLoss.mo:38:3-40:37: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.0004898/1.826, allocations: 95.5 kB / 0.5507 GB, free: 11.09 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002544/1.826, allocations: 79.36 kB / 0.5507 GB, free: 11.01 MB / 446.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteam/IF97_packages.mo:783:9-783:27:writable] Warning: cv was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteam/IF97_packages.mo:850:9-850:27:writable] Warning: cv was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteam/IF97_packages.mo:1088:9-1088:27:writable] Warning: cv was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteamSimple/prop4_Ph.mo:69:3-69:60:writable] Warning: dh1satp was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteamSimple/prop4_Ph.mo:69:3-69:60:writable] Warning: dh2satp was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteamSimple/prop4_Ph_der.mo:167:3-170:49:writable] Warning: du1satp_der was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteamSimple/prop4_Ph_der.mo:167:3-170:49:writable] Warning: du2satp_der was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. Notification: Performance of NFTyping.typeClassSections: time 0.02473/1.851, allocations: 8.396 MB / 0.5589 GB, free: 2.613 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005993/1.851, allocations: 350.3 kB / 0.5593 GB, free: 2.27 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002113/1.851, allocations: 108.5 kB / 0.5594 GB, free: 2.168 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00025/1.852, allocations: 139.3 kB / 0.5595 GB, free: 2.031 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001516/1.852, allocations: 111.4 kB / 0.5596 GB, free: 1.922 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.922e-05/1.852, allocations: 20 kB / 0.5596 GB, free: 1.902 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02791/1.88, allocations: 17.75 MB / 0.577 GB, free: 132 kB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 8.375e-05/1.88, allocations: 47.78 kB / 0.577 GB, free: 84 kB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001927/1.88, allocations: 127.4 kB / 0.5771 GB, free: 15.95 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01959/1.9, allocations: 8.441 MB / 0.5854 GB, free: 7.496 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.357e-06/1.9, allocations: 7.984 kB / 0.5854 GB, free: 7.488 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.665e-06/1.9, allocations: 0 / 0.5854 GB, free: 7.488 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.729e-05/1.9, allocations: 0 / 0.5854 GB, free: 7.488 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.005417/1.905, allocations: 1.439 MB / 0.5868 GB, free: 6 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.201e-05/1.905, allocations: 8.031 kB / 0.5868 GB, free: 5.992 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.143e-05/1.905, allocations: 70.47 kB / 0.5869 GB, free: 5.914 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.129e-05/1.906, allocations: 31.62 kB / 0.5869 GB, free: 5.883 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002534/1.906, allocations: 227.4 kB / 0.5871 GB, free: 5.621 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.873e-05/1.906, allocations: 16.44 kB / 0.5871 GB, free: 5.605 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.123e-05/1.906, allocations: 16 kB / 0.5871 GB, free: 5.59 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004765/1.906, allocations: 295.3 kB / 0.5874 GB, free: 5.273 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.56e-05/1.906, allocations: 0 / 0.5874 GB, free: 5.273 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.11e-05/1.906, allocations: 16.55 kB / 0.5874 GB, free: 5.258 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.372e-05/1.906, allocations: 15.98 kB / 0.5874 GB, free: 5.242 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002409/1.907, allocations: 165.1 kB / 0.5876 GB, free: 5.082 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.03346/1.94, allocations: 18.02 MB / 0.6052 GB, free: 1.184 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002997/1.94, allocations: 130.6 kB / 0.6053 GB, free: 1.047 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001052/1.941, allocations: 92.84 kB / 0.6054 GB, free: 0.9531 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1415/2.082, allocations: 77.27 MB / 0.6809 GB, free: 10.91 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.446e-05/2.082, allocations: 34.56 kB / 0.6809 GB, free: 10.87 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=34): time 2.625e-06/2.082, allocations: 0 / 0.6809 GB, free: 10.87 MB / 0.5762 GB Notification: Performance of matching and sorting (n=34): time 0.001061/2.083, allocations: 447.3 kB / 0.6813 GB, free: 10.41 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.45e-05/2.083, allocations: 51.41 kB / 0.6814 GB, free: 10.34 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002406/2.084, allocations: 223.1 kB / 0.6816 GB, free: 10.12 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.498e-05/2.084, allocations: 29.7 kB / 0.6816 GB, free: 10.08 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 9.5e-05/2.084, allocations: 144.5 kB / 0.6818 GB, free: 9.934 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 6.58e-05/2.084, allocations: 114.3 kB / 0.6819 GB, free: 9.82 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.965e-05/2.084, allocations: 49.59 kB / 0.6819 GB, free: 9.766 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001169/2.084, allocations: 334.8 kB / 0.6822 GB, free: 9.43 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.862e-05/2.084, allocations: 71.98 kB / 0.6823 GB, free: 9.359 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001286/2.084, allocations: 120.2 kB / 0.6824 GB, free: 9.227 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00024/2.084, allocations: 208.6 kB / 0.6826 GB, free: 9.008 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.295e-06/2.084, allocations: 0 / 0.6826 GB, free: 9.008 MB / 0.5762 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0003916/2.085, allocations: 301.5 kB / 0.6829 GB, free: 8.703 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.867e-05/2.085, allocations: 8 kB / 0.6829 GB, free: 8.695 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.635e-06/2.085, allocations: 0 / 0.6829 GB, free: 8.695 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009117/2.086, allocations: 164.8 kB / 0.6831 GB, free: 8.531 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.618e-05/2.086, allocations: 11.94 kB / 0.6831 GB, free: 8.52 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005085/2.086, allocations: 0.6289 MB / 0.6837 GB, free: 7.867 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000114/2.087, allocations: 23.72 kB / 0.6837 GB, free: 7.844 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.39e-05/2.087, allocations: 4 kB / 0.6837 GB, free: 7.84 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 (pipePressureLoss.C2.b,pipePressureLoss.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 (11): * Single equations (assignments): 8 * 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,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001283/2.087, allocations: 146.3 kB / 0.6839 GB, free: 7.688 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.398e-05/2.087, allocations: 19.72 kB / 0.6839 GB, free: 7.668 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007232/2.087, allocations: 0.6027 MB / 0.6845 GB, free: 7 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003597/2.088, allocations: 226.3 kB / 0.6847 GB, free: 6.77 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.54e-06/2.088, allocations: 0 / 0.6847 GB, free: 6.77 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.617e-06/2.088, allocations: 0 / 0.6847 GB, free: 6.77 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009407/2.089, allocations: 0.7366 MB / 0.6854 GB, free: 5.973 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.198e-06/2.089, allocations: 4.062 kB / 0.6854 GB, free: 5.969 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.041e-05/2.089, allocations: 12 kB / 0.6854 GB, free: 5.957 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003602/2.089, allocations: 123.2 kB / 0.6855 GB, free: 5.836 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.292e-05/2.089, allocations: 4 kB / 0.6855 GB, free: 5.832 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004697/2.09, allocations: 0.6511 MB / 0.6862 GB, free: 5.156 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/2.09, allocations: 0 / 0.6862 GB, free: 5.156 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004364/2.09, allocations: 353.5 kB / 0.6865 GB, free: 4.793 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 7.955e-05/2.09, allocations: 104.8 kB / 0.6866 GB, free: 4.672 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.012e-05/2.09, allocations: 11.84 kB / 0.6866 GB, free: 4.66 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001016/2.09, allocations: 8 kB / 0.6866 GB, free: 4.652 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.682e-05/2.09, allocations: 7.984 kB / 0.6866 GB, free: 4.645 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.824e-06/2.09, allocations: 4 kB / 0.6867 GB, free: 4.641 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002246/2.091, allocations: 230 kB / 0.6869 GB, free: 4.422 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.2e-07/2.091, allocations: 4 kB / 0.6869 GB, free: 4.418 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.003384/2.094, allocations: 1.191 MB / 0.688 GB, free: 3.227 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 (11): * Single equations (assignments): 10 * 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,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.006174/2.1, allocations: 2.559 MB / 0.6905 GB, free: 0.6602 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0005988/2.101, allocations: 237.4 kB / 0.6908 GB, free: 432 kB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.866e-06/2.101, allocations: 0 / 0.6908 GB, free: 432 kB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0001998/2.101, allocations: 105 kB / 0.6909 GB, free: 328 kB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007621/2.102, allocations: 126.7 kB / 0.691 GB, free: 200 kB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1758/2.278, allocations: 3.099 MB / 0.694 GB, free: 224.3 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002544/2.278, allocations: 0.7652 MB / 0.6948 GB, free: 223.6 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001528/2.278, allocations: 22.48 kB / 0.6948 GB, free: 223.6 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001073/2.278, allocations: 92.62 kB / 0.6949 GB, free: 223.6 MB / 0.5762 GB Notification: Performance of SimCode: time 1.232e-06/2.278, allocations: 1.188 kB / 0.6949 GB, free: 223.6 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06766/2.346, allocations: 47.97 MB / 0.7417 GB, free: 198.9 MB / 0.5762 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001551/2.346, allocations: 268.4 kB / 0.742 GB, free: 198.6 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.166/6.512, allocations: 0.875 kB / 0.742 GB, free: 198.6 MB / 0.5762 GB (rm -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestPipePressureLoss_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestPipePressureLoss.fmu > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.pipe 2>&1)