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.7632/0.7632, allocations: 150.9 MB / 166 MB, free: 14.69 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002895/0.0002896, allocations: 11.98 kB / 204.1 MB, free: 10.07 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.145/0.1453, allocations: 31.34 MB / 235.4 MB, free: 5.422 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.542/1.687, allocations: 293.6 MB / 0.5167 GB, free: 13.68 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.04242/1.73, allocations: 37.55 MB / 0.5533 GB, free: 8.273 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002121/1.73, allocations: 4 kB / 0.5533 GB, free: 8.27 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.73, allocations: 95.47 kB / 0.5534 GB, free: 8.176 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001882/1.731, allocations: 75.38 kB / 0.5535 GB, free: 8.102 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02073/1.751, allocations: 7.16 MB / 0.5605 GB, free: 0.9414 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004955/1.752, allocations: 330.5 kB / 0.5608 GB, free: 0.6172 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001793/1.752, allocations: 109.7 kB / 0.5609 GB, free: 0.5117 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002136/1.752, allocations: 123.4 kB / 0.561 GB, free: 400 kB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001168/1.752, allocations: 107.4 kB / 0.5611 GB, free: 292 kB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.413e-05/1.752, allocations: 12 kB / 0.5612 GB, free: 280 kB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0301/1.782, allocations: 17.73 MB / 0.5785 GB, free: 14.52 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001036/1.783, allocations: 39.8 kB / 0.5785 GB, free: 14.48 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000212/1.783, allocations: 127.3 kB / 0.5786 GB, free: 14.36 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02058/1.803, allocations: 8.425 MB / 0.5869 GB, free: 5.91 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.301e-06/1.803, allocations: 0 / 0.5869 GB, free: 5.91 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.623e-06/1.803, allocations: 4 kB / 0.5869 GB, free: 5.906 MB / 478.1 MB Notification: Performance of Transformations before backend: time 9.949e-06/1.803, allocations: 3.938 kB / 0.5869 GB, free: 5.902 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.005163/1.809, allocations: 1.447 MB / 0.5883 GB, free: 4.406 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.914e-05/1.809, allocations: 8.031 kB / 0.5883 GB, free: 4.398 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.552e-05/1.809, allocations: 62.48 kB / 0.5883 GB, free: 4.328 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.171e-05/1.809, allocations: 35.61 kB / 0.5884 GB, free: 4.293 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002462/1.809, allocations: 220 kB / 0.5886 GB, free: 4.039 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.098e-05/1.809, allocations: 14.22 kB / 0.5886 GB, free: 4.023 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.143e-05/1.809, allocations: 20 kB / 0.5886 GB, free: 4.004 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004484/1.81, allocations: 307.3 kB / 0.5889 GB, free: 3.68 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.558e-06/1.81, allocations: 0 / 0.5889 GB, free: 3.68 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.11e-05/1.81, allocations: 8 kB / 0.5889 GB, free: 3.672 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.66e-05/1.81, allocations: 19.92 kB / 0.5889 GB, free: 3.652 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002539/1.81, allocations: 165 kB / 0.5891 GB, free: 3.492 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.03554/1.846, allocations: 18.01 MB / 0.6067 GB, free: 15.61 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003256/1.846, allocations: 130.7 kB / 0.6068 GB, free: 15.47 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001197/1.846, allocations: 92.83 kB / 0.6069 GB, free: 15.38 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1424/1.988, allocations: 77.27 MB / 0.6824 GB, free: 9.336 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.418e-05/1.988, allocations: 34.56 kB / 0.6824 GB, free: 9.293 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=34): time 3.586e-06/1.988, allocations: 3.938 kB / 0.6824 GB, free: 9.289 MB / 0.5762 GB Notification: Performance of matching and sorting (n=34): time 0.001147/1.99, allocations: 451.4 kB / 0.6828 GB, free: 8.82 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.956e-05/1.99, allocations: 55.34 kB / 0.6829 GB, free: 8.754 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002436/1.99, allocations: 219.1 kB / 0.6831 GB, free: 8.531 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.43e-05/1.99, allocations: 25.7 kB / 0.6831 GB, free: 8.5 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 8.846e-05/1.99, allocations: 148.5 kB / 0.6833 GB, free: 8.352 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 7.596e-05/1.99, allocations: 114.3 kB / 0.6834 GB, free: 8.238 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.822e-05/1.99, allocations: 41.7 kB / 0.6834 GB, free: 8.191 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001131/1.99, allocations: 338.8 kB / 0.6837 GB, free: 7.852 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001078/1.99, allocations: 71.97 kB / 0.6838 GB, free: 7.781 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001468/1.991, allocations: 117.1 kB / 0.6839 GB, free: 7.652 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002577/1.991, allocations: 204.6 kB / 0.6841 GB, free: 7.438 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/1.991, allocations: 0 / 0.6841 GB, free: 7.438 MB / 0.5762 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0004183/1.991, allocations: 301.5 kB / 0.6844 GB, free: 7.133 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.254e-05/1.991, allocations: 8 kB / 0.6844 GB, free: 7.125 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.216e-06/1.991, allocations: 0 / 0.6844 GB, free: 7.125 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009203/1.992, allocations: 166.2 kB / 0.6846 GB, free: 6.961 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.647e-05/1.992, allocations: 8 kB / 0.6846 GB, free: 6.953 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004928/1.993, allocations: 0.6397 MB / 0.6852 GB, free: 6.289 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001072/1.993, allocations: 27.69 kB / 0.6852 GB, free: 6.262 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.631e-05/1.993, allocations: 7.984 kB / 0.6852 GB, free: 6.254 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.0001193/1.993, allocations: 137.8 kB / 0.6854 GB, free: 6.109 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.369e-05/1.993, allocations: 23.72 kB / 0.6854 GB, free: 6.086 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007043/1.994, allocations: 0.6026 MB / 0.686 GB, free: 5.414 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003501/1.994, allocations: 222.3 kB / 0.6862 GB, free: 5.188 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.751e-06/1.994, allocations: 0 / 0.6862 GB, free: 5.188 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.392e-06/1.994, allocations: 3.984 kB / 0.6862 GB, free: 5.184 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009157/1.995, allocations: 0.7265 MB / 0.6869 GB, free: 4.398 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/1.995, allocations: 0 / 0.6869 GB, free: 4.398 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.432e-05/1.995, allocations: 19.98 kB / 0.6869 GB, free: 4.379 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004937/1.996, allocations: 137.7 kB / 0.687 GB, free: 4.242 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.1e-05/1.996, allocations: 4 kB / 0.687 GB, free: 4.238 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004565/1.996, allocations: 0.6583 MB / 0.6877 GB, free: 3.555 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/1.996, allocations: 0 / 0.6877 GB, free: 3.555 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004319/1.997, allocations: 345.5 kB / 0.688 GB, free: 3.199 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 7.348e-05/1.997, allocations: 100.9 kB / 0.6881 GB, free: 3.082 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.289e-05/1.997, allocations: 15.84 kB / 0.6881 GB, free: 3.066 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001058/1.997, allocations: 3.984 kB / 0.6881 GB, free: 3.062 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.498e-05/1.997, allocations: 13.52 kB / 0.6881 GB, free: 3.051 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.685e-06/1.997, allocations: 7.984 kB / 0.6882 GB, free: 3.043 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002253/1.997, allocations: 234 kB / 0.6884 GB, free: 2.816 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.01e-07/1.997, allocations: 0 / 0.6884 GB, free: 2.816 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002902/2, allocations: 1.187 MB / 0.6895 GB, free: 1.629 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.1732/2.173, allocations: 2.55 MB / 0.692 GB, free: 226 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0006727/2.174, allocations: 230.8 kB / 0.6922 GB, free: 226 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/2.174, allocations: 1.188 kB / 0.6922 GB, free: 226 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0002327/2.174, allocations: 91.64 kB / 0.6923 GB, free: 226 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008868/2.175, allocations: 121.8 kB / 0.6925 GB, free: 226 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004936/2.18, allocations: 3.121 MB / 0.6955 GB, free: 224.5 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001936/2.18, allocations: 0.7701 MB / 0.6963 GB, free: 223.8 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001341/2.181, allocations: 25.02 kB / 0.6963 GB, free: 223.8 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.098e-05/2.181, allocations: 87.3 kB / 0.6964 GB, free: 223.8 MB / 0.5762 GB Notification: Performance of SimCode: time 4.11e-07/2.181, allocations: 0.9375 kB / 0.6964 GB, free: 223.8 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07173/2.252, allocations: 47.51 MB / 0.7428 GB, free: 198.6 MB / 0.5762 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001538/2.253, allocations: 245.2 kB / 0.743 GB, free: 198.3 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.849/6.102, allocations: 4 kB / 0.743 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)