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.8244/0.8244, allocations: 150.9 MB / 166 MB, free: 14.61 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000273/0.0002731, allocations: 11.98 kB / 204 MB, free: 10.12 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1386/0.1389, allocations: 31.32 MB / 235.3 MB, free: 5.691 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.569/1.708, allocations: 292.7 MB / 0.5157 GB, free: 14.02 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.04104/1.749, allocations: 37.55 MB / 0.5523 GB, free: 8.609 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001905/1.749, allocations: 4 kB / 0.5523 GB, free: 8.605 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.0004194/1.75, allocations: 80.25 kB / 0.5524 GB, free: 8.527 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002289/1.75, allocations: 91.3 kB / 0.5525 GB, free: 8.438 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01958/1.769, allocations: 7.158 MB / 0.5595 GB, free: 1.277 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004683/1.77, allocations: 322.4 kB / 0.5598 GB, free: 0.9609 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002095/1.77, allocations: 106 kB / 0.5599 GB, free: 0.8594 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002217/1.77, allocations: 123.3 kB / 0.56 GB, free: 0.7383 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001453/1.77, allocations: 115.4 kB / 0.5601 GB, free: 0.625 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.474e-05/1.77, allocations: 12 kB / 0.5601 GB, free: 0.6133 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03065/1.801, allocations: 17.73 MB / 0.5774 GB, free: 14.86 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001079/1.801, allocations: 43.77 kB / 0.5775 GB, free: 14.81 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000204/1.801, allocations: 123.4 kB / 0.5776 GB, free: 14.69 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01841/1.82, allocations: 8.425 MB / 0.5858 GB, free: 6.246 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.673e-06/1.82, allocations: 0 / 0.5858 GB, free: 6.246 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.573e-06/1.82, allocations: 0 / 0.5858 GB, free: 6.246 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.302e-05/1.82, allocations: 0 / 0.5858 GB, free: 6.246 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.003655/1.824, allocations: 1.435 MB / 0.5872 GB, free: 4.762 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.757e-05/1.824, allocations: 11.97 kB / 0.5872 GB, free: 4.75 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.974e-05/1.824, allocations: 39.56 kB / 0.5873 GB, free: 4.711 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002289/1.824, allocations: 223.8 kB / 0.5875 GB, free: 4.453 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.617e-05/1.824, allocations: 12.44 kB / 0.5875 GB, free: 4.438 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.319e-05/1.824, allocations: 26.14 kB / 0.5875 GB, free: 4.414 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004136/1.824, allocations: 291.4 kB / 0.5878 GB, free: 4.105 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.31e-05/1.825, allocations: 11.94 kB / 0.5878 GB, free: 4.094 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.967e-05/1.825, allocations: 8 kB / 0.5878 GB, free: 4.086 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.582e-05/1.825, allocations: 15.98 kB / 0.5878 GB, free: 4.07 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002486/1.825, allocations: 161.1 kB / 0.588 GB, free: 3.914 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.03544/1.86, allocations: 18.01 MB / 0.6056 GB, free: 24 kB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003438/1.861, allocations: 139.5 kB / 0.6057 GB, free: 15.88 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001146/1.861, allocations: 92.83 kB / 0.6058 GB, free: 15.78 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1469/2.008, allocations: 77.26 MB / 0.6813 GB, free: 9.754 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.176e-05/2.008, allocations: 30.56 kB / 0.6813 GB, free: 9.715 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=34): time 2.154e-06/2.008, allocations: 0 / 0.6813 GB, free: 9.715 MB / 0.5762 GB Notification: Performance of matching and sorting (n=34): time 0.001041/2.009, allocations: 455.3 kB / 0.6817 GB, free: 9.242 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.68e-05/2.009, allocations: 51.41 kB / 0.6818 GB, free: 9.18 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002452/2.009, allocations: 227 kB / 0.682 GB, free: 8.949 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.563e-05/2.009, allocations: 33.64 kB / 0.682 GB, free: 8.91 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 8.701e-05/2.009, allocations: 144.5 kB / 0.6822 GB, free: 8.766 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 9.672e-05/2.009, allocations: 110.3 kB / 0.6823 GB, free: 8.656 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.045e-05/2.009, allocations: 49.64 kB / 0.6823 GB, free: 8.602 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001173/2.009, allocations: 334.8 kB / 0.6826 GB, free: 8.266 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001169/2.01, allocations: 71.97 kB / 0.6827 GB, free: 8.195 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001332/2.01, allocations: 117.2 kB / 0.6828 GB, free: 8.066 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002701/2.01, allocations: 208.5 kB / 0.683 GB, free: 7.848 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/2.01, allocations: 0 / 0.683 GB, free: 7.848 MB / 0.5762 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0004342/2.01, allocations: 301.6 kB / 0.6833 GB, free: 7.543 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.99e-05/2.01, allocations: 13.5 kB / 0.6833 GB, free: 7.531 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.392e-06/2.011, allocations: 0 / 0.6833 GB, free: 7.531 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009204/2.011, allocations: 158.5 kB / 0.6835 GB, free: 7.375 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.185e-05/2.011, allocations: 15.94 kB / 0.6835 GB, free: 7.359 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005048/2.012, allocations: 0.6265 MB / 0.6841 GB, free: 6.707 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001198/2.012, allocations: 28.56 kB / 0.6841 GB, free: 6.68 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.429e-05/2.012, allocations: 8.047 kB / 0.6841 GB, free: 6.672 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.0001284/2.012, allocations: 145.7 kB / 0.6843 GB, free: 6.52 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.267e-05/2.012, allocations: 19.72 kB / 0.6843 GB, free: 6.5 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000736/2.013, allocations: 0.6032 MB / 0.6849 GB, free: 5.824 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003831/2.013, allocations: 222.3 kB / 0.6851 GB, free: 5.598 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.441e-06/2.013, allocations: 0 / 0.6851 GB, free: 5.598 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.398e-06/2.014, allocations: 0.9844 kB / 0.6851 GB, free: 5.598 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009393/2.014, allocations: 0.7323 MB / 0.6858 GB, free: 4.809 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.324e-06/2.014, allocations: 0 / 0.6858 GB, free: 4.809 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.123e-05/2.015, allocations: 12 kB / 0.6858 GB, free: 4.797 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005037/2.015, allocations: 149.6 kB / 0.686 GB, free: 4.648 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.177e-05/2.015, allocations: 4 kB / 0.686 GB, free: 4.645 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004434/2.016, allocations: 0.6512 MB / 0.6866 GB, free: 3.969 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/2.016, allocations: 0 / 0.6866 GB, free: 3.969 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004367/2.016, allocations: 345 kB / 0.6869 GB, free: 3.613 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 7.563e-05/2.016, allocations: 104.8 kB / 0.687 GB, free: 3.492 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.472e-05/2.016, allocations: 15.84 kB / 0.687 GB, free: 3.477 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001078/2.016, allocations: 3.938 kB / 0.687 GB, free: 3.473 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.987e-05/2.016, allocations: 11.98 kB / 0.6871 GB, free: 3.461 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.374e-06/2.016, allocations: 4 kB / 0.6871 GB, free: 3.457 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002281/2.016, allocations: 237.9 kB / 0.6873 GB, free: 3.227 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.9e-07/2.017, allocations: 4 kB / 0.6873 GB, free: 3.223 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.00297/2.019, allocations: 1.187 MB / 0.6885 GB, free: 2.035 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.004907/2.024, allocations: 1.779 MB / 0.6902 GB, free: 268 kB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0005154/2.025, allocations: 237.5 kB / 0.6904 GB, free: 24 kB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/2.025, allocations: 0 / 0.6904 GB, free: 24 kB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.1561/2.181, allocations: 84.94 kB / 0.6905 GB, free: 226.4 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009121/2.182, allocations: 115.5 kB / 0.6906 GB, free: 226.4 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008282/2.183, allocations: 0.6037 MB / 0.6912 GB, free: 226.1 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001808/2.183, allocations: 0.7693 MB / 0.6919 GB, free: 225.4 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 9.462e-05/2.183, allocations: 16.75 kB / 0.692 GB, free: 225.4 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.282e-05/2.183, allocations: 24.39 kB / 0.692 GB, free: 225.4 MB / 0.5762 GB Notification: Performance of SimCode: time 9.32e-07/2.183, allocations: 0 / 0.692 GB, free: 225.4 MB / 0.5762 GB Notification: Performance of Templates: time 0.04792/2.231, allocations: 42.44 MB / 0.7334 GB, free: 206.9 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)