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.9232/0.9232, allocations: 150.9 MB / 166.5 MB, free: 14.43 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003846/0.0003846, allocations: 17.38 kB / 237.1 MB, free: 1.773 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06517/0.06557, allocations: 31.34 MB / 268.4 MB, free: 7.055 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.645/1.711, allocations: 294.7 MB / 0.5499 GB, free: 13.24 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.5557/2.267, allocations: 187.4 MB / 0.7329 GB, free: 1.801 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003059/2.267, allocations: 7.719 kB / 0.7329 GB, free: 1.801 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.0001446/2.267, allocations: 37.98 kB / 0.733 GB, free: 1.801 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.0003154/2.268, allocations: 114 kB / 0.7331 GB, free: 1.801 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.03185/2.299, allocations: 11.31 MB / 0.7441 GB, free: 1.586 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.0005132/2.3, allocations: 368 kB / 0.7445 GB, free: 1.586 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002829/2.3, allocations: 193.2 kB / 0.7447 GB, free: 1.582 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001659/2.3, allocations: 148.7 kB / 0.7448 GB, free: 1.582 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001815/2.301, allocations: 158.3 kB / 0.745 GB, free: 1.582 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 4.793e-05/2.301, allocations: 34.34 kB / 0.745 GB, free: 1.582 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03997/2.341, allocations: 19.89 MB / 0.7644 GB, free: 1.219 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0001373/2.341, allocations: 69.67 kB / 0.7645 GB, free: 1.207 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0002922/2.341, allocations: 175.7 kB / 0.7647 GB, free: 1.199 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.02776/2.369, allocations: 9.731 MB / 0.7742 GB, free: 13.65 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 9.858e-06/2.369, allocations: 0 / 0.7742 GB, free: 13.65 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.715e-06/2.369, allocations: 1 kB / 0.7742 GB, free: 13.65 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.082e-05/2.369, allocations: 0 / 0.7742 GB, free: 13.65 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.005466/2.374, allocations: 1.731 MB / 0.7758 GB, free: 12.53 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 5.527e-05/2.375, allocations: 12.86 kB / 0.7759 GB, free: 12.53 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001073/2.375, allocations: 43.31 kB / 0.7759 GB, free: 12.51 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004315/2.375, allocations: 291.4 kB / 0.7762 GB, free: 12.26 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.356e-05/2.375, allocations: 24.81 kB / 0.7762 GB, free: 12.25 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.833e-05/2.375, allocations: 33.14 kB / 0.7762 GB, free: 12.25 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004982/2.376, allocations: 348 kB / 0.7766 GB, free: 12.12 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.359e-05/2.376, allocations: 0.6562 kB / 0.7766 GB, free: 12.12 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.971e-05/2.376, allocations: 13.16 kB / 0.7766 GB, free: 12.12 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.313e-05/2.376, allocations: 16.38 kB / 0.7766 GB, free: 12.11 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003643/2.376, allocations: 211.5 kB / 0.7768 GB, free: 12.09 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.008777/2.385, allocations: 6.08 MB / 0.7827 GB, free: 6.953 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001415/2.385, allocations: 61.59 kB / 0.7828 GB, free: 6.926 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.943e-05/2.385, allocations: 24.58 kB / 0.7828 GB, free: 6.914 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1609/2.546, allocations: 71.38 MB / 0.8525 GB, free: 15.01 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.755e-05/2.546, allocations: 39.17 kB / 0.8526 GB, free: 14.96 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=5): time 3.757e-06/2.546, allocations: 0.9844 kB / 0.8526 GB, free: 14.96 MB / 0.6856 GB Notification: Performance of matching and sorting (n=5): time 0.0007942/2.547, allocations: 224.3 kB / 0.8528 GB, free: 14.74 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.877e-05/2.547, allocations: 56.03 kB / 0.8528 GB, free: 14.68 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003609/2.547, allocations: 273.5 kB / 0.8531 GB, free: 14.45 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 2.361e-05/2.547, allocations: 33.52 kB / 0.8531 GB, free: 14.41 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001565/2.548, allocations: 226.8 kB / 0.8533 GB, free: 14.22 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 2.682e-05/2.548, allocations: 19.5 kB / 0.8534 GB, free: 14.2 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.801e-05/2.548, allocations: 53.86 kB / 0.8534 GB, free: 14.16 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 0.0001118/2.548, allocations: 339.2 kB / 0.8537 GB, free: 13.83 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.633e-05/2.548, allocations: 35.55 kB / 0.8538 GB, free: 13.8 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001507/2.548, allocations: 141.2 kB / 0.8539 GB, free: 13.64 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002782/2.548, allocations: 186.5 kB / 0.8541 GB, free: 13.45 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.779e-06/2.548, allocations: 0 / 0.8541 GB, free: 13.45 MB / 0.6856 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0005111/2.549, allocations: 240.2 kB / 0.8543 GB, free: 13.28 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 2.365e-05/2.549, allocations: 12.03 kB / 0.8543 GB, free: 13.27 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.153e-05/2.549, allocations: 6.562 kB / 0.8543 GB, free: 13.26 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008296/2.55, allocations: 110.9 kB / 0.8544 GB, free: 13.16 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001366/2.55, allocations: 36.42 kB / 0.8545 GB, free: 13.12 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004871/2.55, allocations: 0.5701 MB / 0.855 GB, free: 12.55 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000182/2.551, allocations: 30.75 kB / 0.8551 GB, free: 12.52 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.151e-05/2.551, allocations: 13.25 kB / 0.8551 GB, free: 12.51 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.0001619/2.551, allocations: 150.1 kB / 0.8552 GB, free: 12.38 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.216e-05/2.551, allocations: 19.72 kB / 0.8552 GB, free: 12.36 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003489/2.551, allocations: 139.8 kB / 0.8554 GB, free: 12.23 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.848e-06/2.551, allocations: 0 / 0.8554 GB, free: 12.23 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.449e-06/2.551, allocations: 0 / 0.8554 GB, free: 12.23 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.469e-06/2.551, allocations: 4 kB / 0.8554 GB, free: 12.23 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003047/2.552, allocations: 291.3 kB / 0.8556 GB, free: 11.94 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/2.552, allocations: 0 / 0.8556 GB, free: 11.94 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.594e-05/2.552, allocations: 7.188 kB / 0.8557 GB, free: 11.93 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004197/2.552, allocations: 79.19 kB / 0.8557 GB, free: 11.86 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.047e-06/2.552, allocations: 0 / 0.8557 GB, free: 11.86 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003972/2.552, allocations: 0.5594 MB / 0.8563 GB, free: 11.3 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.824e-06/2.552, allocations: 0 / 0.8563 GB, free: 11.3 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002625/2.553, allocations: 140.1 kB / 0.8564 GB, free: 11.16 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 8.502e-05/2.553, allocations: 100.2 kB / 0.8565 GB, free: 11.05 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.016e-05/2.553, allocations: 3.984 kB / 0.8565 GB, free: 11.04 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.023e-05/2.553, allocations: 5.156 kB / 0.8565 GB, free: 11.04 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.89e-05/2.553, allocations: 4 kB / 0.8565 GB, free: 11.04 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.561e-06/2.553, allocations: 1.125 kB / 0.8565 GB, free: 11.04 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.0002061/2.553, allocations: 201.5 kB / 0.8567 GB, free: 10.88 MB / 0.6856 GB Notification: Performance of sort global known variables: time 1.4e-07/2.553, allocations: 3.094 kB / 0.8567 GB, free: 10.88 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.004085/2.557, allocations: 1.44 MB / 0.8581 GB, free: 9.539 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.007797/2.565, allocations: 2.205 MB / 0.8603 GB, free: 7.66 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.0004678/2.566, allocations: 108.4 kB / 0.8604 GB, free: 7.586 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/2.566, allocations: 0 / 0.8604 GB, free: 7.586 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.0001112/2.566, allocations: 23.17 kB / 0.8604 GB, free: 7.566 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004797/2.566, allocations: 72 kB / 0.8605 GB, free: 7.52 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008501/2.567, allocations: 426.8 kB / 0.8609 GB, free: 7.109 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002937/2.567, allocations: 0.7558 MB / 0.8616 GB, free: 6.328 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.0001311/2.568, allocations: 30.78 kB / 0.8616 GB, free: 6.301 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.664e-05/2.568, allocations: 27.44 kB / 0.8617 GB, free: 6.273 MB / 0.6856 GB Notification: Performance of SimCode: time 1.183e-06/2.568, allocations: 0 / 0.8617 GB, free: 6.273 MB / 0.6856 GB Notification: Performance of Templates: time 0.06245/2.63, allocations: 45.37 MB / 0.906 GB, free: 8.961 MB / 0.7325 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)