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.8514/0.8514, allocations: 150.9 MB / 167.2 MB, free: 14.53 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000374/0.0003739, allocations: 13.62 kB / 237.7 MB, free: 1.828 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06938/0.06977, allocations: 31.35 MB / 269.1 MB, free: 7.102 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.76/1.83, allocations: 294.8 MB / 0.5506 GB, free: 13.05 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.5342/2.364, allocations: 187.4 MB / 0.7336 GB, free: 1.801 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000286/2.364, allocations: 8.688 kB / 0.7336 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.0001331/2.364, allocations: 43.14 kB / 0.7337 GB, free: 1.801 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.0002936/2.365, allocations: 113.7 kB / 0.7338 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.03019/2.395, allocations: 11.53 MB / 0.7451 GB, free: 1.59 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.0004525/2.395, allocations: 383.5 kB / 0.7454 GB, free: 1.59 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002565/2.396, allocations: 199.6 kB / 0.7456 GB, free: 1.586 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001517/2.396, allocations: 154.1 kB / 0.7458 GB, free: 1.586 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001715/2.396, allocations: 165.1 kB / 0.7459 GB, free: 1.586 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 4.429e-05/2.396, allocations: 32.88 kB / 0.7459 GB, free: 1.586 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03725/2.433, allocations: 19.9 MB / 0.7654 GB, free: 1.094 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.000128/2.433, allocations: 70.94 kB / 0.7654 GB, free: 1.086 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0002589/2.434, allocations: 182.1 kB / 0.7656 GB, free: 1.074 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.02496/2.459, allocations: 9.744 MB / 0.7751 GB, free: 13.5 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 9.567e-06/2.459, allocations: 0 / 0.7751 GB, free: 13.5 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.565e-06/2.459, allocations: 1.094 kB / 0.7751 GB, free: 13.5 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 2.319e-05/2.459, allocations: 1 kB / 0.7751 GB, free: 13.5 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.006751/2.466, allocations: 1.74 MB / 0.7768 GB, free: 12.37 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.837e-05/2.466, allocations: 14.64 kB / 0.7769 GB, free: 12.37 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001145/2.466, allocations: 45.77 kB / 0.7769 GB, free: 12.34 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004223/2.466, allocations: 303.7 kB / 0.7772 GB, free: 12.09 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.645e-05/2.466, allocations: 24.91 kB / 0.7772 GB, free: 12.09 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.987e-05/2.466, allocations: 30.84 kB / 0.7772 GB, free: 12.09 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005632/2.467, allocations: 356.5 kB / 0.7776 GB, free: 11.95 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.363e-05/2.467, allocations: 1.094 kB / 0.7776 GB, free: 11.95 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.969e-05/2.467, allocations: 18.72 kB / 0.7776 GB, free: 11.94 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.192e-05/2.467, allocations: 9.281 kB / 0.7776 GB, free: 11.94 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003975/2.467, allocations: 228.2 kB / 0.7778 GB, free: 11.91 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.009056/2.476, allocations: 6.103 MB / 0.7838 GB, free: 6.781 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002265/2.477, allocations: 75.52 kB / 0.7839 GB, free: 6.75 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.517e-05/2.477, allocations: 32.83 kB / 0.7839 GB, free: 6.742 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2575/2.734, allocations: 119 MB / 0.9001 GB, free: 9.699 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.436e-05/2.734, allocations: 30.56 kB / 0.9001 GB, free: 9.66 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=7): time 6.051e-06/2.734, allocations: 1.922 kB / 0.9001 GB, free: 9.66 MB / 0.7325 GB Notification: Performance of matching and sorting (n=7): time 0.00134/2.736, allocations: 279.8 kB / 0.9004 GB, free: 9.395 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.722e-05/2.736, allocations: 58.72 kB / 0.9004 GB, free: 9.328 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005793/2.736, allocations: 286 kB / 0.9007 GB, free: 9.082 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.013e-05/2.736, allocations: 25.7 kB / 0.9007 GB, free: 9.051 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002277/2.737, allocations: 223.7 kB / 0.9009 GB, free: 8.863 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 6.01e-05/2.737, allocations: 35.44 kB / 0.901 GB, free: 8.836 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001611/2.737, allocations: 54.83 kB / 0.901 GB, free: 8.793 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001932/2.737, allocations: 336.4 kB / 0.9013 GB, free: 8.465 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001769/2.737, allocations: 37.48 kB / 0.9014 GB, free: 8.441 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002764/2.738, allocations: 143.5 kB / 0.9015 GB, free: 8.281 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004559/2.738, allocations: 191.8 kB / 0.9017 GB, free: 8.098 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.884e-06/2.738, allocations: 4 kB / 0.9017 GB, free: 8.094 MB / 0.7325 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000881/2.739, allocations: 271.1 kB / 0.902 GB, free: 7.898 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.56e-05/2.739, allocations: 13.94 kB / 0.902 GB, free: 7.887 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.476e-05/2.739, allocations: 4 kB / 0.902 GB, free: 7.883 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001353/2.74, allocations: 138.5 kB / 0.9021 GB, free: 7.758 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001853/2.741, allocations: 42.23 kB / 0.9021 GB, free: 7.723 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007403/2.741, allocations: 0.58 MB / 0.9027 GB, free: 7.129 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003355/2.742, allocations: 27.69 kB / 0.9027 GB, free: 7.102 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.647e-05/2.742, allocations: 16 kB / 0.9027 GB, free: 7.086 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.0002566/2.742, allocations: 149.6 kB / 0.9029 GB, free: 6.934 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001001/2.742, allocations: 24.88 kB / 0.9029 GB, free: 6.91 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006033/2.743, allocations: 156.2 kB / 0.9031 GB, free: 6.75 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.192e-06/2.743, allocations: 0 / 0.9031 GB, free: 6.75 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.44e-06/2.743, allocations: 7.938 kB / 0.9031 GB, free: 6.742 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001624/2.743, allocations: 104.8 kB / 0.9032 GB, free: 6.621 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.315e-05/2.743, allocations: 0 / 0.9032 GB, free: 6.621 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001169/2.743, allocations: 0 / 0.9032 GB, free: 6.621 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.175e-05/2.743, allocations: 11.98 kB / 0.9032 GB, free: 6.609 MB / 0.7325 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0006063/2.744, allocations: 209.5 kB / 0.9034 GB, free: 6.406 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.000468/2.744, allocations: 295.7 kB / 0.9037 GB, free: 6.102 MB / 0.7325 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 8.792e-05/2.744, allocations: 20.05 kB / 0.9037 GB, free: 6.082 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0003409/2.745, allocations: 194 kB / 0.9039 GB, free: 5.895 MB / 0.7325 GB Notification: Performance of Backend: time 7.61e-07/2.745, allocations: 4 kB / 0.9039 GB, free: 5.891 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.02264/2.767, allocations: 3.511 MB / 0.9073 GB, free: 2.816 MB / 0.7325 GB Notification: Performance of SimCode: time 0.002228/2.77, allocations: 0.9914 MB / 0.9083 GB, free: 1.793 MB / 0.7325 GB Notification: Performance of Templates: time 0.1812/2.951, allocations: 71.76 MB / 0.9783 GB, free: 10.05 MB / 0.8106 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)