Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestLumpedStraightPipe.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.Book.SimpleExamples.PressureLoss.TestLumpedStraightPipe,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestLumpedStraightPipe") translateModel(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestLumpedStraightPipe,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestLumpedStraightPipe") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.7887/0.7887, allocations: 150.9 MB / 166 MB, free: 14.64 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000262/0.000262, allocations: 7.984 kB / 204 MB, free: 10.15 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1398/0.1401, allocations: 31.33 MB / 235.4 MB, free: 5.453 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.Book.SimpleExamples.PressureLoss.TestLumpedStraightPipe): time 1.547/1.688, allocations: 293.7 MB / 0.5167 GB, free: 12.76 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.1796/1.867, allocations: 183.7 MB / 0.6961 GB, free: 4.711 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004013/1.868, allocations: 4 kB / 0.6961 GB, free: 4.707 MB / 0.5762 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/Volumes/Tank.mo:71:3-72:53:writable] Warning: Connector Ce1 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/Volumes/Tank.mo:73:3-74:53:writable] Warning: Connector Cs2 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/Volumes/Tank.mo:78:3-79:55:writable] Warning: Connector Ce2 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/Volumes/Tank.mo:80:3-81:51:writable] Warning: Connector Cs1 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/Volumes/Tank.mo:71:3-72:53:writable] Warning: Connector Ce1 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/Volumes/Tank.mo:73:3-74:53:writable] Warning: Connector Cs2 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/Volumes/Tank.mo:78:3-79:55:writable] Warning: Connector Ce2 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/Volumes/Tank.mo:80:3-81:51:writable] Warning: Connector Cs1 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/LumpedStraightPipe.mo:49:3-50: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/LumpedStraightPipe.mo:51:3-53: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.000443/1.868, allocations: 112.2 kB / 0.6962 GB, free: 4.598 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0003588/1.868, allocations: 166.7 kB / 0.6963 GB, free: 4.434 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.3148/2.183, allocations: 7.841 MB / 0.704 GB, free: 6.617 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001295/2.185, allocations: 0.8748 MB / 0.7048 GB, free: 6.617 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004286/2.185, allocations: 309 kB / 0.7051 GB, free: 6.594 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005106/2.186, allocations: 333.5 kB / 0.7054 GB, free: 6.594 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004034/2.186, allocations: 376.5 kB / 0.7058 GB, free: 6.594 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 8.648e-05/2.186, allocations: 40.44 kB / 0.7058 GB, free: 6.594 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0296/2.216, allocations: 17.22 MB / 0.7227 GB, free: 6.527 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0004253/2.216, allocations: 132.8 kB / 0.7228 GB, free: 6.527 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0005784/2.217, allocations: 322 kB / 0.7231 GB, free: 6.527 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.02084/2.238, allocations: 9.326 MB / 0.7322 GB, free: 6.238 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 9.057e-06/2.238, allocations: 3.344 kB / 0.7322 GB, free: 6.238 MB / 0.5762 GB Notification: Performance of FrontEnd: time 2.585e-06/2.238, allocations: 1.5 kB / 0.7322 GB, free: 6.238 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.044e-05/2.238, allocations: 1.094 kB / 0.7322 GB, free: 6.238 MB / 0.5762 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.008439/2.246, allocations: 2.263 MB / 0.7344 GB, free: 5.184 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.769e-05/2.246, allocations: 10.03 kB / 0.7344 GB, free: 5.184 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001377/2.246, allocations: 69.52 kB / 0.7345 GB, free: 5.148 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003842/2.247, allocations: 374.3 kB / 0.7348 GB, free: 4.895 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.504e-05/2.247, allocations: 96.48 kB / 0.7349 GB, free: 4.832 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.435e-05/2.247, allocations: 53.08 kB / 0.735 GB, free: 4.828 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001869/2.249, allocations: 0.879 MB / 0.7358 GB, free: 4.566 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.871e-05/2.249, allocations: 6.5 kB / 0.7359 GB, free: 4.566 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.602e-05/2.249, allocations: 18.03 kB / 0.7359 GB, free: 4.566 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.73e-05/2.249, allocations: 19.69 kB / 0.7359 GB, free: 4.566 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002586/2.251, allocations: 0.9293 MB / 0.7368 GB, free: 4.332 MB / 0.5762 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.003552/2.255, allocations: 3.92 MB / 0.7406 GB, free: 17.17 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00228/2.257, allocations: 0.6973 MB / 0.7413 GB, free: 16.98 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001167/2.258, allocations: 408.9 kB / 0.7417 GB, free: 16.88 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2231/2.482, allocations: 117.3 MB / 0.8563 GB, free: 10.21 MB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.824e-05/2.482, allocations: 42.94 kB / 0.8563 GB, free: 10.17 MB / 0.7012 GB Notification: Performance of pre-optimization done (n=71): time 2.856e-06/2.482, allocations: 0 / 0.8563 GB, free: 10.17 MB / 0.7012 GB Notification: Performance of matching and sorting (n=71): time 0.004601/2.486, allocations: 1.467 MB / 0.8577 GB, free: 8.922 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.931e-05/2.486, allocations: 55.41 kB / 0.8578 GB, free: 8.855 MB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000482/2.487, allocations: 398 kB / 0.8582 GB, free: 8.531 MB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 6.393e-05/2.487, allocations: 33.73 kB / 0.8582 GB, free: 8.5 MB / 0.7012 GB Notification: Performance of collectInitialEqns (initialization): time 0.000177/2.487, allocations: 286.5 kB / 0.8585 GB, free: 8.273 MB / 0.7012 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001878/2.487, allocations: 243.5 kB / 0.8587 GB, free: 8.066 MB / 0.7012 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002285/2.488, allocations: 166.1 kB / 0.8589 GB, free: 7.953 MB / 0.7012 GB Notification: Performance of setup shared object (initialization): time 0.0001436/2.488, allocations: 363.2 kB / 0.8592 GB, free: 7.613 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001214/2.489, allocations: 384.7 kB / 0.8596 GB, free: 7.324 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001343/2.49, allocations: 0.6379 MB / 0.8602 GB, free: 6.688 MB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002539/2.493, allocations: 1.047 MB / 0.8612 GB, free: 5.773 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.238e-06/2.493, allocations: 4 kB / 0.8612 GB, free: 5.77 MB / 0.7012 GB Notification: Performance of matching and sorting (n=114) (initialization): time 0.003525/2.496, allocations: 1.272 MB / 0.8625 GB, free: 4.809 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 2.705e-05/2.496, allocations: 11.98 kB / 0.8625 GB, free: 4.797 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.312e-05/2.496, allocations: 8 kB / 0.8625 GB, free: 4.789 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002682/2.499, allocations: 0.6156 MB / 0.8631 GB, free: 4.223 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00137/2.501, allocations: 281.2 kB / 0.8634 GB, free: 3.961 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001818/2.502, allocations: 1.964 MB / 0.8653 GB, free: 2.105 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000958/2.503, allocations: 169.6 kB / 0.8654 GB, free: 1.949 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.065e-05/2.503, allocations: 38.92 kB / 0.8655 GB, free: 1.918 MB / 0.7012 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 38 * Number of states: 0 () * Number of discrete variables: 16 (lumpedStraightPipe.C2.b,lumpedStraightPipe.C1.a,tank2.Cs1.b,tank2.Ce2.a,tank2.Cs2.b,tank2.Ce1.a,tank1.Cs1.b,tank1.Ce2.a,tank1.Cs2.b,tank1.Ce1.a,tank2.Cs2.a,tank2.Cs1.a,tank2.Ce1.b,tank1.Cs1.a,tank1.Ce2.b,tank1.Ce1.b) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (74): * Single equations (assignments): 71 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(3,9), (1,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0002872/2.504, allocations: 200 kB / 0.8657 GB, free: 1.762 MB / 0.7012 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001354/2.504, allocations: 51.34 kB / 0.8657 GB, free: 1.711 MB / 0.7012 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003329/2.507, allocations: 1.411 MB / 0.8671 GB, free: 0.6914 MB / 0.7012 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.002762/2.51, allocations: 1.117 MB / 0.8682 GB, free: 15.83 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.468e-06/2.51, allocations: 1.203 kB / 0.8682 GB, free: 15.83 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.026e-05/2.51, allocations: 3.984 kB / 0.8682 GB, free: 15.82 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004858/2.515, allocations: 2.302 MB / 0.8704 GB, free: 14.04 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5e-06/2.515, allocations: 1.203 kB / 0.8704 GB, free: 14.04 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001841/2.517, allocations: 335.5 kB / 0.8708 GB, free: 13.72 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003591/2.517, allocations: 214.7 kB / 0.871 GB, free: 13.54 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.764e-05/2.517, allocations: 14.12 kB / 0.871 GB, free: 13.53 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008329/2.518, allocations: 1.22 MB / 0.8722 GB, free: 12.34 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.178e-06/2.518, allocations: 4.031 kB / 0.8722 GB, free: 12.34 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00435/2.522, allocations: 1.814 MB / 0.8739 GB, free: 10.96 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003023/2.523, allocations: 204.5 kB / 0.8741 GB, free: 10.76 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000109/2.523, allocations: 17.88 kB / 0.8742 GB, free: 10.76 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008146/2.524, allocations: 106.3 kB / 0.8743 GB, free: 10.66 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001612/2.524, allocations: 73.89 kB / 0.8743 GB, free: 10.61 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.839e-05/2.524, allocations: 23.5 kB / 0.8743 GB, free: 10.59 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0002736/2.524, allocations: 263.9 kB / 0.8746 GB, free: 10.38 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/2.524, allocations: 0 / 0.8746 GB, free: 10.38 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.004469/2.529, allocations: 1.46 MB / 0.876 GB, free: 9.027 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (tank1.z,tank1.h,tank2.z,tank2.h,lumpedStraightPipe.Q) * 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 (83): * Single equations (assignments): 80 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,1), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.008163/2.537, allocations: 2.186 MB / 0.8782 GB, free: 7.172 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.003775/2.541, allocations: 1.224 MB / 0.8794 GB, free: 6.195 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.887e-06/2.541, allocations: 1.875 kB / 0.8794 GB, free: 6.195 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.001755/2.542, allocations: 0.5857 MB / 0.8799 GB, free: 5.762 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001498/2.544, allocations: 212.9 kB / 0.8801 GB, free: 5.605 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003498/2.547, allocations: 1.903 MB / 0.882 GB, free: 3.852 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004991/2.548, allocations: 0.9324 MB / 0.8829 GB, free: 2.891 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0005478/2.549, allocations: 96.86 kB / 0.883 GB, free: 2.793 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000237/2.549, allocations: 63.09 kB / 0.8831 GB, free: 2.734 MB / 0.7169 GB Notification: Performance of SimCode: time 1.042e-06/2.549, allocations: 4 kB / 0.8831 GB, free: 2.73 MB / 0.7169 GB Notification: Performance of Templates: time 0.07597/2.625, allocations: 52.51 MB / 0.9343 GB, free: 14.54 MB / 0.7794 GB make -j1 -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestLumpedStraightPipe.makefile (rm -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestLumpedStraightPipe.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestLumpedStraightPipe.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestLumpedStraightPipe.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestLumpedStraightPipe.sim & ./ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestLumpedStraightPipe -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestLumpedStraightPipe.pipe 2>&1)