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.8268/0.8268, allocations: 150.9 MB / 166.5 MB, free: 14.38 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005204/0.0005205, allocations: 17.28 kB / 237.1 MB, free: 1.844 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08888/0.08942, allocations: 31.34 MB / 268.4 MB, free: 7.117 MB / 222.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.71/1.8, allocations: 294.7 MB / 0.5499 GB, free: 13.09 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.4948/2.294, allocations: 187.4 MB / 0.7329 GB, free: 1.801 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001939/2.295, allocations: 9.344 kB / 0.7329 GB, free: 1.801 MB / 0.5919 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.0001095/2.295, allocations: 35.73 kB / 0.7329 GB, free: 1.801 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.0002564/2.295, allocations: 120.2 kB / 0.7331 GB, free: 1.801 MB / 0.5919 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.02601/2.321, allocations: 11.31 MB / 0.7441 GB, free: 1.59 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.0003981/2.321, allocations: 390.2 kB / 0.7445 GB, free: 1.59 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002257/2.322, allocations: 190.5 kB / 0.7447 GB, free: 1.586 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000148/2.322, allocations: 153.8 kB / 0.7448 GB, free: 1.586 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001695/2.322, allocations: 175.1 kB / 0.745 GB, free: 1.586 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 4.394e-05/2.322, allocations: 31.91 kB / 0.745 GB, free: 1.586 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03034/2.352, allocations: 19.89 MB / 0.7644 GB, free: 1.133 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0001129/2.353, allocations: 74.84 kB / 0.7645 GB, free: 1.121 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0002535/2.353, allocations: 182.6 kB / 0.7647 GB, free: 1.113 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.02025/2.373, allocations: 9.737 MB / 0.7742 GB, free: 13.55 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 6.542e-06/2.373, allocations: 5.078 kB / 0.7742 GB, free: 13.54 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.512e-06/2.373, allocations: 0 / 0.7742 GB, free: 13.54 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.403e-05/2.373, allocations: 1 kB / 0.7742 GB, free: 13.54 MB / 0.6075 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.00412/2.377, allocations: 1.746 MB / 0.7759 GB, free: 12.41 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.465e-05/2.377, allocations: 15.84 kB / 0.7759 GB, free: 12.41 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.55e-05/2.377, allocations: 39.88 kB / 0.7759 GB, free: 12.39 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003365/2.378, allocations: 302.6 kB / 0.7762 GB, free: 12.13 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.87e-05/2.378, allocations: 25.31 kB / 0.7762 GB, free: 12.13 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.56e-05/2.378, allocations: 34.97 kB / 0.7763 GB, free: 12.13 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004897/2.378, allocations: 353.2 kB / 0.7766 GB, free: 11.99 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.144e-05/2.378, allocations: 5.812 kB / 0.7766 GB, free: 11.99 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.977e-05/2.378, allocations: 16.62 kB / 0.7766 GB, free: 11.98 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.218e-05/2.378, allocations: 9.375 kB / 0.7767 GB, free: 11.98 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003629/2.379, allocations: 228.6 kB / 0.7769 GB, free: 11.95 MB / 0.6075 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.007983/2.387, allocations: 6.097 MB / 0.7828 GB, free: 6.82 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002124/2.387, allocations: 79.39 kB / 0.7829 GB, free: 6.789 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.667e-05/2.387, allocations: 29.17 kB / 0.7829 GB, free: 6.781 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.243/2.63, allocations: 119 MB / 0.8991 GB, free: 9.832 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.169e-05/2.63, allocations: 36.03 kB / 0.8991 GB, free: 9.793 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=7): time 2.325e-06/2.63, allocations: 4 kB / 0.8991 GB, free: 9.789 MB / 0.7325 GB Notification: Performance of matching and sorting (n=7): time 0.0008315/2.631, allocations: 265.1 kB / 0.8994 GB, free: 9.535 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.544e-05/2.631, allocations: 70.17 kB / 0.8995 GB, free: 9.461 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003168/2.631, allocations: 281.7 kB / 0.8997 GB, free: 9.219 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.35e-05/2.631, allocations: 29.7 kB / 0.8998 GB, free: 9.184 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.000137/2.631, allocations: 225.9 kB / 0.9 GB, free: 8.992 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.959e-05/2.632, allocations: 26.2 kB / 0.9 GB, free: 8.969 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.59e-05/2.632, allocations: 51.73 kB / 0.9001 GB, free: 8.93 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001004/2.632, allocations: 331.8 kB / 0.9004 GB, free: 8.605 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.506e-05/2.632, allocations: 41.92 kB / 0.9004 GB, free: 8.578 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001583/2.632, allocations: 148.3 kB / 0.9005 GB, free: 8.414 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002369/2.632, allocations: 191.6 kB / 0.9007 GB, free: 8.234 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/2.632, allocations: 0 / 0.9007 GB, free: 8.234 MB / 0.7325 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004951/2.633, allocations: 272.1 kB / 0.901 GB, free: 8.031 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.764e-05/2.633, allocations: 13.39 kB / 0.901 GB, free: 8.023 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.965e-06/2.633, allocations: 4.938 kB / 0.901 GB, free: 8.02 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008659/2.634, allocations: 133.6 kB / 0.9011 GB, free: 7.895 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001197/2.634, allocations: 37.48 kB / 0.9012 GB, free: 7.863 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004278/2.634, allocations: 0.5831 MB / 0.9017 GB, free: 7.285 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001692/2.634, allocations: 27.94 kB / 0.9018 GB, free: 7.262 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.997e-05/2.634, allocations: 16 kB / 0.9018 GB, free: 7.246 MB / 0.7325 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.0001365/2.635, allocations: 147.1 kB / 0.9019 GB, free: 7.117 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.24e-05/2.635, allocations: 28.91 kB / 0.902 GB, free: 7.09 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003717/2.635, allocations: 162.6 kB / 0.9021 GB, free: 6.961 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.811e-06/2.635, allocations: 3.938 kB / 0.9021 GB, free: 6.957 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.937e-06/2.635, allocations: 0 / 0.9021 GB, free: 6.957 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.317e-06/2.635, allocations: 0 / 0.9021 GB, free: 6.957 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002926/2.635, allocations: 299.1 kB / 0.9024 GB, free: 6.66 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.394e-06/2.635, allocations: 5.875 kB / 0.9024 GB, free: 6.66 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.635e-05/2.635, allocations: 4.609 kB / 0.9024 GB, free: 6.656 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004876/2.636, allocations: 85.84 kB / 0.9025 GB, free: 6.578 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.086e-05/2.636, allocations: 1.25 kB / 0.9025 GB, free: 6.578 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003743/2.636, allocations: 0.5893 MB / 0.9031 GB, free: 5.969 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/2.636, allocations: 0 / 0.9031 GB, free: 5.969 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003034/2.637, allocations: 167.8 kB / 0.9032 GB, free: 5.789 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 8.804e-05/2.637, allocations: 100.8 kB / 0.9033 GB, free: 5.672 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.374e-05/2.637, allocations: 4 kB / 0.9033 GB, free: 5.668 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.878e-05/2.637, allocations: 4 kB / 0.9033 GB, free: 5.664 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.43e-05/2.637, allocations: 7.172 kB / 0.9033 GB, free: 5.66 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.073e-06/2.637, allocations: 5.438 kB / 0.9033 GB, free: 5.656 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0001969/2.637, allocations: 202 kB / 0.9035 GB, free: 5.461 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.61e-07/2.637, allocations: 5.094 kB / 0.9035 GB, free: 5.457 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.00372/2.641, allocations: 1.44 MB / 0.9049 GB, free: 4.016 MB / 0.7325 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.007009/2.648, allocations: 2.197 MB / 0.9071 GB, free: 2.094 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0003974/2.648, allocations: 126 kB / 0.9072 GB, free: 1.984 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/2.648, allocations: 0 / 0.9072 GB, free: 1.984 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 9.56e-05/2.648, allocations: 36.84 kB / 0.9072 GB, free: 1.949 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004365/2.649, allocations: 71.16 kB / 0.9073 GB, free: 1.887 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007862/2.65, allocations: 450.3 kB / 0.9077 GB, free: 1.426 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002892/2.65, allocations: 0.7608 MB / 0.9085 GB, free: 0.6406 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001203/2.65, allocations: 38.22 kB / 0.9085 GB, free: 0.6016 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.227e-05/2.65, allocations: 23.44 kB / 0.9085 GB, free: 0.5781 MB / 0.7325 GB Notification: Performance of SimCode: time 3.01e-07/2.65, allocations: 0 / 0.9085 GB, free: 0.5781 MB / 0.7325 GB Notification: Performance of Templates: time 0.0557/2.706, allocations: 45.58 MB / 0.9531 GB, free: 3.055 MB / 0.7794 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)