Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.HeatExchanger.TestDynamicOnePhaseFlowShell.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.HeatExchanger.TestDynamicOnePhaseFlowShell,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.HeatExchanger.TestDynamicOnePhaseFlowShell") translateModel(ThermoSysPro.Examples.Book.SimpleExamples.HeatExchanger.TestDynamicOnePhaseFlowShell,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.HeatExchanger.TestDynamicOnePhaseFlowShell") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.7364/0.7364, allocations: 150.8 MB / 166.1 MB, free: 15.42 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.138e-05/1.148e-05, allocations: 0 / 204.8 MB, free: 10.07 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1346/0.1346, allocations: 31.97 MB / 236.8 MB, free: 5.426 MB / 190.1 MB Notification: Automatically loaded package Complex 4.0.0 due to uses annotation. Notification: Automatically loaded package ModelicaServices 4.0.0 due to uses annotation. Notification: Automatically loaded package Modelica 4.0.0 due to usage. Notification: Performance of NFInst.instantiate(ThermoSysPro.Examples.Book.SimpleExamples.HeatExchanger.TestDynamicOnePhaseFlowShell): time 1.416/1.551, allocations: 294.8 MB / 0.5191 GB, free: 12.12 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.02829/1.579, allocations: 27.41 MB / 0.5458 GB, free: 0.8945 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003095/1.58, allocations: 8 kB / 0.5459 GB, free: 0.8867 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004361/1.58, allocations: 171.1 kB / 0.546 GB, free: 0.7188 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006231/1.581, allocations: 390.1 kB / 0.5464 GB, free: 344 kB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01308/1.594, allocations: 5.609 MB / 0.5519 GB, free: 10.73 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.003868/1.598, allocations: 4.967 MB / 0.5567 GB, free: 5.75 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00141/1.599, allocations: 1.429 MB / 0.5581 GB, free: 4.316 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001479/1.601, allocations: 1.394 MB / 0.5595 GB, free: 2.918 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001916/1.602, allocations: 1.713 MB / 0.5611 GB, free: 1.199 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002536/1.603, allocations: 124 kB / 0.5613 GB, free: 1.078 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01878/1.622, allocations: 13.31 MB / 0.5743 GB, free: 3.754 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009521/1.623, allocations: 0.9814 MB / 0.5752 GB, free: 2.77 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001761/1.624, allocations: 1.506 MB / 0.5767 GB, free: 1.25 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01323/1.638, allocations: 9.102 MB / 0.5856 GB, free: 8.125 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/1.638, allocations: 0 / 0.5856 GB, free: 8.125 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.914e-06/1.638, allocations: 0 / 0.5856 GB, free: 8.125 MB / 478.1 MB Notification: Performance of Transformations before backend: time 3.379e-05/1.638, allocations: 0 / 0.5856 GB, free: 8.125 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: 808 * Number of variables: 808 Notification: Performance of Generate backend data structure: time 0.01123/1.649, allocations: 3.608 MB / 0.5891 GB, free: 4.457 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.644e-05/1.649, allocations: 8.031 kB / 0.5891 GB, free: 4.449 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004505/1.649, allocations: 269.5 kB / 0.5894 GB, free: 4.184 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001421/1.651, allocations: 1.053 MB / 0.5904 GB, free: 3.086 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001109/1.651, allocations: 155.5 kB / 0.5905 GB, free: 2.934 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003871/1.651, allocations: 203.8 kB / 0.5907 GB, free: 2.734 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00579/1.657, allocations: 3.954 MB / 0.5946 GB, free: 14.73 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.444e-05/1.657, allocations: 0 / 0.5946 GB, free: 14.73 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000221/1.657, allocations: 76 kB / 0.5947 GB, free: 14.65 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.628e-05/1.657, allocations: 115.8 kB / 0.5948 GB, free: 14.54 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005808/1.663, allocations: 3.506 MB / 0.5982 GB, free: 11.03 MB / 494.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.0141/1.677, allocations: 13.02 MB / 0.6109 GB, free: 13.01 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006608/1.684, allocations: 3.476 MB / 0.6143 GB, free: 9.527 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003995/1.688, allocations: 2.643 MB / 0.6169 GB, free: 6.875 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07646/1.765, allocations: 37.23 MB / 0.6533 GB, free: 14.25 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.392e-05/1.765, allocations: 56.56 kB / 0.6533 GB, free: 14.19 MB / 0.545 GB Notification: Performance of pre-optimization done (n=582): time 3.637e-06/1.765, allocations: 0 / 0.6533 GB, free: 14.19 MB / 0.545 GB Notification: Performance of matching and sorting (n=582): time 0.02213/1.787, allocations: 10.89 MB / 0.6639 GB, free: 2.793 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.62e-05/1.787, allocations: 77.41 kB / 0.664 GB, free: 2.703 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007084/1.788, allocations: 0.6396 MB / 0.6646 GB, free: 2.055 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0002668/1.788, allocations: 69.7 kB / 0.6647 GB, free: 1.98 MB / 0.545 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/BoundaryConditions/SinkP.mo:3:3-3:64:writable] Warning: The parameter sinkP.P0 has fixed = false and a binding equation sinkP.P0 = 1900000.0, which is probably redundant. Setting fixed = false usually means there is an additional initial equation to determine the parameter value. The binding was ignored by old Modelica tools, but this is not according to the Modelica specification. Please remove the parameter binding, or bind the parameter to another parameter with fixed = false and no binding. Notification: Performance of collectInitialEqns (initialization): time 0.0002974/1.788, allocations: 488 kB / 0.6652 GB, free: 1.496 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001319/1.789, allocations: 1.932 MB / 0.6671 GB, free: 15.53 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004443/1.79, allocations: 368.7 kB / 0.6674 GB, free: 15.16 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001048/1.79, allocations: 345.9 kB / 0.6677 GB, free: 14.82 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003824/1.794, allocations: 2.26 MB / 0.6699 GB, free: 12.55 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004076/1.798, allocations: 2.638 MB / 0.6725 GB, free: 9.848 MB / 0.5606 GB Notification: It was not possible to check the given initialization system for consistency symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. Notification: Performance of analyzeInitialSystem (initialization): time 0.07368/1.872, allocations: 17.08 MB / 0.6892 GB, free: 8.617 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.362e-06/1.872, allocations: 0 / 0.6892 GB, free: 8.617 MB / 0.5762 GB Notification: Performance of matching and sorting (n=644) (initialization): time 0.01354/1.885, allocations: 7.244 MB / 0.6963 GB, free: 1.293 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.294e-05/1.885, allocations: 4 kB / 0.6963 GB, free: 1.289 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.825e-05/1.885, allocations: 16.48 kB / 0.6963 GB, free: 1.273 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.1841/2.069, allocations: 8.522 MB / 0.7046 GB, free: 224 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004004/2.073, allocations: 0.5858 MB / 0.7052 GB, free: 224 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0105/2.084, allocations: 6.626 MB / 0.7117 GB, free: 223.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003111/2.087, allocations: 474.1 kB / 0.7121 GB, free: 223.3 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002913/2.087, allocations: 119.2 kB / 0.7122 GB, free: 223.3 MB / 0.5762 GB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: $DER.dynamicOnePhaseFlowPipeShell.h[2] = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 4 (sourceP.C.b,sinkP.C.a,dynamicOnePhaseFlowPipeShell.C2.b,dynamicOnePhaseFlowPipeShell.C1.a) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (172): * Single equations (assignments): 157 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 14 * 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 {(21,97)} Notification: Performance of prepare postOptimizeDAE: time 0.001206/2.089, allocations: 0.7584 MB / 0.713 GB, free: 223.2 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003385/2.089, allocations: 202.3 kB / 0.7132 GB, free: 223.1 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01333/2.102, allocations: 9.097 MB / 0.722 GB, free: 222.4 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01118/2.114, allocations: 7.683 MB / 0.7295 GB, free: 221.6 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.905e-05/2.114, allocations: 3.25 kB / 0.7295 GB, free: 221.6 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.31e-05/2.114, allocations: 30.61 kB / 0.7296 GB, free: 221.6 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02013/2.134, allocations: 15.13 MB / 0.7443 GB, free: 207.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.825e-05/2.134, allocations: 8 kB / 0.7444 GB, free: 207.9 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01157/2.145, allocations: 2.467 MB / 0.7468 GB, free: 205.5 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003548/2.149, allocations: 1.05 MB / 0.7478 GB, free: 204.4 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003137/2.149, allocations: 155.7 kB / 0.7479 GB, free: 204.2 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01483/2.164, allocations: 28.1 MB / 0.7754 GB, free: 173.5 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.975e-06/2.164, allocations: 8.672 kB / 0.7754 GB, free: 173.5 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01581/2.18, allocations: 11.51 MB / 0.7866 GB, free: 161.9 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001333/2.181, allocations: 0.913 MB / 0.7875 GB, free: 160.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003164/2.182, allocations: 112 kB / 0.7876 GB, free: 160.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002287/2.184, allocations: 283.1 kB / 0.7879 GB, free: 160.5 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005419/2.184, allocations: 315.3 kB / 0.7882 GB, free: 160.2 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002173/2.185, allocations: 143.9 kB / 0.7883 GB, free: 160.1 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0003842/2.185, allocations: 463 kB / 0.7888 GB, free: 159.6 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.3e-07/2.185, allocations: 0 / 0.7888 GB, free: 159.6 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.003421/2.189, allocations: 1.835 MB / 0.7906 GB, free: 157.9 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 41 (dynamicOnePhaseFlowPipeShell.P[2],dynamicOnePhaseFlowPipeShell.P[3],dynamicOnePhaseFlowPipeShell.P[4],dynamicOnePhaseFlowPipeShell.P[5],dynamicOnePhaseFlowPipeShell.P[6],dynamicOnePhaseFlowPipeShell.P[7],dynamicOnePhaseFlowPipeShell.P[8],dynamicOnePhaseFlowPipeShell.P[9],dynamicOnePhaseFlowPipeShell.P[10],dynamicOnePhaseFlowPipeShell.P[11],dynamicOnePhaseFlowPipeShell.Q[1],dynamicOnePhaseFlowPipeShell.Q[2],dynamicOnePhaseFlowPipeShell.Q[3],dynamicOnePhaseFlowPipeShell.Q[4],dynamicOnePhaseFlowPipeShell.Q[5],dynamicOnePhaseFlowPipeShell.Q[6],dynamicOnePhaseFlowPipeShell.Q[7],dynamicOnePhaseFlowPipeShell.Q[8],dynamicOnePhaseFlowPipeShell.Q[9],dynamicOnePhaseFlowPipeShell.Q[10],dynamicOnePhaseFlowPipeShell.Q[11],dynamicOnePhaseFlowPipeShell.h[2],dynamicOnePhaseFlowPipeShell.h[3],dynamicOnePhaseFlowPipeShell.h[4],dynamicOnePhaseFlowPipeShell.h[5],dynamicOnePhaseFlowPipeShell.h[6],dynamicOnePhaseFlowPipeShell.h[7],dynamicOnePhaseFlowPipeShell.h[8],dynamicOnePhaseFlowPipeShell.h[9],dynamicOnePhaseFlowPipeShell.h[10],dynamicOnePhaseFlowPipeShell.h[11],heatExchangerWall.Tp[1],heatExchangerWall.Tp[2],heatExchangerWall.Tp[3],heatExchangerWall.Tp[4],heatExchangerWall.Tp[5],heatExchangerWall.Tp[6],heatExchangerWall.Tp[7],heatExchangerWall.Tp[8],heatExchangerWall.Tp[9],heatExchangerWall.Tp[10]) * 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 (468): * Single equations (assignments): 413 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 35 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 20 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 20 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.003092/2.192, allocations: 1.21 MB / 0.7917 GB, free: 156.9 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.01599/2.208, allocations: 9.726 MB / 0.8012 GB, free: 146.6 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/2.208, allocations: 0 / 0.8012 GB, free: 146.6 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.007649/2.215, allocations: 6.494 MB / 0.8076 GB, free: 139.8 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006403/2.222, allocations: 1.509 MB / 0.8091 GB, free: 138.3 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01326/2.235, allocations: 13.14 MB / 0.8219 GB, free: 125.5 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001519/2.237, allocations: 2.609 MB / 0.8244 GB, free: 122.9 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.002722/2.239, allocations: 0.9461 MB / 0.8254 GB, free: 121.9 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008713/2.24, allocations: 255.3 kB / 0.8256 GB, free: 121.7 MB / 0.5762 GB Notification: Performance of SimCode: time 6.31e-07/2.24, allocations: 0 / 0.8256 GB, free: 121.7 MB / 0.5762 GB Notification: Performance of Templates: time 0.1174/2.358, allocations: 114.3 MB / 0.9372 GB, free: 8.598 MB / 0.5762 GB make -j1 -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.HeatExchanger.TestDynamicOnePhaseFlowShell.makefile Environment - environmentSimulation: (rm -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.HeatExchanger.TestDynamicOnePhaseFlowShell.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.HeatExchanger.TestDynamicOnePhaseFlowShell.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.HeatExchanger.TestDynamicOnePhaseFlowShell.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.HeatExchanger.TestDynamicOnePhaseFlowShell.sim & ./ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.HeatExchanger.TestDynamicOnePhaseFlowShell -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.HeatExchanger.TestDynamicOnePhaseFlowShell.pipe 2>&1) Environment - environmentSimulation: