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.8369/0.8369, allocations: 150.9 MB / 167.2 MB, free: 14.55 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003711/0.0003711, allocations: 13.36 kB / 237.7 MB, free: 1.832 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06445/0.06484, allocations: 31.34 MB / 269.1 MB, free: 7.121 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.677/1.742, allocations: 294.7 MB / 0.5506 GB, free: 13.2 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.4941/2.236, allocations: 187.4 MB / 0.7336 GB, free: 1.75 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002/2.237, allocations: 8.641 kB / 0.7336 GB, free: 1.75 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.0001195/2.237, allocations: 40.23 kB / 0.7336 GB, free: 1.75 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.0002569/2.237, allocations: 112.9 kB / 0.7337 GB, free: 1.75 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.03375/2.271, allocations: 11.31 MB / 0.7448 GB, free: 1.535 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.0006432/2.271, allocations: 390.8 kB / 0.7451 GB, free: 1.535 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003141/2.272, allocations: 192.8 kB / 0.7453 GB, free: 1.531 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002037/2.272, allocations: 146.6 kB / 0.7455 GB, free: 1.531 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002382/2.272, allocations: 174.5 kB / 0.7456 GB, free: 1.531 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 4.676e-05/2.272, allocations: 35.31 kB / 0.7457 GB, free: 1.531 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03549/2.308, allocations: 19.89 MB / 0.7651 GB, free: 1.141 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0001214/2.308, allocations: 71.42 kB / 0.7652 GB, free: 1.129 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0002901/2.308, allocations: 183.5 kB / 0.7653 GB, free: 1.121 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.02313/2.331, allocations: 9.74 MB / 0.7749 GB, free: 13.55 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 6.482e-06/2.331, allocations: 0 / 0.7749 GB, free: 13.55 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.603e-06/2.331, allocations: 0.7812 kB / 0.7749 GB, free: 13.55 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 8.676e-06/2.331, allocations: 0 / 0.7749 GB, free: 13.55 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.004249/2.336, allocations: 1.751 MB / 0.7766 GB, free: 12.41 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.188e-05/2.336, allocations: 11.23 kB / 0.7766 GB, free: 12.41 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.766e-05/2.336, allocations: 41.31 kB / 0.7766 GB, free: 12.39 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000359/2.336, allocations: 299.1 kB / 0.7769 GB, free: 12.13 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.903e-05/2.336, allocations: 25.69 kB / 0.7769 GB, free: 12.13 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.526e-05/2.336, allocations: 32.56 kB / 0.777 GB, free: 12.13 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004793/2.337, allocations: 362.4 kB / 0.7773 GB, free: 11.99 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.249e-05/2.337, allocations: 0 / 0.7773 GB, free: 11.99 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.816e-05/2.337, allocations: 18.81 kB / 0.7773 GB, free: 11.98 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.398e-06/2.337, allocations: 10.06 kB / 0.7773 GB, free: 11.98 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003585/2.337, allocations: 221.2 kB / 0.7775 GB, free: 11.96 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.007672/2.345, allocations: 6.109 MB / 0.7835 GB, free: 6.82 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000199/2.345, allocations: 73.66 kB / 0.7836 GB, free: 6.793 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.724e-05/2.345, allocations: 33.81 kB / 0.7836 GB, free: 6.781 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2322/2.577, allocations: 119 MB / 0.8998 GB, free: 9.887 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.005e-05/2.577, allocations: 38.41 kB / 0.8998 GB, free: 9.844 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=7): time 2.836e-06/2.577, allocations: 1.203 kB / 0.8998 GB, free: 9.844 MB / 0.7325 GB Notification: Performance of matching and sorting (n=7): time 0.0009166/2.578, allocations: 271.2 kB / 0.9001 GB, free: 9.586 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.061e-05/2.578, allocations: 70.52 kB / 0.9001 GB, free: 9.508 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003836/2.579, allocations: 281.5 kB / 0.9004 GB, free: 9.266 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.774e-05/2.579, allocations: 31.58 kB / 0.9004 GB, free: 9.23 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.000157/2.579, allocations: 226.6 kB / 0.9007 GB, free: 9.043 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.684e-05/2.579, allocations: 28.33 kB / 0.9007 GB, free: 9.02 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.84e-05/2.579, allocations: 51.95 kB / 0.9007 GB, free: 8.98 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001414/2.579, allocations: 329.5 kB / 0.901 GB, free: 8.656 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001043/2.579, allocations: 44.45 kB / 0.9011 GB, free: 8.629 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001749/2.58, allocations: 146.1 kB / 0.9012 GB, free: 8.465 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002491/2.58, allocations: 188.3 kB / 0.9014 GB, free: 8.285 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/2.58, allocations: 1.594 kB / 0.9014 GB, free: 8.285 MB / 0.7325 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005467/2.58, allocations: 276.5 kB / 0.9017 GB, free: 8.082 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.929e-05/2.58, allocations: 7.984 kB / 0.9017 GB, free: 8.074 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.856e-06/2.58, allocations: 5.203 kB / 0.9017 GB, free: 8.07 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008772/2.581, allocations: 134.4 kB / 0.9018 GB, free: 7.945 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001266/2.581, allocations: 35.17 kB / 0.9018 GB, free: 7.914 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004572/2.582, allocations: 0.5893 MB / 0.9024 GB, free: 7.332 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001774/2.582, allocations: 27.5 kB / 0.9024 GB, free: 7.309 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.948e-05/2.582, allocations: 12 kB / 0.9025 GB, free: 7.297 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.0001433/2.582, allocations: 141.3 kB / 0.9026 GB, free: 7.168 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.227e-05/2.582, allocations: 27.7 kB / 0.9026 GB, free: 7.141 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003832/2.583, allocations: 164.5 kB / 0.9028 GB, free: 7.012 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.909e-06/2.583, allocations: 0 / 0.9028 GB, free: 7.012 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.367e-06/2.583, allocations: 5.031 kB / 0.9028 GB, free: 7.008 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001679/2.583, allocations: 108.6 kB / 0.9029 GB, free: 6.887 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.064e-05/2.583, allocations: 0 / 0.9029 GB, free: 6.887 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.547e-05/2.583, allocations: 0 / 0.9029 GB, free: 6.887 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.537e-05/2.583, allocations: 18.7 kB / 0.9029 GB, free: 6.875 MB / 0.7325 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0003465/2.583, allocations: 196.4 kB / 0.9031 GB, free: 6.695 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0002634/2.584, allocations: 300.7 kB / 0.9034 GB, free: 6.414 MB / 0.7325 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 4.995e-05/2.584, allocations: 22.98 kB / 0.9034 GB, free: 6.398 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0001963/2.584, allocations: 195.6 kB / 0.9036 GB, free: 6.242 MB / 0.7325 GB Notification: Performance of Backend: time 1.243e-06/2.584, allocations: 0 / 0.9036 GB, free: 6.242 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.01403/2.598, allocations: 3.513 MB / 0.907 GB, free: 3.223 MB / 0.7325 GB Notification: Performance of SimCode: time 0.00129/2.599, allocations: 0.9814 MB / 0.908 GB, free: 2.203 MB / 0.7325 GB Notification: Performance of Templates: time 0.09281/2.692, allocations: 71.77 MB / 0.9781 GB, free: 10.46 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)