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.8098/0.8098, allocations: 150.8 MB / 166.6 MB, free: 11.17 MB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002419/0.0002419, allocations: 15.97 kB / 204.7 MB, free: 6.168 MB / 170.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1453/0.1456, allocations: 31.32 MB / 236 MB, free: 3.895 MB / 186.7 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.57/1.716, allocations: 291.9 MB / 0.5155 GB, free: 10.1 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.04164/1.757, allocations: 37.55 MB / 0.5522 GB, free: 4.688 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002172/1.758, allocations: 0 / 0.5522 GB, free: 4.688 MB / 442.7 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.0003823/1.758, allocations: 84.52 kB / 0.5523 GB, free: 4.605 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000208/1.758, allocations: 91.36 kB / 0.5524 GB, free: 4.516 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01983/1.778, allocations: 7.154 MB / 0.5594 GB, free: 13.36 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004563/1.778, allocations: 326.4 kB / 0.5597 GB, free: 13.04 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001782/1.779, allocations: 109 kB / 0.5598 GB, free: 12.93 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001921/1.779, allocations: 131.3 kB / 0.5599 GB, free: 12.8 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001315/1.779, allocations: 111.4 kB / 0.56 GB, free: 12.7 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 2.229e-05/1.779, allocations: 12 kB / 0.56 GB, free: 12.68 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02656/1.806, allocations: 17.73 MB / 0.5773 GB, free: 10.93 MB / 474.7 MB Notification: Performance of NFScalarize.scalarize: time 7.286e-05/1.806, allocations: 47.78 kB / 0.5774 GB, free: 10.89 MB / 474.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001679/1.806, allocations: 119.4 kB / 0.5775 GB, free: 10.77 MB / 474.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01712/1.823, allocations: 8.433 MB / 0.5857 GB, free: 2.316 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.52e-06/1.823, allocations: 0 / 0.5857 GB, free: 2.316 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.012e-06/1.823, allocations: 0 / 0.5857 GB, free: 2.316 MB / 474.7 MB Notification: Performance of Transformations before backend: time 6.873e-06/1.823, allocations: 0 / 0.5857 GB, free: 2.316 MB / 474.7 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.003639/1.827, allocations: 1.435 MB / 0.5871 GB, free: 0.8281 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.246e-05/1.827, allocations: 8.031 kB / 0.5871 GB, free: 0.8203 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.793e-05/1.827, allocations: 31.56 kB / 0.5872 GB, free: 0.7891 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002143/1.827, allocations: 244 kB / 0.5874 GB, free: 0.5117 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.901e-05/1.827, allocations: 12.44 kB / 0.5874 GB, free: 0.5 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.416e-05/1.827, allocations: 20 kB / 0.5874 GB, free: 492 kB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004033/1.828, allocations: 299.3 kB / 0.5877 GB, free: 168 kB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.718e-06/1.828, allocations: 0 / 0.5877 GB, free: 168 kB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.129e-05/1.828, allocations: 16 kB / 0.5877 GB, free: 152 kB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.277e-05/1.828, allocations: 11.94 kB / 0.5877 GB, free: 140 kB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002576/1.828, allocations: 173.1 kB / 0.5879 GB, free: 15.96 MB / 490.7 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.03734/1.865, allocations: 18.01 MB / 0.6055 GB, free: 12.09 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003154/1.866, allocations: 138.5 kB / 0.6056 GB, free: 11.94 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001172/1.866, allocations: 88.84 kB / 0.6057 GB, free: 11.85 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1571/2.023, allocations: 77.27 MB / 0.6812 GB, free: 5.809 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.305e-05/2.023, allocations: 34.56 kB / 0.6812 GB, free: 5.766 MB / 0.573 GB Notification: Performance of pre-optimization done (n=34): time 2.304e-06/2.023, allocations: 0 / 0.6812 GB, free: 5.766 MB / 0.573 GB Notification: Performance of matching and sorting (n=34): time 0.0009993/2.024, allocations: 443.3 kB / 0.6816 GB, free: 5.305 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.231e-05/2.024, allocations: 59.39 kB / 0.6817 GB, free: 5.234 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002233/2.024, allocations: 219.1 kB / 0.6819 GB, free: 5.008 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 2.062e-05/2.024, allocations: 33.7 kB / 0.6819 GB, free: 4.969 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001114/2.024, allocations: 140.5 kB / 0.682 GB, free: 4.828 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 6.811e-05/2.024, allocations: 110.3 kB / 0.6822 GB, free: 4.719 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.77e-05/2.025, allocations: 53.69 kB / 0.6822 GB, free: 4.66 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001065/2.025, allocations: 330.8 kB / 0.6825 GB, free: 4.328 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001055/2.025, allocations: 71.97 kB / 0.6826 GB, free: 4.258 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001305/2.025, allocations: 116.3 kB / 0.6827 GB, free: 4.129 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002361/2.025, allocations: 204.6 kB / 0.6829 GB, free: 3.914 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/2.025, allocations: 7.938 kB / 0.6829 GB, free: 3.906 MB / 0.573 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0003985/2.026, allocations: 301.6 kB / 0.6832 GB, free: 3.602 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.692e-05/2.026, allocations: 7.938 kB / 0.6832 GB, free: 3.594 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.428e-06/2.026, allocations: 4 kB / 0.6832 GB, free: 3.59 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009117/2.026, allocations: 156.8 kB / 0.6833 GB, free: 3.438 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.942e-05/2.027, allocations: 19.92 kB / 0.6834 GB, free: 3.418 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004829/2.027, allocations: 0.6319 MB / 0.684 GB, free: 2.762 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001132/2.027, allocations: 31.62 kB / 0.684 GB, free: 2.73 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.358e-05/2.027, allocations: 4 kB / 0.684 GB, free: 2.727 MB / 0.573 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.0001261/2.027, allocations: 145.7 kB / 0.6842 GB, free: 2.574 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.216e-05/2.027, allocations: 23.72 kB / 0.6842 GB, free: 2.551 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007228/2.028, allocations: 0.5953 MB / 0.6848 GB, free: 1.887 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003463/2.028, allocations: 218.3 kB / 0.685 GB, free: 1.664 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.571e-06/2.028, allocations: 0 / 0.685 GB, free: 1.664 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/2.028, allocations: 0 / 0.685 GB, free: 1.664 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009191/2.029, allocations: 0.7383 MB / 0.6857 GB, free: 0.8672 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/2.029, allocations: 0 / 0.6857 GB, free: 0.8672 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.235e-05/2.029, allocations: 12 kB / 0.6857 GB, free: 0.8555 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000504/2.03, allocations: 140.7 kB / 0.6858 GB, free: 0.7148 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.334e-05/2.03, allocations: 8 kB / 0.6858 GB, free: 0.707 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004382/2.03, allocations: 0.6512 MB / 0.6865 GB, free: 32 kB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/2.03, allocations: 0 / 0.6865 GB, free: 32 kB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.159/2.19, allocations: 1.039 MB / 0.6875 GB, free: 222.4 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 7.729e-05/2.19, allocations: 110 kB / 0.6876 GB, free: 222.3 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.984e-05/2.19, allocations: 10.66 kB / 0.6876 GB, free: 222.3 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001239/2.19, allocations: 5.656 kB / 0.6876 GB, free: 222.3 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.302e-05/2.19, allocations: 9.719 kB / 0.6876 GB, free: 222.3 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.668e-06/2.19, allocations: 8.281 kB / 0.6876 GB, free: 222.3 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.0002138/2.19, allocations: 233.4 kB / 0.6879 GB, free: 222.2 MB / 0.573 GB Notification: Performance of sort global known variables: time 1.5e-07/2.19, allocations: 1.938 kB / 0.6879 GB, free: 222.2 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.002843/2.193, allocations: 1.228 MB / 0.6891 GB, free: 222.2 MB / 0.573 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.004249/2.197, allocations: 1.779 MB / 0.6908 GB, free: 222 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.0004879/2.198, allocations: 233.4 kB / 0.691 GB, free: 222 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/2.198, allocations: 0 / 0.691 GB, free: 222 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.0002214/2.198, allocations: 92.98 kB / 0.6911 GB, free: 222 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007438/2.199, allocations: 118.4 kB / 0.6912 GB, free: 222 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008365/2.2, allocations: 0.7854 MB / 0.692 GB, free: 221.5 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001948/2.2, allocations: 0.7733 MB / 0.6927 GB, free: 220.9 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 9.017e-05/2.2, allocations: 23.78 kB / 0.6928 GB, free: 220.8 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.605e-05/2.2, allocations: 20.42 kB / 0.6928 GB, free: 220.8 MB / 0.573 GB Notification: Performance of SimCode: time 3e-07/2.2, allocations: 1 kB / 0.6928 GB, free: 220.8 MB / 0.573 GB Notification: Performance of Templates: time 0.05798/2.258, allocations: 42.59 MB / 0.7344 GB, free: 199.7 MB / 0.573 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)