Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss.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.SimpleExamples.TestInvSingularPressureLoss,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss") translateModel(ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8394/0.8394, allocations: 150.9 MB / 167.2 MB, free: 14.54 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003427/0.0003429, allocations: 15.73 kB / 237.8 MB, free: 1.773 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0542/0.05455, allocations: 31.35 MB / 269.1 MB, free: 7.047 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.SimpleExamples.TestInvSingularPressureLoss): time 1.649/1.704, allocations: 294.9 MB / 0.5508 GB, free: 13 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.52/2.224, allocations: 187.4 MB / 0.7338 GB, free: 1.805 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003681/2.224, allocations: 9.641 kB / 0.7338 GB, free: 1.805 MB / 0.5919 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SourcePQ.mo:74:3-75: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/InvSingularPressureLoss.mo:30:3-31: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/InvSingularPressureLoss.mo:32:3-33: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.0001785/2.225, allocations: 37.39 kB / 0.7339 GB, free: 1.805 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.0004143/2.225, allocations: 112.8 kB / 0.734 GB, free: 1.805 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.03459/2.26, allocations: 11.53 MB / 0.7452 GB, free: 1.594 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.0006105/2.26, allocations: 387.2 kB / 0.7456 GB, free: 1.594 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002821/2.261, allocations: 195.8 kB / 0.7458 GB, free: 1.586 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002213/2.261, allocations: 156.4 kB / 0.7459 GB, free: 1.586 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001836/2.261, allocations: 168.6 kB / 0.7461 GB, free: 1.586 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 4.029e-05/2.261, allocations: 34.38 kB / 0.7461 GB, free: 1.586 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03545/2.297, allocations: 19.9 MB / 0.7656 GB, free: 1.105 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0001381/2.297, allocations: 73.3 kB / 0.7656 GB, free: 1.098 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0002872/2.297, allocations: 182.5 kB / 0.7658 GB, free: 1.086 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.02622/2.323, allocations: 9.763 MB / 0.7753 GB, free: 13.49 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 8.086e-06/2.323, allocations: 1.062 kB / 0.7753 GB, free: 13.49 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.324e-06/2.323, allocations: 0 / 0.7753 GB, free: 13.49 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.882e-05/2.323, allocations: 0 / 0.7753 GB, free: 13.49 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.005373/2.329, allocations: 1.818 MB / 0.7771 GB, free: 12.28 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.676e-05/2.329, allocations: 7.875 kB / 0.7771 GB, free: 12.28 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001054/2.329, allocations: 43.23 kB / 0.7772 GB, free: 12.26 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004097/2.329, allocations: 300.9 kB / 0.7774 GB, free: 12 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.89e-05/2.329, allocations: 30.09 kB / 0.7775 GB, free: 12 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.144e-05/2.329, allocations: 33.41 kB / 0.7775 GB, free: 12 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005994/2.33, allocations: 359.4 kB / 0.7779 GB, free: 11.86 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.071e-05/2.33, allocations: 7.578 kB / 0.7779 GB, free: 11.86 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.835e-05/2.33, allocations: 12.53 kB / 0.7779 GB, free: 11.86 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.144e-05/2.33, allocations: 8.906 kB / 0.7779 GB, free: 11.86 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004746/2.331, allocations: 238 kB / 0.7781 GB, free: 11.82 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07259/2.403, allocations: 32.14 MB / 0.8095 GB, free: 120 kB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00025/2.403, allocations: 64.36 kB / 0.8096 GB, free: 60 kB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.574e-05/2.404, allocations: 24.17 kB / 0.8096 GB, free: 36 kB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2448/2.648, allocations: 119 MB / 0.9258 GB, free: 13.88 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.228e-05/2.648, allocations: 35.66 kB / 0.9258 GB, free: 13.83 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=5): time 2.405e-06/2.648, allocations: 0 / 0.9258 GB, free: 13.83 MB / 0.7637 GB Notification: Performance of matching and sorting (n=5): time 0.0005122/2.649, allocations: 116.7 kB / 0.9259 GB, free: 13.71 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.213e-05/2.649, allocations: 55.34 kB / 0.926 GB, free: 13.65 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004272/2.649, allocations: 307.2 kB / 0.9263 GB, free: 13.34 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 2.171e-05/2.649, allocations: 29.7 kB / 0.9263 GB, free: 13.3 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001746/2.65, allocations: 227.8 kB / 0.9265 GB, free: 13.07 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 2.671e-05/2.65, allocations: 19.89 kB / 0.9265 GB, free: 13.05 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.401e-05/2.65, allocations: 54.86 kB / 0.9266 GB, free: 13 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 0.0001503/2.65, allocations: 334.8 kB / 0.9269 GB, free: 12.66 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001451/2.65, allocations: 43.97 kB / 0.9269 GB, free: 12.62 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002012/2.65, allocations: 148.2 kB / 0.9271 GB, free: 12.43 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003036/2.651, allocations: 195.1 kB / 0.9273 GB, free: 12.21 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.579e-06/2.651, allocations: 0 / 0.9273 GB, free: 12.21 MB / 0.7637 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004838/2.651, allocations: 234.5 kB / 0.9275 GB, free: 12 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 2.912e-05/2.651, allocations: 8 kB / 0.9275 GB, free: 11.99 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.546e-06/2.651, allocations: 4 kB / 0.9275 GB, free: 11.98 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.539e-05/2.651, allocations: 8.547 kB / 0.9275 GB, free: 11.98 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006723/2.652, allocations: 115.5 kB / 0.9276 GB, free: 11.87 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.659e-05/2.652, allocations: 16.23 kB / 0.9276 GB, free: 11.86 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002277/2.652, allocations: 39.72 kB / 0.9277 GB, free: 11.82 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.079e-05/2.652, allocations: 8 kB / 0.9277 GB, free: 11.81 MB / 0.7637 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 6 (sourcePQ.C.ftype,sinkQ.fluid,invSingularPressureLoss.fluid,sourcePQ.fluid1,sourcePQ.C.diff_on_2,invSingularPressureLoss.C2.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (24): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000166/2.652, allocations: 145 kB / 0.9278 GB, free: 11.66 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.074e-05/2.652, allocations: 23.86 kB / 0.9278 GB, free: 11.64 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003084/2.653, allocations: 112.5 kB / 0.9279 GB, free: 11.52 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.897e-06/2.653, allocations: 3.094 kB / 0.9279 GB, free: 11.52 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/2.653, allocations: 3.938 kB / 0.928 GB, free: 11.52 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001146/2.653, allocations: 110 kB / 0.9281 GB, free: 11.39 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.962e-05/2.653, allocations: 7.984 kB / 0.9281 GB, free: 11.38 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.932e-05/2.653, allocations: 5.75 kB / 0.9281 GB, free: 11.38 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.848e-05/2.653, allocations: 5.094 kB / 0.9281 GB, free: 11.38 MB / 0.7637 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0006356/2.654, allocations: 208.8 kB / 0.9283 GB, free: 11.16 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0003301/2.654, allocations: 278.6 kB / 0.9285 GB, free: 10.88 MB / 0.7637 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 9.589e-05/2.654, allocations: 31.97 kB / 0.9286 GB, free: 10.85 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0002328/2.654, allocations: 207.1 kB / 0.9288 GB, free: 10.65 MB / 0.7637 GB Notification: Performance of Backend: time 4.31e-07/2.654, allocations: 0 / 0.9288 GB, free: 10.65 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.01571/2.67, allocations: 3.538 MB / 0.9322 GB, free: 7.551 MB / 0.7637 GB Notification: Performance of SimCode: time 0.001427/2.672, allocations: 0.9423 MB / 0.9331 GB, free: 6.566 MB / 0.7637 GB Notification: Performance of Templates: time 0.1054/2.777, allocations: 71.64 MB / 1.003 GB, free: 14.94 MB / 0.8419 GB make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss.makefile (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss.sim & ./ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe 2>&1)