Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.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.Examples.SimpleExamples.TestInvSingularPressureLoss,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss") translateModel(ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.7562/0.7562, allocations: 150.9 MB / 167.2 MB, free: 14.65 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003274/0.0003275, allocations: 19.02 kB / 237.8 MB, free: 1.699 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04695/0.04729, allocations: 31.35 MB / 269.1 MB, free: 7.055 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.Examples.SimpleExamples.TestInvSingularPressureLoss): time 1.45/1.498, allocations: 294.5 MB / 0.5504 GB, free: 13.39 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.03445/1.532, allocations: 34.38 MB / 0.584 GB, free: 10.87 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001528/1.532, allocations: 0 / 0.584 GB, free: 10.87 MB / 478.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/BoundaryConditions/SourcePQ.mo:29:3-30:52:writable] Warning: Connector C is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/BoundaryConditions/SinkP.mo:33:3-34:47:writable] Warning: Connector C is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/PressureLosses/InvSingularPressureLoss.mo:26:3-28:16:writable] Warning: Connector C1 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/PressureLosses/InvSingularPressureLoss.mo:29:3-30:83:writable] Warning: Connector C2 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.0003089/1.533, allocations: 107.4 kB / 0.5841 GB, free: 10.76 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001291/1.533, allocations: 75.33 kB / 0.5842 GB, free: 10.69 MB / 478.1 MB [/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. Notification: Performance of NFTyping.typeClassSections: time 0.02015/1.553, allocations: 9.555 MB / 0.5935 GB, free: 1.113 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003609/1.553, allocations: 282.7 kB / 0.5938 GB, free: 0.8359 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001714/1.553, allocations: 108.2 kB / 0.5939 GB, free: 0.7344 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001626/1.554, allocations: 115.5 kB / 0.594 GB, free: 0.6211 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001189/1.554, allocations: 95.52 kB / 0.5941 GB, free: 0.5273 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 2.416e-05/1.554, allocations: 16 kB / 0.5941 GB, free: 0.5117 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02531/1.579, allocations: 17.89 MB / 0.6116 GB, free: 14.6 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 5.06e-05/1.579, allocations: 35.84 kB / 0.6116 GB, free: 14.56 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001234/1.579, allocations: 115.4 kB / 0.6117 GB, free: 14.45 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.01347/1.593, allocations: 8.371 MB / 0.6199 GB, free: 6.059 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.62e-06/1.593, allocations: 4 kB / 0.6199 GB, free: 6.055 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.795e-06/1.593, allocations: 4 kB / 0.6199 GB, free: 6.051 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.62e-06/1.593, allocations: 3.938 kB / 0.6199 GB, free: 6.047 MB / 0.4981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.002722/1.596, allocations: 1.392 MB / 0.6213 GB, free: 4.602 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.255e-05/1.596, allocations: 8.031 kB / 0.6213 GB, free: 4.594 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.203e-05/1.596, allocations: 27.66 kB / 0.6213 GB, free: 4.566 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001767/1.596, allocations: 210.8 kB / 0.6215 GB, free: 4.32 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.263e-05/1.596, allocations: 16.38 kB / 0.6215 GB, free: 4.305 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.387e-05/1.596, allocations: 20 kB / 0.6215 GB, free: 4.285 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003738/1.596, allocations: 258 kB / 0.6218 GB, free: 4.016 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.066e-05/1.596, allocations: 3.984 kB / 0.6218 GB, free: 4.012 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.954e-05/1.596, allocations: 12 kB / 0.6218 GB, free: 4 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.939e-06/1.596, allocations: 4 kB / 0.6218 GB, free: 3.996 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002599/1.597, allocations: 156.3 kB / 0.6219 GB, free: 3.844 MB / 0.4981 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.01831/1.615, allocations: 9.562 MB / 0.6313 GB, free: 9.293 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001687/1.615, allocations: 78.56 kB / 0.6314 GB, free: 9.207 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.482e-05/1.615, allocations: 64.88 kB / 0.6314 GB, free: 9.141 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1466/1.762, allocations: 77.73 MB / 0.7073 GB, free: 2.645 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.477e-05/1.762, allocations: 34.56 kB / 0.7073 GB, free: 2.602 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=22): time 1.964e-06/1.762, allocations: 0 / 0.7073 GB, free: 2.602 MB / 0.5919 GB Notification: Performance of matching and sorting (n=22): time 0.0004755/1.762, allocations: 207.7 kB / 0.7075 GB, free: 2.395 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.925e-05/1.762, allocations: 55.41 kB / 0.7076 GB, free: 2.328 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002128/1.763, allocations: 228 kB / 0.7078 GB, free: 2.098 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 1.296e-05/1.763, allocations: 25.7 kB / 0.7078 GB, free: 2.066 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 8.242e-05/1.763, allocations: 140.3 kB / 0.708 GB, free: 1.926 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 3.978e-05/1.763, allocations: 70.84 kB / 0.708 GB, free: 1.855 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.823e-05/1.763, allocations: 41.7 kB / 0.7081 GB, free: 1.809 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.000106/1.763, allocations: 334.8 kB / 0.7084 GB, free: 1.473 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001014/1.763, allocations: 47.98 kB / 0.7084 GB, free: 1.426 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001157/1.763, allocations: 88.27 kB / 0.7085 GB, free: 1.324 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002269/1.763, allocations: 158.4 kB / 0.7087 GB, free: 1.156 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/1.763, allocations: 7.875 kB / 0.7087 GB, free: 1.148 MB / 0.5919 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003063/1.764, allocations: 204.5 kB / 0.7089 GB, free: 0.9453 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.37e-05/1.764, allocations: 4 kB / 0.7089 GB, free: 0.9414 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.815e-06/1.764, allocations: 4 kB / 0.7089 GB, free: 0.9375 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.342e-05/1.764, allocations: 0 / 0.7089 GB, free: 0.9375 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006621/1.764, allocations: 103.9 kB / 0.709 GB, free: 0.8359 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.671e-06/1.764, allocations: 3.938 kB / 0.709 GB, free: 0.832 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001106/1.765, allocations: 27.67 kB / 0.709 GB, free: 0.8047 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.282e-05/1.765, allocations: 8 kB / 0.709 GB, free: 0.7969 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 4 (invSingularPressureLoss.C2.b,invSingularPressureLoss.C1.a,sinkQ.C.a,sourcePQ.C.b) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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 9.444e-05/1.765, allocations: 133.8 kB / 0.7092 GB, free: 0.6562 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.031e-05/1.765, allocations: 27.72 kB / 0.7092 GB, free: 0.6289 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004064/1.765, allocations: 323.6 kB / 0.7095 GB, free: 276 kB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002201/1.765, allocations: 149 kB / 0.7096 GB, free: 124 kB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.169e-06/1.765, allocations: 3.938 kB / 0.7096 GB, free: 120 kB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.605e-06/1.765, allocations: 0 / 0.7096 GB, free: 120 kB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1527/1.918, allocations: 0.6017 MB / 0.7102 GB, free: 215.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.737e-06/1.918, allocations: 0.7188 kB / 0.7102 GB, free: 215.6 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005234/1.919, allocations: 97.8 kB / 0.7103 GB, free: 215.6 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.881e-06/1.919, allocations: 1.344 kB / 0.7103 GB, free: 215.6 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.03e-05/1.919, allocations: 1.125 kB / 0.7103 GB, free: 215.6 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.937e-06/1.919, allocations: 3.672 kB / 0.7103 GB, free: 215.6 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/1.919, allocations: 1.188 kB / 0.7103 GB, free: 215.6 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003385/1.919, allocations: 283.9 kB / 0.7106 GB, free: 215.4 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 5.983e-05/1.919, allocations: 107 kB / 0.7107 GB, free: 215.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.488e-05/1.919, allocations: 12.77 kB / 0.7107 GB, free: 215.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001145/1.919, allocations: 5.547 kB / 0.7107 GB, free: 215.3 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.477e-05/1.919, allocations: 14.41 kB / 0.7107 GB, free: 215.3 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.058e-05/1.919, allocations: 4.422 kB / 0.7107 GB, free: 215.3 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0001683/1.919, allocations: 207.3 kB / 0.7109 GB, free: 215.3 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.4e-07/1.92, allocations: 0 / 0.7109 GB, free: 215.3 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.002575/1.922, allocations: 1.169 MB / 0.7121 GB, free: 215.2 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (13): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.003913/1.926, allocations: 1.724 MB / 0.7138 GB, free: 215.1 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0003833/1.926, allocations: 197 kB / 0.7139 GB, free: 215.1 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/1.926, allocations: 0 / 0.7139 GB, free: 215.1 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0001251/1.927, allocations: 75.14 kB / 0.714 GB, free: 215.1 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000584/1.927, allocations: 101.2 kB / 0.7141 GB, free: 215.1 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006147/1.928, allocations: 485.5 kB / 0.7146 GB, free: 214.8 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001478/1.928, allocations: 0.7533 MB / 0.7153 GB, free: 214.1 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.703e-05/1.928, allocations: 28.27 kB / 0.7153 GB, free: 214.1 MB / 0.5919 GB Notification: Performance of SimCode: time 2.2e-07/1.928, allocations: 0 / 0.7153 GB, free: 214.1 MB / 0.5919 GB Notification: Performance of Templates: time 0.0251/1.953, allocations: 23.29 MB / 0.7381 GB, free: 208 MB / 0.5919 GB make -j1 -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss.makefile (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss.sim & ./ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe 2>&1)