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.8324/0.8324, allocations: 150.9 MB / 166.4 MB, free: 14.47 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003072/0.0003073, allocations: 15.98 kB / 204.6 MB, free: 9.734 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1472/0.1475, allocations: 31.32 MB / 235.9 MB, free: 5.426 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.628/1.775, allocations: 294.7 MB / 0.5181 GB, free: 13.32 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.191/1.967, allocations: 187.4 MB / 0.7012 GB, free: 1.488 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002747/1.967, allocations: 7.938 kB / 0.7012 GB, free: 1.48 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.0001223/1.967, allocations: 45.12 kB / 0.7012 GB, free: 1.438 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0002875/1.967, allocations: 115 kB / 0.7013 GB, free: 1.324 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.3238/2.291, allocations: 11.29 MB / 0.7123 GB, free: 2.656 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0004421/2.292, allocations: 391.4 kB / 0.7127 GB, free: 2.656 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002558/2.292, allocations: 198.6 kB / 0.7129 GB, free: 2.637 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001428/2.292, allocations: 148.3 kB / 0.7131 GB, free: 2.637 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001777/2.292, allocations: 167.8 kB / 0.7132 GB, free: 2.637 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 3.97e-05/2.292, allocations: 34.12 kB / 0.7132 GB, free: 2.637 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03568/2.328, allocations: 19.64 MB / 0.7324 GB, free: 2.555 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001277/2.328, allocations: 72.61 kB / 0.7325 GB, free: 2.555 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0003284/2.328, allocations: 184.1 kB / 0.7327 GB, free: 2.555 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.02391/2.352, allocations: 9.756 MB / 0.7422 GB, free: 0.6367 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 7.674e-06/2.352, allocations: 0 / 0.7422 GB, free: 0.6367 MB / 0.5762 GB Notification: Performance of FrontEnd: time 2.414e-06/2.352, allocations: 1.062 kB / 0.7422 GB, free: 0.6367 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.749e-05/2.352, allocations: 1.094 kB / 0.7422 GB, free: 0.6367 MB / 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.005121/2.358, allocations: 1.755 MB / 0.7439 GB, free: 15.5 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.558e-05/2.358, allocations: 10.12 kB / 0.7439 GB, free: 15.5 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.828e-05/2.358, allocations: 42 kB / 0.744 GB, free: 15.48 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003492/2.358, allocations: 291.8 kB / 0.7442 GB, free: 15.23 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.534e-05/2.358, allocations: 28.91 kB / 0.7443 GB, free: 15.23 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.973e-05/2.358, allocations: 32.41 kB / 0.7443 GB, free: 15.23 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004772/2.359, allocations: 356 kB / 0.7446 GB, free: 15.09 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.101e-05/2.359, allocations: 0.9062 kB / 0.7446 GB, free: 15.09 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.65e-05/2.359, allocations: 13.94 kB / 0.7447 GB, free: 15.09 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.045e-05/2.359, allocations: 11.41 kB / 0.7447 GB, free: 15.09 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003689/2.359, allocations: 224.2 kB / 0.7449 GB, free: 15.05 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.008849/2.368, allocations: 6.112 MB / 0.7508 GB, free: 9.918 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002336/2.368, allocations: 71.75 kB / 0.7509 GB, free: 9.891 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.197e-05/2.368, allocations: 33.03 kB / 0.7509 GB, free: 9.879 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2446/2.613, allocations: 118.3 MB / 0.8664 GB, free: 88 kB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.346e-05/2.613, allocations: 30.56 kB / 0.8665 GB, free: 48 kB / 0.7012 GB Notification: Performance of pre-optimization done (n=7): time 2.374e-06/2.613, allocations: 4 kB / 0.8665 GB, free: 44 kB / 0.7012 GB Notification: Performance of matching and sorting (n=7): time 0.0009568/2.614, allocations: 281.2 kB / 0.8667 GB, free: 15.77 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.222e-05/2.614, allocations: 51.41 kB / 0.8668 GB, free: 15.71 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003567/2.614, allocations: 283 kB / 0.8671 GB, free: 15.48 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.626e-05/2.614, allocations: 29.27 kB / 0.8671 GB, free: 15.45 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001391/2.614, allocations: 222.5 kB / 0.8673 GB, free: 15.26 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.448e-05/2.614, allocations: 28.22 kB / 0.8673 GB, free: 15.24 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.67e-05/2.615, allocations: 59.23 kB / 0.8674 GB, free: 15.19 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 0.0001128/2.615, allocations: 333.1 kB / 0.8677 GB, free: 14.87 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001048/2.615, allocations: 45.84 kB / 0.8678 GB, free: 14.84 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001592/2.615, allocations: 138.9 kB / 0.8679 GB, free: 14.68 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002422/2.615, allocations: 192 kB / 0.8681 GB, free: 14.5 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/2.615, allocations: 0 / 0.8681 GB, free: 14.5 MB / 0.7169 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005769/2.616, allocations: 283.4 kB / 0.8683 GB, free: 14.29 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.837e-05/2.616, allocations: 8 kB / 0.8683 GB, free: 14.29 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.024e-05/2.616, allocations: 4 kB / 0.8684 GB, free: 14.28 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009224/2.617, allocations: 135.9 kB / 0.8685 GB, free: 14.15 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001214/2.617, allocations: 35.08 kB / 0.8685 GB, free: 14.12 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004199/2.617, allocations: 0.5785 MB / 0.8691 GB, free: 13.55 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001867/2.618, allocations: 42.91 kB / 0.8691 GB, free: 13.51 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.732e-05/2.618, allocations: 8.312 kB / 0.8691 GB, free: 13.5 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.0001423/2.618, allocations: 154.7 kB / 0.8693 GB, free: 13.37 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.227e-05/2.618, allocations: 19.81 kB / 0.8693 GB, free: 13.35 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003978/2.618, allocations: 164.2 kB / 0.8695 GB, free: 13.21 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.592e-06/2.618, allocations: 7.656 kB / 0.8695 GB, free: 13.2 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.857e-06/2.618, allocations: 0 / 0.8695 GB, free: 13.2 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-06/2.618, allocations: 0 / 0.8695 GB, free: 13.2 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002907/2.619, allocations: 302.4 kB / 0.8697 GB, free: 12.91 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/2.619, allocations: 0 / 0.8697 GB, free: 12.91 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.592e-05/2.619, allocations: 4 kB / 0.8698 GB, free: 12.91 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004821/2.619, allocations: 87.22 kB / 0.8698 GB, free: 12.83 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.088e-05/2.619, allocations: 7.938 kB / 0.8698 GB, free: 12.82 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003785/2.619, allocations: 0.5934 MB / 0.8704 GB, free: 12.24 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/2.619, allocations: 1.094 kB / 0.8704 GB, free: 12.24 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003003/2.62, allocations: 154.2 kB / 0.8706 GB, free: 12.09 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 9.621e-05/2.62, allocations: 107.8 kB / 0.8707 GB, free: 11.97 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.746e-05/2.62, allocations: 0 / 0.8707 GB, free: 11.97 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.657e-05/2.62, allocations: 0 / 0.8707 GB, free: 11.97 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.782e-05/2.62, allocations: 12.05 kB / 0.8707 GB, free: 11.96 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.29e-06/2.62, allocations: 0 / 0.8707 GB, free: 11.96 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0002137/2.62, allocations: 204.6 kB / 0.8709 GB, free: 11.8 MB / 0.7169 GB Notification: Performance of sort global known variables: time 2.41e-07/2.62, allocations: 1.203 kB / 0.8709 GB, free: 11.8 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.004253/2.625, allocations: 1.441 MB / 0.8723 GB, free: 10.46 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.008045/2.633, allocations: 2.207 MB / 0.8744 GB, free: 8.574 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004605/2.633, allocations: 119.8 kB / 0.8746 GB, free: 8.492 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 4.258e-06/2.633, allocations: 0 / 0.8746 GB, free: 8.492 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001058/2.633, allocations: 36.2 kB / 0.8746 GB, free: 8.465 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004703/2.634, allocations: 68.94 kB / 0.8747 GB, free: 8.418 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009217/2.635, allocations: 458.3 kB / 0.8751 GB, free: 7.973 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002981/2.635, allocations: 0.7635 MB / 0.8758 GB, free: 7.184 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0001583/2.635, allocations: 43.56 kB / 0.8759 GB, free: 7.145 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.636e-05/2.635, allocations: 23.44 kB / 0.8759 GB, free: 7.121 MB / 0.7169 GB Notification: Performance of SimCode: time 6.72e-07/2.635, allocations: 0 / 0.8759 GB, free: 7.121 MB / 0.7169 GB Notification: Performance of Templates: time 0.06503/2.7, allocations: 45.56 MB / 0.9204 GB, free: 9.633 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 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.pipe 2>&1)