Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.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.SimpleExamples.TestPipePressureLoss,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestPipePressureLoss",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_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.8259/0.8259, allocations: 150.9 MB / 166.4 MB, free: 14.21 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003333/0.0003337, allocations: 19.97 kB / 204.6 MB, free: 9.523 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1287/0.1291, allocations: 31.32 MB / 236 MB, free: 5.41 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.SimpleExamples.TestPipePressureLoss): time 1.548/1.677, allocations: 294.8 MB / 0.5183 GB, free: 13.3 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03784/1.715, allocations: 34.43 MB / 0.5519 GB, free: 10.99 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001738/1.715, allocations: 0 / 0.5519 GB, free: 10.99 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.0003621/1.715, allocations: 107.3 kB / 0.552 GB, free: 10.89 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002477/1.716, allocations: 99.16 kB / 0.5521 GB, free: 10.79 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.02317/1.739, allocations: 9.575 MB / 0.5615 GB, free: 1.215 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004394/1.739, allocations: 338.4 kB / 0.5618 GB, free: 0.8828 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001919/1.739, allocations: 108.5 kB / 0.5619 GB, free: 0.7773 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002048/1.74, allocations: 143.3 kB / 0.562 GB, free: 0.6367 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001367/1.74, allocations: 115.4 kB / 0.5621 GB, free: 0.5234 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.587e-05/1.74, allocations: 16 kB / 0.5621 GB, free: 0.5078 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02806/1.768, allocations: 17.67 MB / 0.5794 GB, free: 14.81 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 6.536e-05/1.768, allocations: 47.8 kB / 0.5795 GB, free: 14.77 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001665/1.768, allocations: 131.3 kB / 0.5796 GB, free: 14.64 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01572/1.784, allocations: 8.425 MB / 0.5878 GB, free: 6.191 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/1.784, allocations: 0 / 0.5878 GB, free: 6.191 MB / 478.1 MB Notification: Performance of FrontEnd: time 3.076e-06/1.784, allocations: 4 kB / 0.5878 GB, free: 6.188 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.036e-05/1.784, allocations: 0 / 0.5878 GB, free: 6.188 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.003448/1.787, allocations: 1.439 MB / 0.5892 GB, free: 4.699 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.669e-05/1.787, allocations: 8.031 kB / 0.5892 GB, free: 4.691 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.371e-05/1.787, allocations: 72.2 kB / 0.5893 GB, free: 4.613 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.562e-05/1.788, allocations: 31.62 kB / 0.5893 GB, free: 4.582 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002044/1.788, allocations: 223.4 kB / 0.5895 GB, free: 4.324 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.606e-05/1.788, allocations: 20.44 kB / 0.5896 GB, free: 4.305 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.757e-05/1.788, allocations: 16 kB / 0.5896 GB, free: 4.289 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004003/1.788, allocations: 303.3 kB / 0.5899 GB, free: 3.961 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.207e-06/1.788, allocations: 4 kB / 0.5899 GB, free: 3.957 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.79e-05/1.788, allocations: 4 kB / 0.5899 GB, free: 3.953 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.366e-05/1.788, allocations: 12 kB / 0.5899 GB, free: 3.941 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002689/1.789, allocations: 169.1 kB / 0.59 GB, free: 3.777 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.03872/1.827, allocations: 18.02 MB / 0.6076 GB, free: 15.89 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003269/1.828, allocations: 126.7 kB / 0.6078 GB, free: 15.76 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001154/1.828, allocations: 88.84 kB / 0.6078 GB, free: 15.67 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1599/1.988, allocations: 77.27 MB / 0.6833 GB, free: 9.625 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.058e-05/1.988, allocations: 34.56 kB / 0.6833 GB, free: 9.582 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=34): time 3.406e-06/1.988, allocations: 4 kB / 0.6833 GB, free: 9.578 MB / 0.5762 GB Notification: Performance of matching and sorting (n=34): time 0.001039/1.989, allocations: 447.3 kB / 0.6838 GB, free: 9.113 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.227e-05/1.989, allocations: 55.41 kB / 0.6838 GB, free: 9.047 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002304/1.989, allocations: 223 kB / 0.684 GB, free: 8.82 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.381e-05/1.989, allocations: 25.7 kB / 0.6841 GB, free: 8.789 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 8.924e-05/1.989, allocations: 148.5 kB / 0.6842 GB, free: 8.641 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 7.573e-05/1.989, allocations: 114.3 kB / 0.6843 GB, free: 8.527 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.83e-05/1.989, allocations: 45.61 kB / 0.6843 GB, free: 8.477 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001077/1.989, allocations: 342.8 kB / 0.6847 GB, free: 8.133 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001129/1.99, allocations: 71.97 kB / 0.6847 GB, free: 8.062 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001295/1.99, allocations: 120.1 kB / 0.6849 GB, free: 7.93 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002457/1.99, allocations: 208.6 kB / 0.6851 GB, free: 7.711 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/1.99, allocations: 0 / 0.6851 GB, free: 7.711 MB / 0.5762 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0004246/1.99, allocations: 301.5 kB / 0.6853 GB, free: 7.406 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.58e-05/1.99, allocations: 8 kB / 0.6854 GB, free: 7.398 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.984e-06/1.99, allocations: 0 / 0.6854 GB, free: 7.398 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000927/1.991, allocations: 162.5 kB / 0.6855 GB, free: 7.238 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.807e-05/1.991, allocations: 15.92 kB / 0.6855 GB, free: 7.223 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004984/1.992, allocations: 0.6366 MB / 0.6861 GB, free: 6.562 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001119/1.992, allocations: 23.75 kB / 0.6862 GB, free: 6.539 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.457e-05/1.992, allocations: 8 kB / 0.6862 GB, free: 6.531 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.0001154/1.992, allocations: 133.8 kB / 0.6863 GB, free: 6.391 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.689e-05/1.992, allocations: 23.72 kB / 0.6863 GB, free: 6.367 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007159/1.993, allocations: 0.5963 MB / 0.6869 GB, free: 5.699 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003578/1.993, allocations: 223.4 kB / 0.6871 GB, free: 5.473 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.223e-06/1.993, allocations: 0 / 0.6871 GB, free: 5.473 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/1.993, allocations: 3.938 kB / 0.6871 GB, free: 5.469 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009587/1.994, allocations: 0.7388 MB / 0.6878 GB, free: 4.676 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/1.994, allocations: 0 / 0.6878 GB, free: 4.676 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.897e-05/1.994, allocations: 16.06 kB / 0.6879 GB, free: 4.66 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003883/1.995, allocations: 125.8 kB / 0.688 GB, free: 4.535 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.05e-05/1.995, allocations: 0 / 0.688 GB, free: 4.535 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004574/1.995, allocations: 0.6513 MB / 0.6886 GB, free: 3.859 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/1.995, allocations: 0 / 0.6886 GB, free: 3.859 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004627/1.996, allocations: 343.8 kB / 0.6889 GB, free: 3.504 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 9.542e-05/1.996, allocations: 112.8 kB / 0.6891 GB, free: 3.375 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.24e-05/1.996, allocations: 11.84 kB / 0.6891 GB, free: 3.363 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000104/1.996, allocations: 4 kB / 0.6891 GB, free: 3.359 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.697e-05/1.996, allocations: 7.984 kB / 0.6891 GB, free: 3.352 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.123e-05/1.996, allocations: 4 kB / 0.6891 GB, free: 3.348 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002417/1.996, allocations: 237.9 kB / 0.6893 GB, free: 3.117 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.61e-07/1.996, allocations: 4 kB / 0.6893 GB, free: 3.113 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002807/1.999, allocations: 1.187 MB / 0.6905 GB, free: 1.926 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.147/2.146, allocations: 2.491 MB / 0.6929 GB, free: 225.8 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0006022/2.147, allocations: 239.9 kB / 0.6931 GB, free: 225.7 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.125e-06/2.147, allocations: 3.281 kB / 0.6931 GB, free: 225.7 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0002176/2.147, allocations: 90.33 kB / 0.6932 GB, free: 225.7 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008157/2.148, allocations: 127.3 kB / 0.6933 GB, free: 225.7 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004626/2.153, allocations: 3.016 MB / 0.6963 GB, free: 224.4 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001925/2.153, allocations: 0.771 MB / 0.697 GB, free: 223.7 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001275/2.153, allocations: 21.28 kB / 0.6971 GB, free: 223.7 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.319e-05/2.153, allocations: 94.33 kB / 0.6971 GB, free: 223.6 MB / 0.5762 GB Notification: Performance of SimCode: time 4.81e-07/2.153, allocations: 0 / 0.6971 GB, free: 223.6 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06925/2.222, allocations: 47.66 MB / 0.7437 GB, free: 198.3 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.05/18.27, allocations: 4.25 kB / 0.7437 GB, free: 198.3 MB / 0.5762 GB (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestPipePressureLoss_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestPipePressureLoss.fmu > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss.pipe 2>&1)