Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss.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.TestPipePressureLoss,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss") translateModel(ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8149/0.8149, allocations: 150.8 MB / 166.7 MB, free: 14.54 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003209/0.000321, allocations: 23.97 kB / 204.8 MB, free: 10.05 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1571/0.1574, allocations: 31.32 MB / 236.1 MB, free: 5.68 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.TestPipePressureLoss): time 1.6/1.757, allocations: 293.6 MB / 0.5173 GB, free: 13.56 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.04124/1.799, allocations: 34.64 MB / 0.5512 GB, free: 11.06 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000226/1.799, allocations: 0 / 0.5512 GB, free: 11.06 MB / 446.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/BoundaryConditions/SourceP.mo:30:3-31:45: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/PipePressureLoss.mo:35:3-37:42: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/PipePressureLoss.mo:38:3-40:37: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.0003718/1.799, allocations: 104.4 kB / 0.5513 GB, free: 10.96 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001771/1.8, allocations: 75.38 kB / 0.5513 GB, free: 10.88 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.02268/1.822, allocations: 8.395 MB / 0.5595 GB, free: 2.484 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004928/1.823, allocations: 342.4 kB / 0.5599 GB, free: 2.148 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001907/1.823, allocations: 113.3 kB / 0.56 GB, free: 2.043 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001997/1.823, allocations: 143.3 kB / 0.5601 GB, free: 1.902 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001322/1.823, allocations: 115.4 kB / 0.5602 GB, free: 1.789 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.351e-05/1.823, allocations: 16 kB / 0.5602 GB, free: 1.773 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02952/1.853, allocations: 17.75 MB / 0.5776 GB, free: 15.99 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 8.953e-05/1.853, allocations: 39.75 kB / 0.5776 GB, free: 15.96 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002175/1.853, allocations: 135.3 kB / 0.5777 GB, free: 15.82 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0117/1.865, allocations: 5.704 MB / 0.5833 GB, free: 10.11 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.045e-06/1.865, allocations: 0 / 0.5833 GB, free: 10.11 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.274e-06/1.865, allocations: 4 kB / 0.5833 GB, free: 10.1 MB / 478.1 MB Notification: Performance of Transformations before backend: time 8.927e-06/1.865, allocations: 0 / 0.5833 GB, free: 10.1 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.005399/1.87, allocations: 1.439 MB / 0.5847 GB, free: 8.613 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.975e-05/1.87, allocations: 8.031 kB / 0.5847 GB, free: 8.605 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.797e-05/1.871, allocations: 31.56 kB / 0.5848 GB, free: 8.574 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002572/1.871, allocations: 231.3 kB / 0.585 GB, free: 8.309 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.388e-05/1.871, allocations: 17.05 kB / 0.585 GB, free: 8.293 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.029e-05/1.871, allocations: 16 kB / 0.585 GB, free: 8.277 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004571/1.871, allocations: 303.3 kB / 0.5853 GB, free: 7.953 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.099e-05/1.871, allocations: 0 / 0.5853 GB, free: 7.953 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.476e-05/1.871, allocations: 10.3 kB / 0.5853 GB, free: 7.945 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.811e-05/1.871, allocations: 11.98 kB / 0.5853 GB, free: 7.934 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002663/1.872, allocations: 173 kB / 0.5855 GB, free: 7.766 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.03616/1.908, allocations: 18.02 MB / 0.6031 GB, free: 3.875 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003293/1.908, allocations: 134.6 kB / 0.6032 GB, free: 3.734 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001117/1.908, allocations: 84.84 kB / 0.6033 GB, free: 3.648 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.147/2.055, allocations: 77.27 MB / 0.6787 GB, free: 13.61 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.084e-05/2.055, allocations: 38.56 kB / 0.6788 GB, free: 13.56 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=34): time 2.986e-06/2.055, allocations: 0 / 0.6788 GB, free: 13.56 MB / 0.5762 GB Notification: Performance of matching and sorting (n=34): time 0.001046/2.056, allocations: 447.3 kB / 0.6792 GB, free: 13.09 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.652e-05/2.056, allocations: 55.41 kB / 0.6793 GB, free: 13.03 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002432/2.057, allocations: 215.1 kB / 0.6795 GB, free: 12.81 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.793e-05/2.057, allocations: 25.7 kB / 0.6795 GB, free: 12.78 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001068/2.057, allocations: 156.5 kB / 0.6796 GB, free: 12.62 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 8.133e-05/2.057, allocations: 110.2 kB / 0.6797 GB, free: 12.51 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.674e-05/2.057, allocations: 57.59 kB / 0.6798 GB, free: 12.45 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001393/2.057, allocations: 330.8 kB / 0.6801 GB, free: 12.12 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001052/2.057, allocations: 71.97 kB / 0.6802 GB, free: 12.05 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001414/2.057, allocations: 116.2 kB / 0.6803 GB, free: 11.92 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002715/2.058, allocations: 212.6 kB / 0.6805 GB, free: 11.7 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.108e-06/2.058, allocations: 4 kB / 0.6805 GB, free: 11.69 MB / 0.5762 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0004351/2.058, allocations: 289.6 kB / 0.6808 GB, free: 11.4 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.004e-05/2.058, allocations: 7.938 kB / 0.6808 GB, free: 11.39 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.042e-05/2.058, allocations: 12.11 kB / 0.6808 GB, free: 11.38 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000918/2.059, allocations: 154.5 kB / 0.6809 GB, free: 11.23 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.687e-05/2.059, allocations: 12 kB / 0.681 GB, free: 11.21 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005387/2.06, allocations: 0.6277 MB / 0.6816 GB, free: 10.56 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001268/2.06, allocations: 31.61 kB / 0.6816 GB, free: 10.53 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.18e-05/2.06, allocations: 4 kB / 0.6816 GB, free: 10.53 MB / 0.5762 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 (pipePressureLoss.C2.b,pipePressureLoss.C1.a,PuitsP1.C.a,SourceP1.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): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001299/2.06, allocations: 137.8 kB / 0.6817 GB, free: 10.38 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.684e-05/2.06, allocations: 23.78 kB / 0.6818 GB, free: 10.36 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007535/2.061, allocations: 0.6065 MB / 0.6823 GB, free: 9.684 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003579/2.061, allocations: 222.4 kB / 0.6826 GB, free: 9.457 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.254e-06/2.061, allocations: 3.984 kB / 0.6826 GB, free: 9.453 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.877e-06/2.061, allocations: 0 / 0.6826 GB, free: 9.453 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001/2.062, allocations: 0.7312 MB / 0.6833 GB, free: 8.664 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/2.062, allocations: 0 / 0.6833 GB, free: 8.664 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.062e-05/2.062, allocations: 15.98 kB / 0.6833 GB, free: 8.648 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000379/2.063, allocations: 112.8 kB / 0.6834 GB, free: 8.535 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.151e-05/2.063, allocations: 0 / 0.6834 GB, free: 8.535 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004976/2.063, allocations: 0.6626 MB / 0.684 GB, free: 7.848 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.589e-06/2.063, allocations: 3.984 kB / 0.684 GB, free: 7.844 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004624/2.064, allocations: 333.6 kB / 0.6844 GB, free: 7.5 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001003/2.064, allocations: 104.8 kB / 0.6845 GB, free: 7.379 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.931e-05/2.064, allocations: 27.83 kB / 0.6845 GB, free: 7.352 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001073/2.064, allocations: 7.938 kB / 0.6845 GB, free: 7.344 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.87e-05/2.064, allocations: 7.984 kB / 0.6845 GB, free: 7.336 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.356e-06/2.064, allocations: 7.938 kB / 0.6845 GB, free: 7.328 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002324/2.064, allocations: 234 kB / 0.6847 GB, free: 7.105 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2.11e-07/2.064, allocations: 0 / 0.6847 GB, free: 7.105 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.003172/2.068, allocations: 1.191 MB / 0.6859 GB, free: 5.914 MB / 0.5762 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 (11): * Single equations (assignments): 10 * 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,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.006285/2.074, allocations: 1.785 MB / 0.6876 GB, free: 4.145 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0006976/2.075, allocations: 234.6 kB / 0.6879 GB, free: 3.91 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 5.471e-06/2.075, allocations: 8.25 kB / 0.6879 GB, free: 3.902 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0002372/2.075, allocations: 99.67 kB / 0.688 GB, free: 3.805 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008134/2.076, allocations: 119.6 kB / 0.6881 GB, free: 3.688 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001043/2.077, allocations: 0.6411 MB / 0.6887 GB, free: 3.016 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000366/2.077, allocations: 0.7675 MB / 0.6895 GB, free: 2.223 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.252e-05/2.077, allocations: 19.44 kB / 0.6895 GB, free: 2.203 MB / 0.5762 GB Notification: Performance of SimCode: time 4.51e-07/2.077, allocations: 0 / 0.6895 GB, free: 2.203 MB / 0.5762 GB Notification: Performance of Templates: time 0.2126/2.29, allocations: 24.88 MB / 0.7138 GB, free: 220.3 MB / 0.5762 GB make -j1 -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss.makefile (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss.sim & ./ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss.pipe 2>&1)