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.7894/0.7894, allocations: 150.9 MB / 166.1 MB, free: 14.59 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002694/0.0002695, allocations: 11.98 kB / 204.2 MB, free: 10.04 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1402/0.1405, allocations: 31.33 MB / 235.5 MB, free: 5.453 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.551/1.692, allocations: 293.6 MB / 0.5167 GB, free: 13.63 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.1698/1.862, allocations: 185.4 MB / 0.6978 GB, free: 3.824 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000323/1.862, allocations: 4 kB / 0.6978 GB, free: 3.82 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.000177/1.862, allocations: 35.7 kB / 0.6978 GB, free: 3.785 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0003681/1.863, allocations: 99.22 kB / 0.6979 GB, free: 3.688 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.299/2.162, allocations: 9.96 MB / 0.7076 GB, free: 4.426 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0005094/2.162, allocations: 384.8 kB / 0.708 GB, free: 4.426 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002359/2.162, allocations: 201.6 kB / 0.7082 GB, free: 4.406 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001352/2.163, allocations: 150.2 kB / 0.7083 GB, free: 4.406 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001586/2.163, allocations: 167.5 kB / 0.7085 GB, free: 4.406 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 3.511e-05/2.163, allocations: 31.94 kB / 0.7085 GB, free: 4.406 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02751/2.19, allocations: 19.82 MB / 0.7279 GB, free: 4.301 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001274/2.19, allocations: 74.84 kB / 0.728 GB, free: 4.301 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0002628/2.191, allocations: 185.1 kB / 0.7281 GB, free: 4.301 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.01907/2.21, allocations: 9.859 MB / 0.7378 GB, free: 3.785 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 6.191e-06/2.21, allocations: 0 / 0.7378 GB, free: 3.785 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.633e-06/2.21, allocations: 0.9062 kB / 0.7378 GB, free: 3.785 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 8.657e-06/2.21, allocations: 0 / 0.7378 GB, free: 3.785 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.00478/2.215, allocations: 1.749 MB / 0.7395 GB, free: 2.652 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.602e-05/2.215, allocations: 9.562 kB / 0.7395 GB, free: 2.652 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.483e-05/2.215, allocations: 41.06 kB / 0.7395 GB, free: 2.633 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003904/2.215, allocations: 295.6 kB / 0.7398 GB, free: 18.38 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.204e-05/2.215, allocations: 26.25 kB / 0.7398 GB, free: 18.38 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.533e-05/2.215, allocations: 34.09 kB / 0.7399 GB, free: 18.38 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004753/2.216, allocations: 354.9 kB / 0.7402 GB, free: 18.24 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.253e-05/2.216, allocations: 2.906 kB / 0.7402 GB, free: 18.24 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.808e-05/2.216, allocations: 15.03 kB / 0.7402 GB, free: 18.24 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.817e-06/2.216, allocations: 7.938 kB / 0.7402 GB, free: 18.24 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003546/2.216, allocations: 235.6 kB / 0.7405 GB, free: 18.21 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.007793/2.224, allocations: 6.097 MB / 0.7464 GB, free: 13.08 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002042/2.224, allocations: 85.12 kB / 0.7465 GB, free: 13.05 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.336e-05/2.224, allocations: 30.78 kB / 0.7465 GB, free: 13.04 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2245/2.449, allocations: 118.3 MB / 0.862 GB, free: 4.57 MB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.643e-05/2.449, allocations: 34.55 kB / 0.8621 GB, free: 4.527 MB / 0.7012 GB Notification: Performance of pre-optimization done (n=7): time 1.994e-06/2.449, allocations: 0 / 0.8621 GB, free: 4.527 MB / 0.7012 GB Notification: Performance of matching and sorting (n=7): time 0.0008217/2.45, allocations: 281.7 kB / 0.8623 GB, free: 4.258 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.815e-05/2.45, allocations: 51.41 kB / 0.8624 GB, free: 4.195 MB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002891/2.45, allocations: 286.3 kB / 0.8626 GB, free: 3.969 MB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 1.433e-05/2.45, allocations: 28.95 kB / 0.8627 GB, free: 3.938 MB / 0.7012 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001202/2.45, allocations: 223.7 kB / 0.8629 GB, free: 3.746 MB / 0.7012 GB Notification: Performance of collectInitialBindings (initialization): time 2.039e-05/2.45, allocations: 25.78 kB / 0.8629 GB, free: 3.727 MB / 0.7012 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.552e-05/2.45, allocations: 62.97 kB / 0.863 GB, free: 3.676 MB / 0.7012 GB Notification: Performance of setup shared object (initialization): time 0.0001064/2.45, allocations: 329.1 kB / 0.8633 GB, free: 3.355 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.08e-05/2.451, allocations: 49.91 kB / 0.8633 GB, free: 3.32 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001459/2.451, allocations: 135.9 kB / 0.8635 GB, free: 3.168 MB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002069/2.451, allocations: 191.9 kB / 0.8636 GB, free: 2.984 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/2.451, allocations: 0 / 0.8636 GB, free: 2.984 MB / 0.7012 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004851/2.451, allocations: 274 kB / 0.8639 GB, free: 2.781 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 1.648e-05/2.451, allocations: 10.91 kB / 0.8639 GB, free: 2.773 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.113e-06/2.451, allocations: 4 kB / 0.8639 GB, free: 2.77 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008732/2.452, allocations: 147.4 kB / 0.8641 GB, free: 2.633 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001114/2.452, allocations: 34.89 kB / 0.8641 GB, free: 2.602 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004016/2.453, allocations: 0.5783 MB / 0.8647 GB, free: 2.031 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001681/2.453, allocations: 36.72 kB / 0.8647 GB, free: 1.996 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.669e-05/2.453, allocations: 15.19 kB / 0.8647 GB, free: 1.984 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.0001192/2.453, allocations: 142.5 kB / 0.8648 GB, free: 1.855 MB / 0.7012 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.147e-05/2.453, allocations: 15.81 kB / 0.8649 GB, free: 1.84 MB / 0.7012 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003666/2.454, allocations: 169.7 kB / 0.865 GB, free: 1.695 MB / 0.7012 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.745e-06/2.454, allocations: 0 / 0.865 GB, free: 1.695 MB / 0.7012 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/2.454, allocations: 4 kB / 0.865 GB, free: 1.691 MB / 0.7012 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.965e-06/2.454, allocations: 4 kB / 0.865 GB, free: 1.688 MB / 0.7012 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002478/2.454, allocations: 295.7 kB / 0.8653 GB, free: 1.398 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/2.454, allocations: 2.906 kB / 0.8653 GB, free: 1.398 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.492e-05/2.454, allocations: 5.203 kB / 0.8653 GB, free: 1.395 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004443/2.454, allocations: 86.09 kB / 0.8654 GB, free: 1.32 MB / 0.7012 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.718e-05/2.454, allocations: 12.56 kB / 0.8654 GB, free: 1.309 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003635/2.455, allocations: 0.5824 MB / 0.866 GB, free: 0.7344 MB / 0.7012 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/2.455, allocations: 6.938 kB / 0.866 GB, free: 0.7305 MB / 0.7012 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002879/2.455, allocations: 158.2 kB / 0.8661 GB, free: 0.582 MB / 0.7012 GB Notification: Performance of postOpt removeConstants (simulation): time 7.109e-05/2.455, allocations: 111.8 kB / 0.8662 GB, free: 472 kB / 0.7012 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.245e-05/2.455, allocations: 3.984 kB / 0.8662 GB, free: 468 kB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.637e-05/2.455, allocations: 0 / 0.8662 GB, free: 468 kB / 0.7012 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.789e-05/2.455, allocations: 5.094 kB / 0.8663 GB, free: 464 kB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.18e-06/2.455, allocations: 3.812 kB / 0.8663 GB, free: 464 kB / 0.7012 GB Notification: Performance of sorting global known variables: time 0.0001854/2.456, allocations: 204.7 kB / 0.8665 GB, free: 292 kB / 0.7012 GB Notification: Performance of sort global known variables: time 1.3e-07/2.456, allocations: 0 / 0.8665 GB, free: 292 kB / 0.7012 GB Notification: Performance of remove unused functions: time 0.003594/2.459, allocations: 1.448 MB / 0.8679 GB, free: 14.94 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.005816/2.465, allocations: 2.273 MB / 0.8701 GB, free: 13 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003463/2.465, allocations: 118.7 kB / 0.8702 GB, free: 12.92 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/2.465, allocations: 0 / 0.8702 GB, free: 12.92 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 8.526e-05/2.465, allocations: 44.42 kB / 0.8702 GB, free: 12.89 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003769/2.466, allocations: 69.17 kB / 0.8703 GB, free: 12.84 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007683/2.467, allocations: 0.5468 MB / 0.8708 GB, free: 12.29 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003057/2.467, allocations: 0.7664 MB / 0.8716 GB, free: 11.5 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0001286/2.467, allocations: 38.2 kB / 0.8716 GB, free: 11.47 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.723e-05/2.467, allocations: 27.44 kB / 0.8717 GB, free: 11.44 MB / 0.7169 GB Notification: Performance of SimCode: time 2.21e-07/2.467, allocations: 0 / 0.8717 GB, free: 11.44 MB / 0.7169 GB Notification: Performance of Templates: time 0.05364/2.521, allocations: 45.99 MB / 0.9166 GB, free: 13.58 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)