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.8352/0.8352, allocations: 150.9 MB / 166.5 MB, free: 14.35 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003228/0.0003228, allocations: 16.36 kB / 237.1 MB, free: 1.812 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05438/0.05472, allocations: 31.35 MB / 268.4 MB, free: 7.023 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.613/1.668, allocations: 294.7 MB / 0.55 GB, free: 13.06 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.4494/2.117, allocations: 187.4 MB / 0.733 GB, free: 1.809 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002189/2.117, allocations: 7.375 kB / 0.733 GB, free: 1.809 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.0001183/2.118, allocations: 42.7 kB / 0.733 GB, free: 1.809 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.0002535/2.118, allocations: 115.3 kB / 0.7331 GB, free: 1.809 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.02648/2.144, allocations: 11.31 MB / 0.7442 GB, free: 1.598 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.0004329/2.145, allocations: 384 kB / 0.7445 GB, free: 1.598 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002461/2.145, allocations: 198 kB / 0.7447 GB, free: 1.594 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001959/2.145, allocations: 162.5 kB / 0.7449 GB, free: 1.594 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000172/2.145, allocations: 163.9 kB / 0.745 GB, free: 1.594 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 3.622e-05/2.145, allocations: 33.84 kB / 0.7451 GB, free: 1.594 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03123/2.177, allocations: 19.9 MB / 0.7645 GB, free: 1.117 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0001017/2.177, allocations: 69.02 kB / 0.7646 GB, free: 1.109 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0002396/2.177, allocations: 183.9 kB / 0.7648 GB, free: 1.098 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.02142/2.199, allocations: 9.768 MB / 0.7743 GB, free: 13.62 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/2.199, allocations: 4.688 kB / 0.7743 GB, free: 13.62 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.392e-06/2.199, allocations: 0 / 0.7743 GB, free: 13.62 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 7.985e-06/2.199, allocations: 1.125 kB / 0.7743 GB, free: 13.62 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.004391/2.203, allocations: 1.745 MB / 0.776 GB, free: 12.49 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.622e-05/2.203, allocations: 8.594 kB / 0.776 GB, free: 12.49 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.805e-05/2.203, allocations: 44.56 kB / 0.7761 GB, free: 12.47 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003312/2.203, allocations: 295.3 kB / 0.7763 GB, free: 12.21 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.111e-05/2.203, allocations: 29.72 kB / 0.7764 GB, free: 12.21 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.59e-05/2.204, allocations: 32.44 kB / 0.7764 GB, free: 12.21 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005215/2.204, allocations: 355.5 kB / 0.7767 GB, free: 12.07 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.129e-05/2.204, allocations: 3.094 kB / 0.7767 GB, free: 12.07 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.138e-05/2.204, allocations: 18.42 kB / 0.7768 GB, free: 12.07 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.885e-06/2.204, allocations: 10.89 kB / 0.7768 GB, free: 12.07 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004163/2.205, allocations: 232 kB / 0.777 GB, free: 12.03 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07449/2.279, allocations: 32.13 MB / 0.8084 GB, free: 452 kB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002261/2.279, allocations: 75.59 kB / 0.8084 GB, free: 384 kB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.931e-05/2.279, allocations: 23.39 kB / 0.8085 GB, free: 364 kB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2418/2.521, allocations: 119 MB / 0.9246 GB, free: 14.23 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.394e-05/2.521, allocations: 38.56 kB / 0.9247 GB, free: 14.19 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=5): time 3.126e-06/2.521, allocations: 0 / 0.9247 GB, free: 14.19 MB / 0.7637 GB Notification: Performance of matching and sorting (n=5): time 0.0004433/2.522, allocations: 116.5 kB / 0.9248 GB, free: 14.07 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.177e-05/2.522, allocations: 60.44 kB / 0.9248 GB, free: 14 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003663/2.522, allocations: 299.2 kB / 0.9251 GB, free: 13.7 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 1.656e-05/2.522, allocations: 33.7 kB / 0.9252 GB, free: 13.66 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001381/2.522, allocations: 221.4 kB / 0.9254 GB, free: 13.44 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 2.024e-05/2.522, allocations: 23.73 kB / 0.9254 GB, free: 13.42 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.065e-05/2.522, allocations: 53.61 kB / 0.9254 GB, free: 13.36 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 0.0001112/2.523, allocations: 337 kB / 0.9258 GB, free: 13.02 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001287/2.523, allocations: 47.97 kB / 0.9258 GB, free: 12.98 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001715/2.523, allocations: 138.4 kB / 0.9259 GB, free: 12.8 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002855/2.523, allocations: 201.2 kB / 0.9261 GB, free: 12.57 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.827e-06/2.523, allocations: 0 / 0.9261 GB, free: 12.57 MB / 0.7637 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004452/2.524, allocations: 223.3 kB / 0.9263 GB, free: 12.37 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 1.835e-05/2.524, allocations: 10.19 kB / 0.9264 GB, free: 12.36 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.075e-06/2.524, allocations: 8 kB / 0.9264 GB, free: 12.35 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.55e-05/2.524, allocations: 4 kB / 0.9264 GB, free: 12.35 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000692/2.524, allocations: 122.1 kB / 0.9265 GB, free: 12.23 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.028e-05/2.524, allocations: 4.781 kB / 0.9265 GB, free: 12.23 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002125/2.525, allocations: 43.58 kB / 0.9265 GB, free: 12.19 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.993e-05/2.525, allocations: 12 kB / 0.9265 GB, free: 12.18 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.0001449/2.525, allocations: 150 kB / 0.9267 GB, free: 12.02 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.523e-05/2.525, allocations: 23.72 kB / 0.9267 GB, free: 12 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002887/2.525, allocations: 113.9 kB / 0.9268 GB, free: 11.89 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.561e-06/2.525, allocations: 6 kB / 0.9268 GB, free: 11.88 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.967e-06/2.525, allocations: 0 / 0.9268 GB, free: 11.88 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.615e-06/2.525, allocations: 0 / 0.9268 GB, free: 11.88 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4193/2.945, allocations: 115.2 MB / 1.039 GB, free: 441.3 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.569e-06/2.945, allocations: 0 / 1.039 GB, free: 441.3 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.803e-05/2.945, allocations: 20.56 kB / 1.039 GB, free: 441.3 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.18e-06/2.945, allocations: 0 / 1.039 GB, free: 441.3 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.237e-05/2.945, allocations: 9.969 kB / 1.039 GB, free: 441.3 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.968e-06/2.945, allocations: 3.094 kB / 1.039 GB, free: 441.3 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.504e-06/2.945, allocations: 0 / 1.039 GB, free: 441.3 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002836/2.945, allocations: 146.7 kB / 1.039 GB, free: 441.2 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 7.911e-05/2.945, allocations: 111.1 kB / 1.04 GB, free: 441.1 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.391e-05/2.945, allocations: 6.188 kB / 1.04 GB, free: 441.1 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001083/2.945, allocations: 3.094 kB / 1.04 GB, free: 441.1 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.499e-05/2.945, allocations: 11.88 kB / 1.04 GB, free: 441.1 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.325e-06/2.945, allocations: 9.125 kB / 1.04 GB, free: 441.1 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0002113/2.946, allocations: 218 kB / 1.04 GB, free: 441 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.3e-07/2.946, allocations: 0 / 1.04 GB, free: 441 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.003326/2.949, allocations: 1.434 MB / 1.041 GB, free: 441 MB / 0.8419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (4): * Single equations (assignments): 4 * 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 Backend phase and start with SimCode phase: time 0.006372/2.955, allocations: 2.2 MB / 1.043 GB, free: 440.8 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0004035/2.956, allocations: 120.4 kB / 1.043 GB, free: 440.8 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/2.956, allocations: 0.8438 kB / 1.043 GB, free: 440.8 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 9.15e-05/2.956, allocations: 26.98 kB / 1.043 GB, free: 440.8 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004231/2.956, allocations: 75.11 kB / 1.044 GB, free: 440.8 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006502/2.957, allocations: 454.9 kB / 1.044 GB, free: 440.5 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001574/2.957, allocations: 0.7569 MB / 1.045 GB, free: 439.8 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001364/2.957, allocations: 48.7 kB / 1.045 GB, free: 439.8 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.779e-05/2.957, allocations: 27.08 kB / 1.045 GB, free: 439.8 MB / 0.8419 GB Notification: Performance of SimCode: time 2.41e-07/2.957, allocations: 0 / 1.045 GB, free: 439.8 MB / 0.8419 GB Notification: Performance of Templates: time 0.04715/3.004, allocations: 45.18 MB / 1.089 GB, free: 406.3 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)