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.8372/0.8372, allocations: 150.9 MB / 167.2 MB, free: 14.52 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003302/0.0003302, allocations: 20.03 kB / 237.8 MB, free: 1.77 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05164/0.05198, allocations: 31.34 MB / 269.1 MB, free: 7.031 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.621/1.673, allocations: 294.5 MB / 0.5504 GB, free: 13.25 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.04229/1.715, allocations: 34.39 MB / 0.584 GB, free: 10.72 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000171/1.715, allocations: 4 kB / 0.584 GB, free: 10.71 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.0003623/1.716, allocations: 103.4 kB / 0.5841 GB, free: 10.61 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002281/1.716, allocations: 75.33 kB / 0.5842 GB, free: 10.54 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.02212/1.738, allocations: 9.556 MB / 0.5935 GB, free: 0.9688 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004229/1.739, allocations: 282.6 kB / 0.5938 GB, free: 0.6914 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001858/1.739, allocations: 108.2 kB / 0.5939 GB, free: 0.5898 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001906/1.739, allocations: 119.5 kB / 0.594 GB, free: 484 kB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001164/1.739, allocations: 99.5 kB / 0.5941 GB, free: 384 kB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 2.358e-05/1.739, allocations: 16 kB / 0.5941 GB, free: 368 kB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02856/1.768, allocations: 17.88 MB / 0.6116 GB, free: 14.45 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 7.455e-05/1.768, allocations: 39.86 kB / 0.6116 GB, free: 14.41 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001695/1.768, allocations: 123.4 kB / 0.6117 GB, free: 14.29 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.01754/1.786, allocations: 8.371 MB / 0.6199 GB, free: 5.902 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/1.786, allocations: 0 / 0.6199 GB, free: 5.902 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.212e-06/1.786, allocations: 0 / 0.6199 GB, free: 5.902 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.128e-05/1.786, allocations: 0 / 0.6199 GB, free: 5.902 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.00366/1.789, allocations: 1.4 MB / 0.6213 GB, free: 4.449 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.905e-05/1.789, allocations: 8.031 kB / 0.6213 GB, free: 4.441 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.008e-05/1.789, allocations: 27.66 kB / 0.6213 GB, free: 4.414 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001895/1.79, allocations: 210.7 kB / 0.6215 GB, free: 4.168 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.697e-05/1.79, allocations: 16.38 kB / 0.6215 GB, free: 4.152 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.785e-05/1.79, allocations: 20 kB / 0.6215 GB, free: 4.133 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003821/1.79, allocations: 258 kB / 0.6218 GB, free: 3.863 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.216e-05/1.79, allocations: 7.984 kB / 0.6218 GB, free: 3.855 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.074e-05/1.79, allocations: 4 kB / 0.6218 GB, free: 3.852 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.76e-05/1.79, allocations: 19.98 kB / 0.6218 GB, free: 3.832 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002678/1.79, allocations: 148.3 kB / 0.622 GB, free: 3.688 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.01925/1.81, allocations: 9.55 MB / 0.6313 GB, free: 9.152 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001991/1.81, allocations: 82.55 kB / 0.6314 GB, free: 9.062 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.749e-05/1.81, allocations: 56.89 kB / 0.6314 GB, free: 9.004 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1489/1.959, allocations: 77.73 MB / 0.7073 GB, free: 2.508 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.104e-05/1.959, allocations: 34.5 kB / 0.7074 GB, free: 2.465 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=22): time 2.425e-06/1.959, allocations: 0 / 0.7074 GB, free: 2.465 MB / 0.5919 GB Notification: Performance of matching and sorting (n=22): time 0.0005305/1.959, allocations: 208.1 kB / 0.7075 GB, free: 2.258 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.124e-05/1.96, allocations: 51.41 kB / 0.7076 GB, free: 2.195 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002526/1.96, allocations: 232 kB / 0.7078 GB, free: 1.961 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 1.8e-05/1.96, allocations: 29.7 kB / 0.7078 GB, free: 1.926 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001108/1.96, allocations: 140.3 kB / 0.708 GB, free: 1.785 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 4.932e-05/1.96, allocations: 66.92 kB / 0.708 GB, free: 1.719 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.289e-05/1.96, allocations: 41.7 kB / 0.7081 GB, free: 1.672 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001165/1.96, allocations: 334.8 kB / 0.7084 GB, free: 1.336 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001218/1.96, allocations: 55.97 kB / 0.7085 GB, free: 1.281 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001291/1.96, allocations: 88.2 kB / 0.7085 GB, free: 1.18 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002474/1.961, allocations: 154.3 kB / 0.7087 GB, free: 1.016 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.905e-06/1.961, allocations: 0 / 0.7087 GB, free: 1.016 MB / 0.5919 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003533/1.961, allocations: 204.5 kB / 0.7089 GB, free: 0.8125 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.703e-05/1.961, allocations: 8 kB / 0.7089 GB, free: 0.8047 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.246e-06/1.961, allocations: 3.938 kB / 0.7089 GB, free: 0.8008 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.462e-05/1.961, allocations: 7.938 kB / 0.7089 GB, free: 0.793 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006854/1.962, allocations: 103.9 kB / 0.709 GB, free: 0.6914 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.154e-06/1.962, allocations: 0 / 0.709 GB, free: 0.6914 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001351/1.962, allocations: 35.67 kB / 0.709 GB, free: 0.6562 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.235e-05/1.962, allocations: 4 kB / 0.709 GB, free: 0.6523 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 0.0001165/1.962, allocations: 137.8 kB / 0.7092 GB, free: 0.5078 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.867e-05/1.962, allocations: 19.72 kB / 0.7092 GB, free: 500 kB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004578/1.963, allocations: 327.6 kB / 0.7095 GB, free: 128 kB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.078e-06/1.963, allocations: 0 / 0.7095 GB, free: 128 kB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/1.963, allocations: 0 / 0.7095 GB, free: 128 kB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 8.916e-05/1.963, allocations: 108.8 kB / 0.7096 GB, free: 0 / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.365e-05/1.963, allocations: 96 / 0.7096 GB, free: 0 / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.1769/2.14, allocations: 4.719 kB / 0.7096 GB, free: 215.4 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.984e-05/2.14, allocations: 4.953 kB / 0.7096 GB, free: 215.4 MB / 0.5919 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0009052/2.141, allocations: 327.2 kB / 0.7099 GB, free: 215.3 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0004139/2.141, allocations: 372.5 kB / 0.7103 GB, free: 215.1 MB / 0.5919 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001439/2.141, allocations: 80.33 kB / 0.7104 GB, free: 215.1 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0002136/2.141, allocations: 204.7 kB / 0.7106 GB, free: 215 MB / 0.5919 GB Notification: Performance of Backend: time 5.31e-07/2.141, allocations: 2.25 kB / 0.7106 GB, free: 215 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.01099/2.152, allocations: 2.872 MB / 0.7134 GB, free: 214.9 MB / 0.5919 GB Notification: Performance of SimCode: time 0.0009298/2.153, allocations: 0.9468 MB / 0.7143 GB, free: 214.2 MB / 0.5919 GB Notification: Performance of Templates: time 0.06804/2.222, allocations: 64.88 MB / 0.7776 GB, free: 170 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)