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.7841/0.7841, allocations: 150.9 MB / 167.2 MB, free: 14.51 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000362/0.0003622, allocations: 15.84 kB / 237.8 MB, free: 1.785 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05962/0.06, allocations: 31.35 MB / 269.1 MB, free: 7.043 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.584/1.644, allocations: 294.7 MB / 0.5506 GB, free: 13.04 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.5188/2.163, allocations: 187.4 MB / 0.7337 GB, free: 1.762 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002983/2.163, allocations: 8.531 kB / 0.7337 GB, free: 1.762 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.0001409/2.163, allocations: 42.75 kB / 0.7337 GB, free: 1.762 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.0003106/2.164, allocations: 109.8 kB / 0.7338 GB, free: 1.762 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.03369/2.197, allocations: 11.31 MB / 0.7449 GB, free: 1.551 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.0006056/2.198, allocations: 382.9 kB / 0.7452 GB, free: 1.551 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002783/2.198, allocations: 197.2 kB / 0.7454 GB, free: 1.547 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002224/2.199, allocations: 152.6 kB / 0.7456 GB, free: 1.547 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001799/2.199, allocations: 166.9 kB / 0.7457 GB, free: 1.547 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 4.733e-05/2.199, allocations: 38.19 kB / 0.7457 GB, free: 1.547 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03591/2.235, allocations: 19.91 MB / 0.7652 GB, free: 1.055 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0001234/2.235, allocations: 70.45 kB / 0.7653 GB, free: 1.047 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0002701/2.235, allocations: 184.2 kB / 0.7654 GB, free: 1.035 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.02615/2.261, allocations: 9.737 MB / 0.7749 GB, free: 13.48 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 1.007e-05/2.261, allocations: 4.062 kB / 0.7749 GB, free: 13.48 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.054e-06/2.261, allocations: 1.203 kB / 0.7749 GB, free: 13.48 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.793e-05/2.261, allocations: 3.562 kB / 0.7749 GB, free: 13.48 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.005804/2.267, allocations: 1.74 MB / 0.7766 GB, free: 12.35 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.758e-05/2.267, allocations: 11.12 kB / 0.7767 GB, free: 12.35 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001019/2.267, allocations: 45.95 kB / 0.7767 GB, free: 12.33 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004144/2.268, allocations: 295.2 kB / 0.777 GB, free: 12.07 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.227e-05/2.268, allocations: 32.08 kB / 0.777 GB, free: 12.07 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.911e-05/2.268, allocations: 31.94 kB / 0.777 GB, free: 12.07 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005661/2.268, allocations: 359.3 kB / 0.7774 GB, free: 11.93 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.327e-05/2.269, allocations: 0 / 0.7774 GB, free: 11.93 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.904e-05/2.269, allocations: 14.25 kB / 0.7774 GB, free: 11.93 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.3e-05/2.269, allocations: 8.828 kB / 0.7774 GB, free: 11.93 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004405/2.269, allocations: 238.7 kB / 0.7776 GB, free: 11.89 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07082/2.34, allocations: 32.12 MB / 0.809 GB, free: 316 kB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002539/2.34, allocations: 76.39 kB / 0.8091 GB, free: 244 kB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.272e-05/2.34, allocations: 20.98 kB / 0.8091 GB, free: 228 kB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2335/2.574, allocations: 119 MB / 0.9253 GB, free: 14.23 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.585e-05/2.574, allocations: 33.19 kB / 0.9253 GB, free: 14.19 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=5): time 5.471e-06/2.574, allocations: 0 / 0.9253 GB, free: 14.19 MB / 0.7637 GB Notification: Performance of matching and sorting (n=5): time 0.0004875/2.574, allocations: 114.5 kB / 0.9254 GB, free: 14.07 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.328e-05/2.574, allocations: 55.34 kB / 0.9255 GB, free: 14.01 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004215/2.575, allocations: 314.2 kB / 0.9258 GB, free: 13.69 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 1.693e-05/2.575, allocations: 25.7 kB / 0.9258 GB, free: 13.66 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001652/2.575, allocations: 223.4 kB / 0.926 GB, free: 13.44 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 2.189e-05/2.575, allocations: 23.73 kB / 0.926 GB, free: 13.41 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.08e-05/2.575, allocations: 53.61 kB / 0.9261 GB, free: 13.36 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 0.0001221/2.575, allocations: 341 kB / 0.9264 GB, free: 13.02 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001344/2.575, allocations: 41.17 kB / 0.9265 GB, free: 12.98 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001768/2.576, allocations: 144.4 kB / 0.9266 GB, free: 12.79 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002918/2.576, allocations: 194.1 kB / 0.9268 GB, free: 12.57 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.5e-06/2.576, allocations: 4 kB / 0.9268 GB, free: 12.56 MB / 0.7637 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004488/2.576, allocations: 226.5 kB / 0.927 GB, free: 12.36 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 1.968e-05/2.576, allocations: 4 kB / 0.927 GB, free: 12.36 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.245e-06/2.576, allocations: 4 kB / 0.927 GB, free: 12.35 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.319e-05/2.576, allocations: 8 kB / 0.927 GB, free: 12.34 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006608/2.577, allocations: 123.4 kB / 0.9271 GB, free: 12.23 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.394e-05/2.577, allocations: 7.984 kB / 0.9271 GB, free: 12.22 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000221/2.577, allocations: 35.62 kB / 0.9272 GB, free: 12.18 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.276e-05/2.577, allocations: 17.19 kB / 0.9272 GB, free: 12.17 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.0001517/2.578, allocations: 141.7 kB / 0.9273 GB, free: 12.03 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.533e-05/2.578, allocations: 23.72 kB / 0.9273 GB, free: 12 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002835/2.578, allocations: 118.5 kB / 0.9275 GB, free: 11.88 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.511e-06/2.578, allocations: 7.938 kB / 0.9275 GB, free: 11.88 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.651e-06/2.578, allocations: 0 / 0.9275 GB, free: 11.88 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.417e-06/2.578, allocations: 0 / 0.9275 GB, free: 11.88 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4507/3.029, allocations: 115.2 MB / 1.04 GB, free: 441 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.557e-06/3.029, allocations: 0 / 1.04 GB, free: 441 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.222e-05/3.029, allocations: 15.83 kB / 1.04 GB, free: 441 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.239e-06/3.029, allocations: 0 / 1.04 GB, free: 441 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.403e-05/3.029, allocations: 7.312 kB / 1.04 GB, free: 441 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.278e-06/3.029, allocations: 0 / 1.04 GB, free: 441 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.336e-06/3.029, allocations: 2.906 kB / 1.04 GB, free: 441 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002603/3.029, allocations: 152.1 kB / 1.04 GB, free: 440.9 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 7.728e-05/3.029, allocations: 101.9 kB / 1.04 GB, free: 440.8 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.622e-05/3.029, allocations: 13 kB / 1.04 GB, free: 440.8 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.822e-05/3.029, allocations: 7.531 kB / 1.04 GB, free: 440.8 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.447e-05/3.029, allocations: 2.844 kB / 1.04 GB, free: 440.8 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.383e-06/3.029, allocations: 6.812 kB / 1.04 GB, free: 440.8 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001847/3.03, allocations: 224.5 kB / 1.04 GB, free: 440.7 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.3e-07/3.03, allocations: 0 / 1.04 GB, free: 440.7 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.003723/3.033, allocations: 1.435 MB / 1.042 GB, free: 440.7 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.005876/3.039, allocations: 2.204 MB / 1.044 GB, free: 440.5 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0004616/3.04, allocations: 118.6 kB / 1.044 GB, free: 440.5 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 4.469e-06/3.04, allocations: 4.312 kB / 1.044 GB, free: 440.5 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 8.718e-05/3.04, allocations: 28.45 kB / 1.044 GB, free: 440.5 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004343/3.04, allocations: 68.3 kB / 1.044 GB, free: 440.5 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007114/3.041, allocations: 479.5 kB / 1.045 GB, free: 440.2 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001912/3.041, allocations: 0.7615 MB / 1.045 GB, free: 439.5 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.361e-05/3.041, allocations: 29.84 kB / 1.045 GB, free: 439.5 MB / 0.8419 GB Notification: Performance of SimCode: time 4.91e-07/3.041, allocations: 0 / 1.045 GB, free: 439.5 MB / 0.8419 GB Notification: Performance of Templates: time 0.03661/3.078, allocations: 27.62 MB / 1.072 GB, free: 423.8 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)