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.8364/0.8364, allocations: 150.9 MB / 167.2 MB, free: 14.47 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003876/0.0003876, allocations: 22.84 kB / 237.8 MB, free: 1.77 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05922/0.05962, allocations: 31.35 MB / 269.1 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.Examples.SimpleExamples.TestInvSingularPressureLoss): time 1.689/1.749, allocations: 294.7 MB / 0.5506 GB, free: 13.41 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0406/1.789, allocations: 34.39 MB / 0.5842 GB, free: 10.88 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002038/1.79, allocations: 4 kB / 0.5842 GB, free: 10.88 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.0003843/1.79, allocations: 121.5 kB / 0.5843 GB, free: 10.76 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001609/1.79, allocations: 87.33 kB / 0.5844 GB, free: 10.67 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.02348/1.814, allocations: 9.726 MB / 0.5939 GB, free: 0.9297 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004476/1.814, allocations: 282.7 kB / 0.5941 GB, free: 0.6523 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001836/1.814, allocations: 108.1 kB / 0.5942 GB, free: 0.5508 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001971/1.814, allocations: 119.5 kB / 0.5943 GB, free: 444 kB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001254/1.815, allocations: 99.48 kB / 0.5944 GB, free: 344 kB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 2.556e-05/1.815, allocations: 20 kB / 0.5945 GB, free: 324 kB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02967/1.844, allocations: 17.89 MB / 0.6119 GB, free: 14.41 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 6.32e-05/1.844, allocations: 39.86 kB / 0.612 GB, free: 14.37 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001594/1.845, allocations: 115.4 kB / 0.6121 GB, free: 14.25 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.01809/1.863, allocations: 8.384 MB / 0.6203 GB, free: 5.848 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/1.863, allocations: 0 / 0.6203 GB, free: 5.848 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.704e-06/1.863, allocations: 0 / 0.6203 GB, free: 5.848 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.401e-05/1.863, allocations: 0 / 0.6203 GB, free: 5.848 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.00381/1.867, allocations: 1.463 MB / 0.6217 GB, free: 4.324 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.524e-05/1.867, allocations: 8.031 kB / 0.6217 GB, free: 4.316 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.477e-05/1.867, allocations: 31.8 kB / 0.6217 GB, free: 4.285 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002158/1.867, allocations: 210.8 kB / 0.6219 GB, free: 4.039 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.248e-05/1.867, allocations: 12.38 kB / 0.6219 GB, free: 4.027 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.588e-05/1.867, allocations: 20 kB / 0.622 GB, free: 4.008 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004235/1.867, allocations: 258 kB / 0.6222 GB, free: 3.738 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.024e-05/1.867, allocations: 4 kB / 0.6222 GB, free: 3.734 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.707e-05/1.867, allocations: 8 kB / 0.6222 GB, free: 3.727 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.745e-05/1.867, allocations: 19.97 kB / 0.6222 GB, free: 3.707 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002848/1.868, allocations: 148.3 kB / 0.6224 GB, free: 3.562 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.01926/1.887, allocations: 9.554 MB / 0.6317 GB, free: 9.023 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001982/1.887, allocations: 82.55 kB / 0.6318 GB, free: 8.934 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001053/1.887, allocations: 56.89 kB / 0.6318 GB, free: 8.875 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1493/2.037, allocations: 77.73 MB / 0.7077 GB, free: 2.375 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.765e-05/2.037, allocations: 30.56 kB / 0.7078 GB, free: 2.336 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=22): time 2.584e-06/2.037, allocations: 0 / 0.7078 GB, free: 2.336 MB / 0.5919 GB Notification: Performance of matching and sorting (n=22): time 0.0005602/2.037, allocations: 211.8 kB / 0.708 GB, free: 2.125 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.726e-05/2.037, allocations: 51.41 kB / 0.708 GB, free: 2.062 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002472/2.038, allocations: 236 kB / 0.7083 GB, free: 1.824 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 1.722e-05/2.038, allocations: 29.7 kB / 0.7083 GB, free: 1.789 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 9.24e-05/2.038, allocations: 140.4 kB / 0.7084 GB, free: 1.648 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 5.153e-05/2.038, allocations: 71.38 kB / 0.7085 GB, free: 1.578 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.759e-05/2.038, allocations: 41.69 kB / 0.7085 GB, free: 1.531 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001081/2.038, allocations: 334.8 kB / 0.7088 GB, free: 1.195 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000118/2.038, allocations: 51.97 kB / 0.7089 GB, free: 1.145 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001349/2.038, allocations: 88.27 kB / 0.709 GB, free: 1.043 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002656/2.039, allocations: 154.3 kB / 0.7091 GB, free: 0.8789 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/2.039, allocations: 0 / 0.7091 GB, free: 0.8789 MB / 0.5919 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003569/2.039, allocations: 204.6 kB / 0.7093 GB, free: 0.6758 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.825e-05/2.039, allocations: 8 kB / 0.7093 GB, free: 0.668 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.203e-06/2.039, allocations: 0 / 0.7093 GB, free: 0.668 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.884e-05/2.039, allocations: 4 kB / 0.7093 GB, free: 0.6641 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000663/2.04, allocations: 107.8 kB / 0.7094 GB, free: 0.5586 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.492e-06/2.04, allocations: 0 / 0.7094 GB, free: 0.5586 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001327/2.04, allocations: 43.66 kB / 0.7095 GB, free: 0.5156 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.457e-05/2.04, allocations: 4 kB / 0.7095 GB, free: 0.5117 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.0001118/2.04, allocations: 137.8 kB / 0.7096 GB, free: 376 kB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.675e-05/2.04, allocations: 19.86 kB / 0.7096 GB, free: 356 kB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1889/2.229, allocations: 319.8 kB / 0.7099 GB, free: 215.7 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.778e-06/2.229, allocations: 1.031 kB / 0.7099 GB, free: 215.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/2.229, allocations: 0 / 0.7099 GB, free: 215.7 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001157/2.229, allocations: 105.2 kB / 0.71 GB, free: 215.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.675e-05/2.229, allocations: 7.25 kB / 0.71 GB, free: 215.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.909e-05/2.229, allocations: 5.688 kB / 0.71 GB, free: 215.6 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.43e-05/2.229, allocations: 2.156 kB / 0.71 GB, free: 215.6 MB / 0.5919 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0008283/2.23, allocations: 331.7 kB / 0.7104 GB, free: 215.5 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0003855/2.23, allocations: 377 kB / 0.7107 GB, free: 215.3 MB / 0.5919 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001437/2.231, allocations: 81.94 kB / 0.7108 GB, free: 215.3 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0001974/2.231, allocations: 206.4 kB / 0.711 GB, free: 215.2 MB / 0.5919 GB Notification: Performance of Backend: time 6.21e-07/2.231, allocations: 4.406 kB / 0.711 GB, free: 215.2 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.01079/2.242, allocations: 2.885 MB / 0.7138 GB, free: 215.1 MB / 0.5919 GB Notification: Performance of SimCode: time 0.0008609/2.243, allocations: 0.9593 MB / 0.7148 GB, free: 214.4 MB / 0.5919 GB Notification: Performance of Templates: time 0.06229/2.305, allocations: 64.89 MB / 0.7781 GB, free: 170.3 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)