Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSingularPressureLoss.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.Fluid.Examples.SimpleExamples.TestSingularPressureLoss,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSingularPressureLoss") translateModel(ThermoSysPro.Fluid.Examples.SimpleExamples.TestSingularPressureLoss,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSingularPressureLoss") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.7781/0.7781, allocations: 150.9 MB / 167.2 MB, free: 14.49 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003248/0.0003248, allocations: 19.38 kB / 237.8 MB, free: 1.734 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05529/0.05563, allocations: 31.35 MB / 269.1 MB, free: 7.043 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.Fluid.Examples.SimpleExamples.TestSingularPressureLoss): time 1.539/1.595, allocations: 294.7 MB / 0.5506 GB, free: 13.06 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.4657/2.06, allocations: 187.4 MB / 0.7336 GB, free: 1.75 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002155/2.06, allocations: 6.688 kB / 0.7336 GB, free: 1.75 MB / 0.5919 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SourceP.mo:58:3-59:65:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SinkP.mo:46:3-47:67:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/PressureLosses/SingularPressureLoss.mo:27:3-28:67:writable] Warning: Connector C1 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/PressureLosses/SingularPressureLoss.mo:29:3-30:65:writable] Warning: Connector C2 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.0001137/2.061, allocations: 39.28 kB / 0.7337 GB, free: 1.75 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.0002459/2.061, allocations: 107.5 kB / 0.7338 GB, free: 1.75 MB / 0.5919 GB [/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. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/Fluid/derDensity_derP_derh.mo:63:5-63:84:writable] Warning: T 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.02769/2.089, allocations: 11.31 MB / 0.7448 GB, free: 1.539 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.0004403/2.089, allocations: 364.6 kB / 0.7452 GB, free: 1.539 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002391/2.089, allocations: 190.4 kB / 0.7453 GB, free: 1.535 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001404/2.089, allocations: 148.1 kB / 0.7455 GB, free: 1.535 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001662/2.09, allocations: 161.7 kB / 0.7456 GB, free: 1.535 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 3.847e-05/2.09, allocations: 32.56 kB / 0.7457 GB, free: 1.535 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03296/2.123, allocations: 19.89 MB / 0.7651 GB, free: 1.074 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0001102/2.123, allocations: 69.59 kB / 0.7652 GB, free: 1.066 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0002507/2.123, allocations: 176.4 kB / 0.7653 GB, free: 1.055 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.02215/2.145, allocations: 9.723 MB / 0.7748 GB, free: 13.5 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 6.702e-06/2.145, allocations: 1.031 kB / 0.7748 GB, free: 13.5 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.975e-06/2.145, allocations: 3.438 kB / 0.7748 GB, free: 13.5 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.091e-05/2.145, allocations: 3.188 kB / 0.7748 GB, free: 13.5 MB / 0.6075 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.004558/2.15, allocations: 1.728 MB / 0.7765 GB, free: 12.38 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.866e-05/2.15, allocations: 10.84 kB / 0.7765 GB, free: 12.38 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.262e-05/2.15, allocations: 39.05 kB / 0.7766 GB, free: 12.36 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003683/2.15, allocations: 296.9 kB / 0.7768 GB, free: 12.1 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.566e-05/2.15, allocations: 26.25 kB / 0.7769 GB, free: 12.1 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.354e-05/2.15, allocations: 32.06 kB / 0.7769 GB, free: 12.1 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005041/2.151, allocations: 349.9 kB / 0.7772 GB, free: 11.96 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.062e-05/2.151, allocations: 0.9062 kB / 0.7772 GB, free: 11.96 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.586e-05/2.151, allocations: 13.03 kB / 0.7772 GB, free: 11.96 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.048e-05/2.151, allocations: 15.72 kB / 0.7773 GB, free: 11.96 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003605/2.151, allocations: 213.8 kB / 0.7775 GB, free: 11.93 MB / 0.6075 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.008235/2.16, allocations: 6.085 MB / 0.7834 GB, free: 6.797 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00013/2.16, allocations: 58.5 kB / 0.7835 GB, free: 6.77 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.958e-05/2.16, allocations: 20.61 kB / 0.7835 GB, free: 6.758 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1526/2.312, allocations: 71.39 MB / 0.8532 GB, free: 14.82 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.405e-05/2.312, allocations: 35 kB / 0.8532 GB, free: 14.78 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=5): time 1.723e-06/2.312, allocations: 4 kB / 0.8532 GB, free: 14.77 MB / 0.6856 GB Notification: Performance of matching and sorting (n=5): time 0.0006642/2.313, allocations: 224.3 kB / 0.8534 GB, free: 14.55 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.068e-05/2.313, allocations: 54.5 kB / 0.8535 GB, free: 14.48 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003353/2.314, allocations: 274.7 kB / 0.8538 GB, free: 14.26 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 1.341e-05/2.314, allocations: 26.33 kB / 0.8538 GB, free: 14.23 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001482/2.314, allocations: 226 kB / 0.854 GB, free: 14.03 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 1.912e-05/2.314, allocations: 23.5 kB / 0.854 GB, free: 14.01 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.463e-05/2.314, allocations: 57.22 kB / 0.8541 GB, free: 13.96 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 0.0001046/2.314, allocations: 335.8 kB / 0.8544 GB, free: 13.64 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.445e-05/2.314, allocations: 38.91 kB / 0.8544 GB, free: 13.61 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001496/2.314, allocations: 141.8 kB / 0.8546 GB, free: 13.45 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002263/2.314, allocations: 178.2 kB / 0.8547 GB, free: 13.27 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.119e-06/2.314, allocations: 5.203 kB / 0.8547 GB, free: 13.26 MB / 0.6856 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0005003/2.315, allocations: 254.4 kB / 0.855 GB, free: 13.07 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 1.794e-05/2.315, allocations: 4 kB / 0.855 GB, free: 13.07 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.357e-06/2.315, allocations: 4.781 kB / 0.855 GB, free: 13.07 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007789/2.316, allocations: 114.5 kB / 0.8551 GB, free: 12.96 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001324/2.316, allocations: 40.31 kB / 0.8551 GB, free: 12.92 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004127/2.316, allocations: 0.567 MB / 0.8557 GB, free: 12.36 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001768/2.317, allocations: 27.67 kB / 0.8557 GB, free: 12.33 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.888e-05/2.317, allocations: 15.12 kB / 0.8557 GB, free: 12.32 MB / 0.6856 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 6 (singularPressureLoss.fluid,SourceP1.C.ftype,PuitsP1.fluid,SourceP1.fluid1,SourceP1.C.diff_on_2,singularPressureLoss.C2.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0001398/2.317, allocations: 148.9 kB / 0.8559 GB, free: 12.18 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.919e-05/2.317, allocations: 23.72 kB / 0.8559 GB, free: 12.16 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003118/2.317, allocations: 135.3 kB / 0.856 GB, free: 12.04 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.497e-06/2.317, allocations: 0 / 0.856 GB, free: 12.04 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.049e-06/2.317, allocations: 0 / 0.856 GB, free: 12.04 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.061e-06/2.317, allocations: 3.984 kB / 0.856 GB, free: 12.03 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002958/2.317, allocations: 290.4 kB / 0.8563 GB, free: 11.75 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.864e-06/2.317, allocations: 0 / 0.8563 GB, free: 11.75 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.403e-05/2.317, allocations: 2.188 kB / 0.8563 GB, free: 11.75 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003926/2.318, allocations: 78.14 kB / 0.8564 GB, free: 11.67 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.596e-06/2.318, allocations: 4.625 kB / 0.8564 GB, free: 11.67 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003651/2.318, allocations: 0.5624 MB / 0.8569 GB, free: 11.11 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.025e-06/2.318, allocations: 5.078 kB / 0.8569 GB, free: 11.1 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002363/2.318, allocations: 133.2 kB / 0.8571 GB, free: 10.96 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 7.407e-05/2.319, allocations: 100.7 kB / 0.8572 GB, free: 10.85 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.253e-05/2.319, allocations: 4.984 kB / 0.8572 GB, free: 10.85 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.892e-05/2.319, allocations: 4.156 kB / 0.8572 GB, free: 10.85 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.129e-05/2.319, allocations: 0 / 0.8572 GB, free: 10.85 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.431e-06/2.319, allocations: 5.062 kB / 0.8572 GB, free: 10.84 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.0001926/2.319, allocations: 201.9 kB / 0.8574 GB, free: 10.68 MB / 0.6856 GB Notification: Performance of sort global known variables: time 1.2e-07/2.319, allocations: 0 / 0.8574 GB, free: 10.68 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.003964/2.323, allocations: 1.441 MB / 0.8588 GB, free: 9.344 MB / 0.6856 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.007194/2.33, allocations: 2.192 MB / 0.8609 GB, free: 7.473 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.0003601/2.33, allocations: 108.6 kB / 0.861 GB, free: 7.398 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/2.33, allocations: 0 / 0.861 GB, free: 7.398 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.0001028/2.331, allocations: 37.28 kB / 0.8611 GB, free: 7.371 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003868/2.331, allocations: 72 kB / 0.8611 GB, free: 7.324 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008423/2.332, allocations: 441.9 kB / 0.8616 GB, free: 6.887 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002999/2.332, allocations: 0.7569 MB / 0.8623 GB, free: 6.105 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.753e-05/2.332, allocations: 31.42 kB / 0.8623 GB, free: 6.074 MB / 0.6856 GB Notification: Performance of SimCode: time 3.31e-07/2.332, allocations: 0 / 0.8623 GB, free: 6.074 MB / 0.6856 GB Notification: Performance of Templates: time 0.03883/2.371, allocations: 28.61 MB / 0.8903 GB, free: 9.539 MB / 0.7169 GB make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSingularPressureLoss.makefile (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSingularPressureLoss.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSingularPressureLoss.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSingularPressureLoss.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSingularPressureLoss.sim & ./ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSingularPressureLoss -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSingularPressureLoss.pipe 2>&1)