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.7868/0.7868, allocations: 150.9 MB / 166.7 MB, free: 14.29 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003319/0.000332, allocations: 11.98 kB / 204.8 MB, free: 9.855 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.169/0.1693, allocations: 31.32 MB / 236.1 MB, free: 5.488 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.616/1.786, allocations: 293.6 MB / 0.5173 GB, free: 13.64 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.1934/1.979, allocations: 185.4 MB / 0.6984 GB, free: 3.848 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000448/1.979, allocations: 7.938 kB / 0.6984 GB, free: 3.84 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.0001575/1.98, allocations: 31.77 kB / 0.6984 GB, free: 3.809 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.000414/1.98, allocations: 103.2 kB / 0.6985 GB, free: 3.707 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.3293/2.309, allocations: 9.96 MB / 0.7083 GB, free: 4.477 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0006088/2.31, allocations: 386.2 kB / 0.7086 GB, free: 4.477 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002535/2.31, allocations: 200.4 kB / 0.7088 GB, free: 4.457 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001556/2.31, allocations: 148.3 kB / 0.709 GB, free: 4.457 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001647/2.311, allocations: 166.9 kB / 0.7091 GB, free: 4.457 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 3.489e-05/2.311, allocations: 36.25 kB / 0.7091 GB, free: 4.457 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0311/2.342, allocations: 19.82 MB / 0.7285 GB, free: 4.355 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001459/2.342, allocations: 71.53 kB / 0.7286 GB, free: 4.355 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0003174/2.342, allocations: 184.7 kB / 0.7287 GB, free: 4.352 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.01396/2.356, allocations: 6.75 MB / 0.7353 GB, free: 4.102 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 8.276e-06/2.356, allocations: 0 / 0.7353 GB, free: 4.102 MB / 0.5762 GB Notification: Performance of FrontEnd: time 2.414e-06/2.356, allocations: 0.6875 kB / 0.7353 GB, free: 4.102 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 8.786e-06/2.356, allocations: 0 / 0.7353 GB, free: 4.102 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.006703/2.363, allocations: 1.741 MB / 0.737 GB, free: 3.078 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.073e-05/2.363, allocations: 8.469 kB / 0.737 GB, free: 3.078 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.457e-05/2.363, allocations: 48.78 kB / 0.7371 GB, free: 3.059 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004378/2.364, allocations: 284.6 kB / 0.7374 GB, free: 18.84 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.603e-05/2.364, allocations: 28.12 kB / 0.7374 GB, free: 18.84 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.207e-05/2.364, allocations: 31.72 kB / 0.7374 GB, free: 18.84 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004973/2.364, allocations: 360.4 kB / 0.7378 GB, free: 18.74 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.168e-05/2.364, allocations: 1.203 kB / 0.7378 GB, free: 18.74 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.552e-05/2.364, allocations: 13.56 kB / 0.7378 GB, free: 18.74 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.039e-05/2.364, allocations: 8.312 kB / 0.7378 GB, free: 18.74 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000351/2.365, allocations: 228.8 kB / 0.738 GB, free: 18.74 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.00826/2.373, allocations: 6.11 MB / 0.744 GB, free: 14.31 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002169/2.373, allocations: 72.41 kB / 0.744 GB, free: 14.28 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.862e-05/2.373, allocations: 33.03 kB / 0.7441 GB, free: 14.27 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2156/2.589, allocations: 118.3 MB / 0.8596 GB, free: 6.609 MB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.934e-05/2.589, allocations: 31.44 kB / 0.8596 GB, free: 6.57 MB / 0.7012 GB Notification: Performance of pre-optimization done (n=7): time 2.114e-06/2.589, allocations: 0 / 0.8596 GB, free: 6.57 MB / 0.7012 GB Notification: Performance of matching and sorting (n=7): time 0.0009088/2.59, allocations: 282.7 kB / 0.8599 GB, free: 6.297 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.415e-05/2.59, allocations: 51.41 kB / 0.8599 GB, free: 6.234 MB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003319/2.59, allocations: 286.5 kB / 0.8602 GB, free: 6.008 MB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 1.667e-05/2.59, allocations: 26.8 kB / 0.8602 GB, free: 5.977 MB / 0.7012 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001583/2.59, allocations: 224.1 kB / 0.8604 GB, free: 5.789 MB / 0.7012 GB Notification: Performance of collectInitialBindings (initialization): time 2.333e-05/2.59, allocations: 27.02 kB / 0.8605 GB, free: 5.766 MB / 0.7012 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.312e-05/2.59, allocations: 63.23 kB / 0.8605 GB, free: 5.715 MB / 0.7012 GB Notification: Performance of setup shared object (initialization): time 0.0001413/2.591, allocations: 333.1 kB / 0.8608 GB, free: 5.391 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.918e-05/2.591, allocations: 41.84 kB / 0.8609 GB, free: 5.363 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001631/2.591, allocations: 138.1 kB / 0.861 GB, free: 5.203 MB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002265/2.591, allocations: 198.6 kB / 0.8612 GB, free: 5.023 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.484e-06/2.591, allocations: 4 kB / 0.8612 GB, free: 5.02 MB / 0.7012 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004884/2.592, allocations: 276 kB / 0.8615 GB, free: 4.816 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 2.08e-05/2.592, allocations: 8 kB / 0.8615 GB, free: 4.809 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.085e-06/2.592, allocations: 8 kB / 0.8615 GB, free: 4.801 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008606/2.593, allocations: 134.4 kB / 0.8616 GB, free: 4.676 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001127/2.593, allocations: 34.89 kB / 0.8617 GB, free: 4.645 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004321/2.593, allocations: 0.5783 MB / 0.8622 GB, free: 4.074 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001666/2.593, allocations: 35.88 kB / 0.8623 GB, free: 4.043 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.806e-05/2.593, allocations: 12 kB / 0.8623 GB, free: 4.031 MB / 0.7012 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.0001406/2.593, allocations: 151.8 kB / 0.8624 GB, free: 3.895 MB / 0.7012 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.948e-05/2.594, allocations: 15.81 kB / 0.8624 GB, free: 3.879 MB / 0.7012 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003773/2.594, allocations: 170 kB / 0.8626 GB, free: 3.734 MB / 0.7012 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.176e-06/2.594, allocations: 4 kB / 0.8626 GB, free: 3.73 MB / 0.7012 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.251e-06/2.594, allocations: 4 kB / 0.8626 GB, free: 3.727 MB / 0.7012 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.645e-06/2.594, allocations: 0 / 0.8626 GB, free: 3.727 MB / 0.7012 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002758/2.594, allocations: 294.5 kB / 0.8629 GB, free: 3.438 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/2.594, allocations: 1.094 kB / 0.8629 GB, free: 3.438 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.31e-05/2.594, allocations: 4 kB / 0.8629 GB, free: 3.434 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004417/2.595, allocations: 93.42 kB / 0.863 GB, free: 3.355 MB / 0.7012 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.255e-05/2.595, allocations: 7.938 kB / 0.863 GB, free: 3.348 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00037/2.595, allocations: 0.5823 MB / 0.8635 GB, free: 2.773 MB / 0.7012 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/2.595, allocations: 4.031 kB / 0.8635 GB, free: 2.77 MB / 0.7012 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002822/2.595, allocations: 163.9 kB / 0.8637 GB, free: 2.617 MB / 0.7012 GB Notification: Performance of postOpt removeConstants (simulation): time 7.895e-05/2.595, allocations: 104.2 kB / 0.8638 GB, free: 2.5 MB / 0.7012 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.078e-05/2.595, allocations: 1.203 kB / 0.8638 GB, free: 2.5 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.359e-05/2.596, allocations: 0 / 0.8638 GB, free: 2.5 MB / 0.7012 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.693e-05/2.596, allocations: 7.984 kB / 0.8638 GB, free: 2.492 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.971e-06/2.596, allocations: 3.625 kB / 0.8638 GB, free: 2.492 MB / 0.7012 GB Notification: Performance of sorting global known variables: time 0.0001963/2.596, allocations: 204 kB / 0.864 GB, free: 2.328 MB / 0.7012 GB Notification: Performance of sort global known variables: time 1.1e-07/2.596, allocations: 0 / 0.864 GB, free: 2.328 MB / 0.7012 GB Notification: Performance of remove unused functions: time 0.004349/2.6, allocations: 1.452 MB / 0.8654 GB, free: 0.9766 MB / 0.7012 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.007275/2.607, allocations: 2.272 MB / 0.8676 GB, free: 15.04 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003982/2.608, allocations: 121.6 kB / 0.8678 GB, free: 14.96 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/2.608, allocations: 0 / 0.8678 GB, free: 14.96 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 8.203e-05/2.608, allocations: 30.98 kB / 0.8678 GB, free: 14.94 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004208/2.608, allocations: 69.11 kB / 0.8679 GB, free: 14.89 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008854/2.609, allocations: 0.5904 MB / 0.8684 GB, free: 14.3 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000315/2.61, allocations: 0.7635 MB / 0.8692 GB, free: 13.51 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.609e-05/2.61, allocations: 23.44 kB / 0.8692 GB, free: 13.48 MB / 0.7169 GB Notification: Performance of SimCode: time 2.61e-07/2.61, allocations: 0 / 0.8692 GB, free: 13.48 MB / 0.7169 GB Notification: Performance of Templates: time 0.04071/2.65, allocations: 28.73 MB / 0.8973 GB, free: 0.875 MB / 0.7325 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)