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.7784/0.7784, allocations: 150.9 MB / 166.1 MB, free: 14.62 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002884/0.0002885, allocations: 15.97 kB / 204.2 MB, free: 10.07 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1484/0.1487, allocations: 31.32 MB / 235.5 MB, free: 5.441 MB / 190.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.573/1.721, allocations: 293.4 MB / 0.5165 GB, free: 13.86 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03645/1.758, allocations: 34.59 MB / 0.5503 GB, free: 11.41 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001858/1.758, allocations: 0 / 0.5503 GB, free: 11.41 MB / 446.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.0003588/1.759, allocations: 83.62 kB / 0.5504 GB, free: 11.33 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001998/1.759, allocations: 79.44 kB / 0.5505 GB, free: 11.25 MB / 446.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.02289/1.782, allocations: 8.383 MB / 0.5587 GB, free: 2.867 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004422/1.782, allocations: 278.7 kB / 0.5589 GB, free: 2.594 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001877/1.782, allocations: 92.28 kB / 0.559 GB, free: 2.508 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001902/1.782, allocations: 119.5 kB / 0.5591 GB, free: 2.391 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000111/1.783, allocations: 99.5 kB / 0.5592 GB, free: 2.293 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.282e-05/1.783, allocations: 16 kB / 0.5592 GB, free: 2.277 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02818/1.811, allocations: 17.75 MB / 0.5766 GB, free: 0.5039 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 6.254e-05/1.811, allocations: 39.86 kB / 0.5766 GB, free: 476 kB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000166/1.811, allocations: 111.4 kB / 0.5767 GB, free: 364 kB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01704/1.828, allocations: 8.398 MB / 0.5849 GB, free: 7.938 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.481e-06/1.828, allocations: 0 / 0.5849 GB, free: 7.938 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.422e-06/1.828, allocations: 0 / 0.5849 GB, free: 7.938 MB / 478.1 MB Notification: Performance of Transformations before backend: time 6.643e-06/1.828, allocations: 0 / 0.5849 GB, free: 7.938 MB / 478.1 MB 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.003562/1.832, allocations: 1.4 MB / 0.5863 GB, free: 6.484 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.542e-05/1.832, allocations: 8.031 kB / 0.5863 GB, free: 6.477 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.599e-05/1.832, allocations: 27.66 kB / 0.5863 GB, free: 6.449 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001861/1.832, allocations: 227.5 kB / 0.5865 GB, free: 6.188 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.52e-05/1.832, allocations: 16.38 kB / 0.5865 GB, free: 6.172 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.325e-05/1.832, allocations: 16 kB / 0.5866 GB, free: 6.156 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003993/1.833, allocations: 260.1 kB / 0.5868 GB, free: 5.879 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.789e-06/1.833, allocations: 0 / 0.5868 GB, free: 5.879 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.187e-05/1.833, allocations: 13.83 kB / 0.5868 GB, free: 5.867 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.889e-06/1.833, allocations: 4 kB / 0.5868 GB, free: 5.863 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002678/1.833, allocations: 145 kB / 0.587 GB, free: 5.723 MB / 478.1 MB 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.01789/1.851, allocations: 9.499 MB / 0.5962 GB, free: 11.25 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001784/1.851, allocations: 82.48 kB / 0.5963 GB, free: 11.16 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.777e-05/1.851, allocations: 56.89 kB / 0.5964 GB, free: 11.1 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1421/1.993, allocations: 77.28 MB / 0.6718 GB, free: 5.055 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.081e-05/1.993, allocations: 34.55 kB / 0.6719 GB, free: 5.012 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=22): time 1.853e-06/1.993, allocations: 0 / 0.6719 GB, free: 5.012 MB / 0.5606 GB Notification: Performance of matching and sorting (n=22): time 0.0005015/1.994, allocations: 201.9 kB / 0.6721 GB, free: 4.812 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.818e-05/1.994, allocations: 59.33 kB / 0.6721 GB, free: 4.742 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002178/1.994, allocations: 224.8 kB / 0.6723 GB, free: 4.516 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.588e-05/1.994, allocations: 25.7 kB / 0.6724 GB, free: 4.484 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 9.44e-05/1.994, allocations: 152.2 kB / 0.6725 GB, free: 4.332 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 4.553e-05/1.994, allocations: 74.84 kB / 0.6726 GB, free: 4.258 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.048e-05/1.994, allocations: 41.69 kB / 0.6726 GB, free: 4.211 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001089/1.994, allocations: 334.8 kB / 0.6729 GB, free: 3.875 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001162/1.995, allocations: 47.97 kB / 0.673 GB, free: 3.828 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001295/1.995, allocations: 89.27 kB / 0.6731 GB, free: 3.727 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000237/1.995, allocations: 163.6 kB / 0.6732 GB, free: 3.555 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/1.995, allocations: 0 / 0.6732 GB, free: 3.555 MB / 0.5606 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003189/1.995, allocations: 189.3 kB / 0.6734 GB, free: 3.363 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.764e-05/1.995, allocations: 8 kB / 0.6734 GB, free: 3.355 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.272e-06/1.995, allocations: 0 / 0.6734 GB, free: 3.355 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.153e-05/1.995, allocations: 0 / 0.6734 GB, free: 3.355 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006695/1.996, allocations: 99.91 kB / 0.6735 GB, free: 3.258 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.06e-06/1.996, allocations: 4 kB / 0.6735 GB, free: 3.254 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001216/1.996, allocations: 35.67 kB / 0.6735 GB, free: 3.219 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.151e-05/1.996, allocations: 4 kB / 0.6735 GB, free: 3.215 MB / 0.5606 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.0001031/1.996, allocations: 134.2 kB / 0.6737 GB, free: 3.074 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.929e-05/1.996, allocations: 19.72 kB / 0.6737 GB, free: 3.055 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004246/1.997, allocations: 331.7 kB / 0.674 GB, free: 2.688 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002211/1.997, allocations: 152.2 kB / 0.6742 GB, free: 2.535 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.81e-06/1.997, allocations: 7.938 kB / 0.6742 GB, free: 2.527 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.947e-06/1.997, allocations: 0 / 0.6742 GB, free: 2.527 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007482/1.998, allocations: 0.6016 MB / 0.6747 GB, free: 1.867 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.237e-06/1.998, allocations: 7.938 kB / 0.6748 GB, free: 1.859 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005686/1.998, allocations: 95.92 kB / 0.6748 GB, free: 1.766 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.725e-06/1.998, allocations: 0 / 0.6748 GB, free: 1.766 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.13e-05/1.998, allocations: 3.984 kB / 0.6749 GB, free: 1.762 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.487e-06/1.998, allocations: 4 kB / 0.6749 GB, free: 1.758 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/1.998, allocations: 0 / 0.6749 GB, free: 1.758 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003623/1.999, allocations: 284 kB / 0.6751 GB, free: 1.461 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 7.332e-05/1.999, allocations: 108.8 kB / 0.6752 GB, free: 1.336 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.642e-05/1.999, allocations: 7.938 kB / 0.6752 GB, free: 1.328 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001337/1.999, allocations: 8 kB / 0.6752 GB, free: 1.32 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.504e-05/1.999, allocations: 11.92 kB / 0.6753 GB, free: 1.309 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.156e-06/1.999, allocations: 4 kB / 0.6753 GB, free: 1.305 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001704/1.999, allocations: 206 kB / 0.6755 GB, free: 1.109 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.11e-07/1.999, allocations: 0 / 0.6755 GB, free: 1.109 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.002618/2.002, allocations: 1.175 MB / 0.6766 GB, free: 15.93 MB / 0.5762 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.004404/2.006, allocations: 1.797 MB / 0.6784 GB, free: 14.15 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0004321/2.007, allocations: 202.4 kB / 0.6786 GB, free: 13.95 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/2.007, allocations: 0 / 0.6786 GB, free: 13.95 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0001475/2.007, allocations: 71.91 kB / 0.6786 GB, free: 13.88 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006101/2.008, allocations: 103.8 kB / 0.6787 GB, free: 13.78 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006881/2.008, allocations: 0.5181 MB / 0.6792 GB, free: 13.23 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002943/2.009, allocations: 0.748 MB / 0.68 GB, free: 12.46 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001013/2.009, allocations: 33.17 kB / 0.68 GB, free: 12.43 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.354e-05/2.009, allocations: 23.44 kB / 0.68 GB, free: 12.41 MB / 0.5762 GB Notification: Performance of SimCode: time 2.2e-07/2.009, allocations: 0 / 0.68 GB, free: 12.41 MB / 0.5762 GB Notification: Performance of Templates: time 0.1881/2.197, allocations: 41.61 MB / 0.7206 GB, free: 217.1 MB / 0.5762 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)