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.7543/0.7543, allocations: 150.9 MB / 167.2 MB, free: 14.53 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003211/0.0003214, allocations: 14.48 kB / 237.8 MB, free: 1.793 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05188/0.05221, allocations: 31.36 MB / 269.1 MB, free: 7.051 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.529/1.581, allocations: 294.7 MB / 0.5506 GB, free: 12.96 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.47/2.051, allocations: 187.4 MB / 0.7336 GB, free: 2.082 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002581/2.051, allocations: 7.969 kB / 0.7336 GB, free: 2.082 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.0001377/2.051, allocations: 37.55 kB / 0.7336 GB, free: 2.082 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.0003379/2.052, allocations: 112.7 kB / 0.7337 GB, free: 2.082 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.02874/2.08, allocations: 11.31 MB / 0.7448 GB, free: 1.871 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.0004714/2.081, allocations: 368.9 kB / 0.7451 GB, free: 1.867 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002878/2.081, allocations: 196.1 kB / 0.7453 GB, free: 1.863 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002185/2.081, allocations: 145 kB / 0.7455 GB, free: 1.863 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002237/2.082, allocations: 160.5 kB / 0.7456 GB, free: 1.863 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 5.916e-05/2.082, allocations: 34.97 kB / 0.7457 GB, free: 1.863 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0324/2.114, allocations: 19.89 MB / 0.7651 GB, free: 1.379 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0001058/2.114, allocations: 73.86 kB / 0.7652 GB, free: 1.367 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0002269/2.114, allocations: 174.6 kB / 0.7653 GB, free: 1.359 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.02103/2.136, allocations: 9.728 MB / 0.7748 GB, free: 13.81 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.109e-06/2.136, allocations: 0.8438 kB / 0.7748 GB, free: 13.81 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.623e-06/2.136, allocations: 0 / 0.7748 GB, free: 13.81 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.3e-05/2.136, allocations: 0 / 0.7748 GB, free: 13.81 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.004201/2.14, allocations: 1.732 MB / 0.7765 GB, free: 12.68 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.18e-05/2.14, allocations: 8.281 kB / 0.7765 GB, free: 12.68 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.478e-05/2.14, allocations: 41.89 kB / 0.7766 GB, free: 12.66 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003537/2.14, allocations: 297.3 kB / 0.7768 GB, free: 12.41 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.495e-05/2.14, allocations: 26.47 kB / 0.7769 GB, free: 12.41 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.55e-05/2.14, allocations: 33.58 kB / 0.7769 GB, free: 12.41 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004888/2.141, allocations: 347.7 kB / 0.7772 GB, free: 12.27 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.241e-05/2.141, allocations: 0 / 0.7772 GB, free: 12.27 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.421e-05/2.141, allocations: 13.38 kB / 0.7772 GB, free: 12.27 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.036e-05/2.141, allocations: 12.59 kB / 0.7773 GB, free: 12.27 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003545/2.141, allocations: 215.9 kB / 0.7775 GB, free: 12.24 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.00768/2.149, allocations: 6.08 MB / 0.7834 GB, free: 7.109 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001263/2.149, allocations: 59.03 kB / 0.7835 GB, free: 7.082 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.978e-05/2.149, allocations: 20.73 kB / 0.7835 GB, free: 7.07 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1443/2.293, allocations: 71.39 MB / 0.8532 GB, free: 15.09 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.93e-05/2.294, allocations: 39 kB / 0.8532 GB, free: 15.04 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=5): time 1.694e-06/2.294, allocations: 4 kB / 0.8532 GB, free: 15.04 MB / 0.6856 GB Notification: Performance of matching and sorting (n=5): time 0.0006696/2.294, allocations: 216 kB / 0.8534 GB, free: 14.82 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.506e-05/2.294, allocations: 56.7 kB / 0.8535 GB, free: 14.76 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003416/2.295, allocations: 277.5 kB / 0.8538 GB, free: 14.53 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 1.279e-05/2.295, allocations: 26.33 kB / 0.8538 GB, free: 14.5 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001481/2.295, allocations: 232 kB / 0.854 GB, free: 14.3 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 1.842e-05/2.295, allocations: 18.88 kB / 0.854 GB, free: 14.28 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.832e-05/2.295, allocations: 57.86 kB / 0.8541 GB, free: 14.23 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 0.0001087/2.295, allocations: 335.8 kB / 0.8544 GB, free: 13.91 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.351e-05/2.295, allocations: 34.92 kB / 0.8544 GB, free: 13.88 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001444/2.295, allocations: 141.2 kB / 0.8546 GB, free: 13.72 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002318/2.296, allocations: 188.8 kB / 0.8547 GB, free: 13.54 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.476e-06/2.296, allocations: 4 kB / 0.8547 GB, free: 13.53 MB / 0.6856 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004639/2.296, allocations: 243.4 kB / 0.855 GB, free: 13.35 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 1.893e-05/2.296, allocations: 9.25 kB / 0.855 GB, free: 13.34 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.785e-06/2.296, allocations: 0 / 0.855 GB, free: 13.34 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007526/2.297, allocations: 121.7 kB / 0.8551 GB, free: 13.23 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001321/2.297, allocations: 35.17 kB / 0.8551 GB, free: 13.2 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003933/2.297, allocations: 0.5631 MB / 0.8557 GB, free: 12.63 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001581/2.298, allocations: 27.06 kB / 0.8557 GB, free: 12.61 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.903e-05/2.298, allocations: 18.12 kB / 0.8557 GB, free: 12.59 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.000155/2.298, allocations: 158.1 kB / 0.8559 GB, free: 12.45 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.755e-05/2.298, allocations: 19.72 kB / 0.8559 GB, free: 12.43 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003091/2.298, allocations: 131.6 kB / 0.856 GB, free: 12.31 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/2.298, allocations: 4 kB / 0.856 GB, free: 12.3 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.568e-06/2.298, allocations: 3.094 kB / 0.856 GB, free: 12.3 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.735e-06/2.298, allocations: 1.094 kB / 0.856 GB, free: 12.3 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002911/2.298, allocations: 285.3 kB / 0.8563 GB, free: 12.02 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/2.298, allocations: 0.7031 kB / 0.8563 GB, free: 12.02 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.324e-05/2.298, allocations: 0 / 0.8563 GB, free: 12.02 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003793/2.299, allocations: 81.64 kB / 0.8564 GB, free: 11.95 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.007e-06/2.299, allocations: 5.172 kB / 0.8564 GB, free: 11.94 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003448/2.299, allocations: 0.5557 MB / 0.8569 GB, free: 11.38 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.193e-06/2.299, allocations: 3.188 kB / 0.8569 GB, free: 11.38 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002302/2.299, allocations: 137.5 kB / 0.8571 GB, free: 11.24 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 6.747e-05/2.299, allocations: 104.2 kB / 0.8572 GB, free: 11.12 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.908e-05/2.3, allocations: 5.188 kB / 0.8572 GB, free: 11.12 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.558e-05/2.3, allocations: 2.625 kB / 0.8572 GB, free: 11.12 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.332e-05/2.3, allocations: 7.188 kB / 0.8572 GB, free: 11.12 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.489e-06/2.3, allocations: 0 / 0.8572 GB, free: 11.12 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.0001878/2.3, allocations: 203 kB / 0.8574 GB, free: 10.96 MB / 0.6856 GB Notification: Performance of sort global known variables: time 1.3e-07/2.3, allocations: 0 / 0.8574 GB, free: 10.96 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.003592/2.303, allocations: 1.439 MB / 0.8588 GB, free: 9.621 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.006909/2.31, allocations: 2.196 MB / 0.8609 GB, free: 7.746 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.0004062/2.311, allocations: 113 kB / 0.861 GB, free: 7.668 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/2.311, allocations: 0 / 0.861 GB, free: 7.668 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.0001102/2.311, allocations: 28.97 kB / 0.8611 GB, free: 7.645 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004285/2.311, allocations: 78.42 kB / 0.8611 GB, free: 7.594 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008056/2.312, allocations: 454.2 kB / 0.8616 GB, free: 7.145 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000295/2.312, allocations: 0.7539 MB / 0.8623 GB, free: 6.367 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.145e-05/2.313, allocations: 27.44 kB / 0.8623 GB, free: 6.34 MB / 0.6856 GB Notification: Performance of SimCode: time 2e-07/2.313, allocations: 0 / 0.8623 GB, free: 6.34 MB / 0.6856 GB Notification: Performance of Templates: time 0.03795/2.351, allocations: 28.65 MB / 0.8903 GB, free: 9.762 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)