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: translateModel(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss") translateModel(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8043/0.8043, allocations: 150.9 MB / 166 MB, free: 14.67 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002795/0.0002796, allocations: 15.97 kB / 204 MB, free: 10.15 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.136/0.1363, allocations: 31.32 MB / 235.4 MB, free: 5.449 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.547/1.683, allocations: 292.6 MB / 0.5156 GB, free: 13.87 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.04251/1.726, allocations: 37.56 MB / 0.5522 GB, free: 8.453 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002046/1.726, allocations: 4 kB / 0.5522 GB, free: 8.449 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.000362/1.726, allocations: 79.53 kB / 0.5523 GB, free: 8.371 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002015/1.727, allocations: 87.31 kB / 0.5524 GB, free: 8.285 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01979/1.746, allocations: 7.16 MB / 0.5594 GB, free: 1.125 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004606/1.747, allocations: 322.5 kB / 0.5597 GB, free: 0.8086 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002078/1.747, allocations: 107 kB / 0.5598 GB, free: 0.7031 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000192/1.747, allocations: 123.4 kB / 0.5599 GB, free: 0.582 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001184/1.747, allocations: 111.4 kB / 0.56 GB, free: 484 kB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.281e-05/1.747, allocations: 12 kB / 0.56 GB, free: 472 kB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0282/1.776, allocations: 17.73 MB / 0.5774 GB, free: 14.7 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 7.388e-05/1.776, allocations: 39.78 kB / 0.5774 GB, free: 14.66 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001664/1.776, allocations: 131.3 kB / 0.5775 GB, free: 14.54 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01751/1.793, allocations: 8.425 MB / 0.5857 GB, free: 6.09 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.241e-06/1.793, allocations: 0 / 0.5857 GB, free: 6.09 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.072e-06/1.793, allocations: 0 / 0.5857 GB, free: 6.09 MB / 478.1 MB Notification: Performance of Transformations before backend: time 5.34e-06/1.794, allocations: 0 / 0.5857 GB, free: 6.09 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.003495/1.797, allocations: 1.439 MB / 0.5871 GB, free: 4.602 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.906e-05/1.797, allocations: 8.031 kB / 0.5872 GB, free: 4.594 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.281e-05/1.797, allocations: 31.56 kB / 0.5872 GB, free: 4.562 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002175/1.797, allocations: 231.7 kB / 0.5874 GB, free: 4.297 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.877e-05/1.797, allocations: 16.44 kB / 0.5874 GB, free: 4.277 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.473e-05/1.797, allocations: 24 kB / 0.5874 GB, free: 4.254 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003886/1.798, allocations: 291.3 kB / 0.5877 GB, free: 3.945 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.22e-05/1.798, allocations: 0 / 0.5877 GB, free: 3.945 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.158e-05/1.798, allocations: 12 kB / 0.5877 GB, free: 3.934 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.502e-05/1.798, allocations: 11.98 kB / 0.5877 GB, free: 3.922 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002597/1.798, allocations: 173 kB / 0.5879 GB, free: 3.754 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.03451/1.833, allocations: 18.01 MB / 0.6055 GB, free: 15.87 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000319/1.833, allocations: 142.5 kB / 0.6056 GB, free: 15.72 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001165/1.833, allocations: 88.84 kB / 0.6057 GB, free: 15.63 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1428/1.976, allocations: 77.26 MB / 0.6812 GB, free: 9.602 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.067e-05/1.976, allocations: 47.92 kB / 0.6812 GB, free: 9.547 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=34): time 2.755e-06/1.976, allocations: 0 / 0.6812 GB, free: 9.547 MB / 0.5762 GB Notification: Performance of matching and sorting (n=34): time 0.001165/1.977, allocations: 439.4 kB / 0.6816 GB, free: 9.09 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.407e-05/1.977, allocations: 59.34 kB / 0.6817 GB, free: 9.02 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002399/1.978, allocations: 223 kB / 0.6819 GB, free: 8.789 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.921e-05/1.978, allocations: 33.7 kB / 0.6819 GB, free: 8.75 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 9.282e-05/1.978, allocations: 144.5 kB / 0.6821 GB, free: 8.605 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 6.987e-05/1.978, allocations: 106.4 kB / 0.6822 GB, free: 8.5 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.249e-05/1.978, allocations: 53.69 kB / 0.6822 GB, free: 8.441 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001276/1.978, allocations: 330.8 kB / 0.6825 GB, free: 8.109 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001096/1.978, allocations: 67.98 kB / 0.6826 GB, free: 8.043 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001317/1.978, allocations: 129.1 kB / 0.6827 GB, free: 7.902 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002403/1.979, allocations: 208.6 kB / 0.6829 GB, free: 7.684 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.507e-06/1.979, allocations: 0 / 0.6829 GB, free: 7.684 MB / 0.5762 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0004166/1.979, allocations: 297.7 kB / 0.6832 GB, free: 7.383 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.857e-05/1.979, allocations: 7.938 kB / 0.6832 GB, free: 7.375 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.347e-06/1.979, allocations: 4 kB / 0.6832 GB, free: 7.371 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009088/1.98, allocations: 158.3 kB / 0.6834 GB, free: 7.215 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.804e-05/1.98, allocations: 8 kB / 0.6834 GB, free: 7.207 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005051/1.98, allocations: 0.642 MB / 0.684 GB, free: 6.539 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001145/1.981, allocations: 27.72 kB / 0.684 GB, free: 6.512 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.448e-05/1.981, allocations: 4 kB / 0.684 GB, free: 6.508 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.0001257/1.981, allocations: 137.8 kB / 0.6842 GB, free: 6.363 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.031e-05/1.981, allocations: 19.72 kB / 0.6842 GB, free: 6.344 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007502/1.982, allocations: 0.5991 MB / 0.6848 GB, free: 5.676 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003497/1.982, allocations: 223.1 kB / 0.685 GB, free: 5.449 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/1.982, allocations: 0 / 0.685 GB, free: 5.449 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.639e-06/1.982, allocations: 4 kB / 0.685 GB, free: 5.445 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008905/1.983, allocations: 0.7355 MB / 0.6857 GB, free: 4.652 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.627e-06/1.983, allocations: 3.984 kB / 0.6857 GB, free: 4.648 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.179e-05/1.983, allocations: 12 kB / 0.6857 GB, free: 4.637 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004912/1.983, allocations: 134 kB / 0.6859 GB, free: 4.504 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.442e-05/1.983, allocations: 8 kB / 0.6859 GB, free: 4.496 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004376/1.984, allocations: 0.6547 MB / 0.6865 GB, free: 3.816 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.878e-06/1.984, allocations: 7.969 kB / 0.6865 GB, free: 3.809 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004106/1.984, allocations: 340.9 kB / 0.6868 GB, free: 3.457 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 8.158e-05/1.984, allocations: 111.5 kB / 0.6869 GB, free: 3.332 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.241e-05/1.984, allocations: 11.84 kB / 0.687 GB, free: 3.32 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001068/1.985, allocations: 8 kB / 0.687 GB, free: 3.312 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.414e-05/1.985, allocations: 7.984 kB / 0.687 GB, free: 3.305 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.847e-06/1.985, allocations: 8 kB / 0.687 GB, free: 3.297 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002262/1.985, allocations: 234 kB / 0.6872 GB, free: 3.07 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.573e-06/1.985, allocations: 0 / 0.6872 GB, free: 3.07 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.003048/1.988, allocations: 1.187 MB / 0.6884 GB, free: 1.883 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.004812/1.993, allocations: 1.778 MB / 0.6901 GB, free: 112 kB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.1568/2.149, allocations: 223.4 kB / 0.6903 GB, free: 225.7 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.409e-06/2.15, allocations: 0.75 kB / 0.6903 GB, free: 225.7 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0002063/2.15, allocations: 92.98 kB / 0.6904 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.0008046/2.151, allocations: 120.7 kB / 0.6905 GB, free: 225.7 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007586/2.151, allocations: 0.6068 MB / 0.6911 GB, free: 225.4 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001503/2.151, allocations: 0.7678 MB / 0.6919 GB, free: 224.7 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 8.706e-05/2.152, allocations: 22.84 kB / 0.6919 GB, free: 224.7 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.465e-05/2.152, allocations: 19.66 kB / 0.6919 GB, free: 224.7 MB / 0.5762 GB Notification: Performance of SimCode: time 6.91e-07/2.152, allocations: 0 / 0.6919 GB, free: 224.7 MB / 0.5762 GB Notification: Performance of Templates: time 0.0458/2.197, allocations: 42.43 MB / 0.7333 GB, free: 206.3 MB / 0.5762 GB make -j1 -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.makefile (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 & ./ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.pipe 2>&1)