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.8096/0.8096, allocations: 150.9 MB / 166.4 MB, free: 14.25 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003458/0.000346, allocations: 11.98 kB / 204.5 MB, free: 9.625 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1458/0.1461, allocations: 31.33 MB / 235.9 MB, free: 5.461 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.521/1.667, allocations: 294.5 MB / 0.5179 GB, free: 13.53 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03671/1.704, allocations: 34.4 MB / 0.5515 GB, free: 11.27 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000164/1.704, allocations: 0 / 0.5515 GB, free: 11.27 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.0003221/1.705, allocations: 100.8 kB / 0.5516 GB, free: 11.17 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001485/1.705, allocations: 79.31 kB / 0.5517 GB, free: 11.09 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.02169/1.726, allocations: 9.556 MB / 0.561 GB, free: 1.531 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003754/1.727, allocations: 282.7 kB / 0.5613 GB, free: 1.254 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001781/1.727, allocations: 95.56 kB / 0.5614 GB, free: 1.16 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001696/1.727, allocations: 119.5 kB / 0.5615 GB, free: 1.043 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001186/1.727, allocations: 95.52 kB / 0.5616 GB, free: 0.9492 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 3.057e-05/1.727, allocations: 16 kB / 0.5616 GB, free: 0.9336 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02712/1.754, allocations: 17.67 MB / 0.5789 GB, free: 15.24 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 7.376e-05/1.755, allocations: 43.84 kB / 0.5789 GB, free: 15.2 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001389/1.755, allocations: 111.4 kB / 0.579 GB, free: 15.09 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01693/1.772, allocations: 8.379 MB / 0.5872 GB, free: 6.691 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.903e-06/1.772, allocations: 4 kB / 0.5872 GB, free: 6.688 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.034e-06/1.772, allocations: 0 / 0.5872 GB, free: 6.688 MB / 478.1 MB Notification: Performance of Transformations before backend: time 8.245e-06/1.772, allocations: 0 / 0.5872 GB, free: 6.688 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.003752/1.775, allocations: 1.392 MB / 0.5886 GB, free: 5.242 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.679e-05/1.775, allocations: 12.02 kB / 0.5886 GB, free: 5.23 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.183e-05/1.776, allocations: 31.66 kB / 0.5886 GB, free: 5.199 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002098/1.776, allocations: 223.9 kB / 0.5888 GB, free: 4.941 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.824e-05/1.776, allocations: 16.38 kB / 0.5888 GB, free: 4.926 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.668e-05/1.776, allocations: 16 kB / 0.5889 GB, free: 4.91 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004121/1.776, allocations: 256.1 kB / 0.5891 GB, free: 4.641 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.778e-06/1.776, allocations: 4 kB / 0.5891 GB, free: 4.637 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.937e-05/1.776, allocations: 12 kB / 0.5891 GB, free: 4.625 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.309e-05/1.776, allocations: 7.984 kB / 0.5891 GB, free: 4.617 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002855/1.777, allocations: 152.3 kB / 0.5893 GB, free: 4.469 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.01977/1.796, allocations: 9.488 MB / 0.5985 GB, free: 10.01 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001917/1.797, allocations: 87.38 kB / 0.5986 GB, free: 9.914 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001025/1.797, allocations: 60.89 kB / 0.5987 GB, free: 9.852 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1536/1.95, allocations: 77.26 MB / 0.6741 GB, free: 3.812 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.969e-05/1.95, allocations: 34.56 kB / 0.6742 GB, free: 3.77 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=22): time 2.184e-06/1.95, allocations: 4 kB / 0.6742 GB, free: 3.766 MB / 0.5606 GB Notification: Performance of matching and sorting (n=22): time 0.000533/1.951, allocations: 202.7 kB / 0.6744 GB, free: 3.562 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.667e-05/1.951, allocations: 51.41 kB / 0.6744 GB, free: 3.5 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002338/1.951, allocations: 232.8 kB / 0.6746 GB, free: 3.266 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.339e-05/1.951, allocations: 25.7 kB / 0.6747 GB, free: 3.234 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 8.096e-05/1.951, allocations: 140.2 kB / 0.6748 GB, free: 3.094 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 5.489e-05/1.951, allocations: 74.89 kB / 0.6749 GB, free: 3.02 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.457e-05/1.952, allocations: 45.7 kB / 0.6749 GB, free: 2.969 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001064/1.952, allocations: 334.8 kB / 0.6752 GB, free: 2.633 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001206/1.952, allocations: 55.98 kB / 0.6753 GB, free: 2.578 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001466/1.952, allocations: 84.27 kB / 0.6754 GB, free: 2.48 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002559/1.952, allocations: 162.3 kB / 0.6755 GB, free: 2.309 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/1.952, allocations: 0 / 0.6755 GB, free: 2.309 MB / 0.5606 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.000339/1.953, allocations: 188.5 kB / 0.6757 GB, free: 2.121 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.428e-05/1.953, allocations: 13.7 kB / 0.6757 GB, free: 2.109 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.663e-06/1.953, allocations: 4.125 kB / 0.6757 GB, free: 2.105 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.387e-05/1.953, allocations: 4 kB / 0.6757 GB, free: 2.102 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006729/1.953, allocations: 95.88 kB / 0.6758 GB, free: 2.008 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.837e-06/1.953, allocations: 4 kB / 0.6758 GB, free: 2.004 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000123/1.953, allocations: 35.56 kB / 0.6758 GB, free: 1.969 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.211e-05/1.953, allocations: 4 kB / 0.6758 GB, free: 1.965 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.0001072/1.954, allocations: 129.8 kB / 0.676 GB, free: 1.828 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.766e-05/1.954, allocations: 23.7 kB / 0.676 GB, free: 1.805 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000445/1.954, allocations: 329.2 kB / 0.6763 GB, free: 1.445 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002439/1.954, allocations: 155.6 kB / 0.6765 GB, free: 1.289 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.51e-06/1.954, allocations: 3.938 kB / 0.6765 GB, free: 1.285 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.426e-06/1.954, allocations: 0 / 0.6765 GB, free: 1.285 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008064/1.955, allocations: 0.6089 MB / 0.6771 GB, free: 0.6172 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.048e-06/1.955, allocations: 3.938 kB / 0.6771 GB, free: 0.6133 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005497/1.956, allocations: 91.88 kB / 0.6771 GB, free: 0.5234 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.116e-06/1.956, allocations: 32 / 0.6771 GB, free: 0.5234 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.129e-05/1.956, allocations: 8 kB / 0.6772 GB, free: 0.5156 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.324e-06/1.956, allocations: 3.938 kB / 0.6772 GB, free: 0.5117 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.326e-06/1.956, allocations: 3.938 kB / 0.6772 GB, free: 0.5078 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004161/1.956, allocations: 286.2 kB / 0.6774 GB, free: 216 kB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 7.696e-05/1.956, allocations: 108.8 kB / 0.6775 GB, free: 88 kB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.723e-05/1.956, allocations: 11.94 kB / 0.6775 GB, free: 76 kB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000124/1.956, allocations: 11.98 kB / 0.6776 GB, free: 64 kB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.788e-05/1.957, allocations: 7.938 kB / 0.6776 GB, free: 56 kB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.388e-06/1.957, allocations: 7.984 kB / 0.6776 GB, free: 48 kB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0002052/1.957, allocations: 202 kB / 0.6778 GB, free: 15.85 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2.4e-07/1.957, allocations: 0 / 0.6778 GB, free: 15.85 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002695/1.959, allocations: 1.175 MB / 0.6789 GB, free: 14.67 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.005247/1.965, allocations: 1.727 MB / 0.6806 GB, free: 12.96 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0005078/1.965, allocations: 201.5 kB / 0.6808 GB, free: 12.76 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/1.965, allocations: 4.25 kB / 0.6808 GB, free: 12.76 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0001542/1.965, allocations: 71.91 kB / 0.6809 GB, free: 12.69 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006555/1.966, allocations: 98.72 kB / 0.681 GB, free: 12.59 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007443/1.967, allocations: 462.2 kB / 0.6814 GB, free: 12.11 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002773/1.967, allocations: 0.7519 MB / 0.6821 GB, free: 11.34 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001134/1.967, allocations: 25.94 kB / 0.6822 GB, free: 11.31 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.502e-05/1.967, allocations: 23.44 kB / 0.6822 GB, free: 11.29 MB / 0.5762 GB Notification: Performance of SimCode: time 2.41e-07/1.967, allocations: 0 / 0.6822 GB, free: 11.29 MB / 0.5762 GB Notification: Performance of Templates: time 0.1889/2.156, allocations: 41.24 MB / 0.7225 GB, free: 215.5 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)