Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.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.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss") translateModel(ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.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.8478/0.8478, allocations: 150.9 MB / 167.1 MB, free: 14.53 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003236/0.0003237, allocations: 19.95 kB / 206 MB, free: 9.016 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1417/0.1421, allocations: 31.32 MB / 237.3 MB, free: 5.727 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.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss): time 1.593/1.735, allocations: 294.5 MB / 0.5193 GB, free: 13.19 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.1879/1.923, allocations: 187.4 MB / 0.7023 GB, free: 1.359 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001922/1.923, allocations: 4 kB / 0.7023 GB, free: 1.355 MB / 0.5762 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SourceP.mo:58:3-59:65:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SinkP.mo:46:3-47:67:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/PressureLosses/PipePressureLoss.mo:33:3-34:67:writable] Warning: Connector C1 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/PressureLosses/PipePressureLoss.mo:35:3-36:65:writable] Warning: Connector C2 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.0001225/1.923, allocations: 40.8 kB / 0.7024 GB, free: 1.316 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0002639/1.924, allocations: 111 kB / 0.7025 GB, free: 1.207 MB / 0.5762 GB [/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. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/Fluid/derDensity_derP_derh.mo:63:5-63:84:writable] Warning: T 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.2814/2.205, allocations: 11.3 MB / 0.7135 GB, free: 2.633 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.000398/2.205, allocations: 385.3 kB / 0.7139 GB, free: 2.633 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002248/2.206, allocations: 199.7 kB / 0.7141 GB, free: 2.613 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001333/2.206, allocations: 148.2 kB / 0.7142 GB, free: 2.613 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001594/2.206, allocations: 171.5 kB / 0.7144 GB, free: 2.613 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 3.263e-05/2.206, allocations: 36.62 kB / 0.7144 GB, free: 2.613 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02935/2.235, allocations: 19.89 MB / 0.7338 GB, free: 2.531 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001194/2.235, allocations: 71.91 kB / 0.7339 GB, free: 2.531 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0002442/2.236, allocations: 188.3 kB / 0.7341 GB, free: 2.527 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.02031/2.256, allocations: 9.732 MB / 0.7436 GB, free: 384 kB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 6.442e-06/2.256, allocations: 0 / 0.7436 GB, free: 384 kB / 0.5762 GB Notification: Performance of FrontEnd: time 1.613e-06/2.256, allocations: 1.203 kB / 0.7436 GB, free: 384 kB / 0.5762 GB Notification: Performance of Transformations before backend: time 7.715e-06/2.256, allocations: 0.8125 kB / 0.7436 GB, free: 384 kB / 0.5762 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 86 * Number of variables: 86 Notification: Performance of Generate backend data structure: time 0.004493/2.261, allocations: 1.75 MB / 0.7453 GB, free: 15.24 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.478e-05/2.261, allocations: 10.72 kB / 0.7453 GB, free: 15.24 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.927e-05/2.261, allocations: 49.42 kB / 0.7454 GB, free: 15.21 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003592/2.261, allocations: 293.4 kB / 0.7456 GB, free: 14.96 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.114e-05/2.261, allocations: 27.94 kB / 0.7457 GB, free: 14.96 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.83e-05/2.261, allocations: 35.98 kB / 0.7457 GB, free: 14.96 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004764/2.262, allocations: 357.3 kB / 0.746 GB, free: 14.82 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.165e-05/2.262, allocations: 3.812 kB / 0.746 GB, free: 14.82 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.429e-05/2.262, allocations: 12.81 kB / 0.7461 GB, free: 14.82 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.957e-06/2.262, allocations: 8.562 kB / 0.7461 GB, free: 14.82 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003569/2.262, allocations: 227.3 kB / 0.7463 GB, free: 14.79 MB / 0.5919 GB 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.007973/2.27, allocations: 6.093 MB / 0.7522 GB, free: 9.656 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002073/2.27, allocations: 80.69 kB / 0.7523 GB, free: 9.629 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.881e-05/2.27, allocations: 26.81 kB / 0.7523 GB, free: 9.617 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2288/2.499, allocations: 119 MB / 0.8685 GB, free: 15.09 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.8e-05/2.499, allocations: 35.61 kB / 0.8686 GB, free: 15.05 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.954e-06/2.499, allocations: 0 / 0.8686 GB, free: 15.05 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0008418/2.5, allocations: 284.5 kB / 0.8688 GB, free: 14.78 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.535e-05/2.5, allocations: 58.5 kB / 0.8689 GB, free: 14.71 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003144/2.5, allocations: 278.9 kB / 0.8691 GB, free: 14.48 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.463e-05/2.501, allocations: 28.89 kB / 0.8692 GB, free: 14.45 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001229/2.501, allocations: 230.2 kB / 0.8694 GB, free: 14.26 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.973e-05/2.501, allocations: 31.31 kB / 0.8694 GB, free: 14.23 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.661e-05/2.501, allocations: 55.23 kB / 0.8695 GB, free: 14.19 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 0.0001103/2.501, allocations: 333.2 kB / 0.8698 GB, free: 13.87 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001009/2.501, allocations: 42.59 kB / 0.8698 GB, free: 13.84 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001502/2.501, allocations: 143.5 kB / 0.87 GB, free: 13.68 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002258/2.501, allocations: 190.3 kB / 0.8702 GB, free: 13.5 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/2.501, allocations: 0 / 0.8702 GB, free: 13.5 MB / 0.7169 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005053/2.502, allocations: 275.6 kB / 0.8704 GB, free: 13.29 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.537e-05/2.502, allocations: 5.406 kB / 0.8704 GB, free: 13.29 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.253e-06/2.502, allocations: 4 kB / 0.8704 GB, free: 13.28 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008668/2.503, allocations: 135.2 kB / 0.8706 GB, free: 13.16 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001258/2.503, allocations: 35.08 kB / 0.8706 GB, free: 13.12 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004054/2.503, allocations: 0.581 MB / 0.8712 GB, free: 12.55 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001684/2.504, allocations: 35.16 kB / 0.8712 GB, free: 12.52 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.076e-05/2.504, allocations: 15.38 kB / 0.8712 GB, free: 12.51 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 6 (SourceP1.C.ftype,PuitsP1.fluid,pipePressureLoss.fluid,SourceP1.fluid1,SourceP1.C.diff_on_2,pipePressureLoss.C2.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 21 * 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,4)} Notification: Performance of prepare postOptimizeDAE: time 0.000141/2.504, allocations: 150.5 kB / 0.8713 GB, free: 12.37 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.659e-05/2.504, allocations: 19.81 kB / 0.8714 GB, free: 12.35 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003742/2.504, allocations: 176.4 kB / 0.8715 GB, free: 12.2 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.246e-06/2.504, allocations: 0 / 0.8715 GB, free: 12.2 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.577e-06/2.504, allocations: 0 / 0.8715 GB, free: 12.2 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-06/2.504, allocations: 0 / 0.8715 GB, free: 12.2 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002704/2.504, allocations: 300 kB / 0.8718 GB, free: 11.91 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/2.504, allocations: 0 / 0.8718 GB, free: 11.91 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.346e-05/2.504, allocations: 3.094 kB / 0.8718 GB, free: 11.91 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004514/2.505, allocations: 87.16 kB / 0.8719 GB, free: 11.83 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.668e-06/2.505, allocations: 3.938 kB / 0.8719 GB, free: 11.83 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003573/2.505, allocations: 0.5832 MB / 0.8725 GB, free: 11.25 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/2.505, allocations: 1.203 kB / 0.8725 GB, free: 11.25 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002883/2.506, allocations: 165.7 kB / 0.8726 GB, free: 11.09 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 8.372e-05/2.506, allocations: 104.5 kB / 0.8727 GB, free: 10.98 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.426e-05/2.506, allocations: 4 kB / 0.8727 GB, free: 10.97 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.104e-05/2.506, allocations: 3.188 kB / 0.8727 GB, free: 10.97 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.268e-05/2.506, allocations: 7.891 kB / 0.8728 GB, free: 10.97 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.736e-06/2.506, allocations: 11.09 kB / 0.8728 GB, free: 10.96 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0001856/2.506, allocations: 204.5 kB / 0.873 GB, free: 10.8 MB / 0.7169 GB Notification: Performance of sort global known variables: time 7.21e-07/2.506, allocations: 0 / 0.873 GB, free: 10.8 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.003555/2.51, allocations: 1.442 MB / 0.8744 GB, free: 9.461 MB / 0.7169 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 (2): * Single equations (assignments): 1 * 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.005843/2.516, allocations: 2.205 MB / 0.8765 GB, free: 7.578 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003714/2.516, allocations: 114 kB / 0.8766 GB, free: 7.5 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/2.516, allocations: 1.203 kB / 0.8766 GB, free: 7.5 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 9.014e-05/2.516, allocations: 38.91 kB / 0.8767 GB, free: 7.469 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003994/2.516, allocations: 61.39 kB / 0.8767 GB, free: 7.426 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000768/2.517, allocations: 453.1 kB / 0.8772 GB, free: 6.984 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002698/2.517, allocations: 0.7558 MB / 0.8779 GB, free: 6.203 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0001153/2.518, allocations: 47.45 kB / 0.8779 GB, free: 6.16 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.806e-05/2.518, allocations: 19.44 kB / 0.878 GB, free: 6.141 MB / 0.7169 GB Notification: Performance of SimCode: time 2.8e-07/2.518, allocations: 0 / 0.878 GB, free: 6.141 MB / 0.7169 GB Notification: Performance of Templates: time 0.05586/2.574, allocations: 45.55 MB / 0.9224 GB, free: 8.664 MB / 0.7637 GB make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.makefile (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.sim & ./ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.pipe 2>&1)