Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermalSeparation_ThermalSeparation.Examples.Testing.HeatExchanger.HeatExchangerSimple.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermalSeparation 0.2.0-master/package.mo", uses=false) Using package ThermalSeparation with version 0.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermalSeparation 0.2.0-master/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(ThermalSeparation.Examples.Testing.HeatExchanger.HeatExchangerSimple,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermalSeparation_ThermalSeparation.Examples.Testing.HeatExchanger.HeatExchangerSimple") translateModel(ThermalSeparation.Examples.Testing.HeatExchanger.HeatExchangerSimple,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermalSeparation_ThermalSeparation.Examples.Testing.HeatExchanger.HeatExchangerSimple") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001078/0.001078, allocations: 168.8 kB / 7.998 MB, free: 1.086 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.56/1.56, allocations: 221.5 MB / 230 MB, free: 7.594 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001484/0.001484, allocations: 94.06 kB / 280.8 MB, free: 5.34 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermalSeparation 0.2.0-master/package.mo): time 0.5504/0.5504, allocations: 64.47 MB / 396.1 MB, free: 10.84 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 1.923e-05/1.95e-05, allocations: 3.984 kB / 467.2 MB, free: 13.2 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1989/0.1989, allocations: 64.86 MB / 0.5196 GB, free: 12.26 MB / 410.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.322/1.521, allocations: 250.9 MB / 0.7646 GB, free: 119.2 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002151/1.522, allocations: 59.25 kB / 0.7646 GB, free: 119.2 MB / 0.5417 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermalSeparation 0.2.0-master/Media/WaterBasedLiquid/BaseClasses/package.mo:6:3-23:32:writable] Error: PartialWaterBased is partial, name lookup is not allowed in partial classes. Notification: Performance of FrontEnd - DAE generated: time 0.3904/1.912, allocations: 165.4 MB / 0.9261 GB, free: 29.04 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.104e-06/1.912, allocations: 0 / 0.9261 GB, free: 29.04 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0002239/1.912, allocations: 75.98 kB / 0.9262 GB, free: 28.96 MB / 0.5417 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1064 * Number of variables: 1064 Notification: Performance of Generate backend data structure: time 0.01543/1.928, allocations: 3.439 MB / 0.9296 GB, free: 25.47 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.642e-05/1.928, allocations: 12.03 kB / 0.9296 GB, free: 25.46 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002692/1.93, allocations: 391.4 kB / 0.9299 GB, free: 25.07 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006257/1.937, allocations: 1.537 MB / 0.9314 GB, free: 23.49 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004905/1.937, allocations: 193.5 kB / 0.9316 GB, free: 23.29 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002686/1.94, allocations: 267.8 kB / 0.9319 GB, free: 23.03 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01172/1.952, allocations: 3.894 MB / 0.9357 GB, free: 19.13 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01783/1.97, allocations: 4.614 MB / 0.9402 GB, free: 14.19 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003601/1.97, allocations: 15.81 kB / 0.9402 GB, free: 14.18 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002238/1.972, allocations: 11.98 kB / 0.9402 GB, free: 14.16 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003643/1.973, allocations: 250.7 kB / 0.9405 GB, free: 13.92 MB / 0.5417 GB Warning: The model contains alias variables with conflicting start and/or 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.04141/2.014, allocations: 20.19 MB / 0.9602 GB, free: 8.895 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007083/2.021, allocations: 2.299 MB / 0.9624 GB, free: 6.434 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002604/2.024, allocations: 0.8823 MB / 0.9633 GB, free: 5.523 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004076/2.024, allocations: 29.97 kB / 0.9633 GB, free: 5.496 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001085/2.025, allocations: 72.48 kB / 0.9634 GB, free: 5.414 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=192): time 6.763e-06/2.025, allocations: 0 / 0.9634 GB, free: 5.414 MB / 0.5573 GB Notification: Performance of matching and sorting (n=214): time 0.6048/2.629, allocations: 10.53 MB / 0.9737 GB, free: 88.38 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001911/2.63, allocations: 337.5 kB / 0.974 GB, free: 88 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003564/2.633, allocations: 1.7 MB / 0.9756 GB, free: 87.8 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0008895/2.634, allocations: 29.3 kB / 0.9757 GB, free: 87.77 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.001677/2.636, allocations: 1.915 MB / 0.9775 GB, free: 86.85 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.001345/2.637, allocations: 0.7351 MB / 0.9783 GB, free: 86.48 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002231/2.637, allocations: 0 / 0.9783 GB, free: 86.48 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0003438/2.638, allocations: 0.5211 MB / 0.9788 GB, free: 86.16 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002383/2.64, allocations: 1.376 MB / 0.9801 GB, free: 86.14 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003288/2.644, allocations: 3.207 MB / 0.9832 GB, free: 83.82 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003425/2.647, allocations: 2.021 MB / 0.9852 GB, free: 83.78 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.024e-05/2.647, allocations: 17.94 kB / 0.9852 GB, free: 83.78 MB / 0.5573 GB Notification: Performance of matching and sorting (n=557) (initialization): time 0.01256/2.66, allocations: 5.224 MB / 0.9903 GB, free: 83.46 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 7.828e-05/2.66, allocations: 31.28 kB / 0.9904 GB, free: 83.46 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001213/2.66, allocations: 69.91 kB / 0.9904 GB, free: 83.46 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005117/2.665, allocations: 1.204 MB / 0.9916 GB, free: 83.4 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006615/2.672, allocations: 1.028 MB / 0.9926 GB, free: 83.4 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0111/2.683, allocations: 8.587 MB / 1.001 GB, free: 77.7 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006852/2.69, allocations: 220.5 kB / 1.001 GB, free: 77.69 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00183/2.692, allocations: 227.6 kB / 1.001 GB, free: 77.69 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 288 * Number of states: 0 () * Number of discrete variables: 10 (sourceLiquid2.medium.state.phase,sourceLiquid1.medium.state.phase,ccounterFlowHeatExchanger.mediumHotOut.state.phase,ccounterFlowHeatExchanger.mediumColdOut.state.phase,ccounterFlowHeatExchanger.mediumHotIn.state.phase,ccounterFlowHeatExchanger.mediumColdIn.state.phase,ccounterFlowHeatExchanger.coldLiquidTube.mediumLiquidIn.state.phase,ccounterFlowHeatExchanger.coldLiquidTube.mediumLiquid.state.phase,ccounterFlowHeatExchanger.hotLiquidTube.mediumLiquidIn.state.phase,ccounterFlowHeatExchanger.hotLiquidTube.mediumLiquid.state.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (521): * Single equations (assignments): 513 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(4,62.5%) 6,(4,62.5%) 6} * Non-linear torn systems: 6 {1 3,1 3,1 3,1 3,1 3,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.001559/2.693, allocations: 281.5 kB / 1.002 GB, free: 77.58 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001109/2.694, allocations: 219.7 kB / 1.002 GB, free: 77.46 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009438/2.704, allocations: 3.415 MB / 1.005 GB, free: 77.24 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.5e-05/2.704, allocations: 31.25 kB / 1.005 GB, free: 77.24 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.71e-05/2.704, allocations: 5.766 kB / 1.005 GB, free: 77.24 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.314e-05/2.704, allocations: 15.77 kB / 1.005 GB, free: 77.24 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02143/2.726, allocations: 7.382 MB / 1.013 GB, free: 76.6 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.739e-05/2.726, allocations: 5 kB / 1.013 GB, free: 76.6 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003084/2.729, allocations: 401.9 kB / 1.013 GB, free: 76.6 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005642/2.734, allocations: 1.326 MB / 1.014 GB, free: 76.52 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006696/2.735, allocations: 23.41 kB / 1.014 GB, free: 76.52 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009796/2.745, allocations: 9.332 MB / 1.023 GB, free: 69.93 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.003513/2.749, allocations: 3.732 MB / 1.027 GB, free: 67.14 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0142/2.763, allocations: 5.655 MB / 1.032 GB, free: 65.58 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001715/2.765, allocations: 317 kB / 1.033 GB, free: 65.37 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001243/2.766, allocations: 5.984 kB / 1.033 GB, free: 65.37 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003447/2.769, allocations: 109.7 kB / 1.033 GB, free: 65.36 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006492/2.77, allocations: 165.2 kB / 1.033 GB, free: 65.36 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002222/2.77, allocations: 65.16 kB / 1.033 GB, free: 65.36 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.002843/2.773, allocations: 1.141 MB / 1.034 GB, free: 65.25 MB / 0.5573 GB Notification: Performance of sort global known variables: time 9.51e-07/2.773, allocations: 0 / 1.034 GB, free: 65.25 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01037/2.783, allocations: 1.162 MB / 1.035 GB, free: 65.25 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 4 ($STATESET4.x,$STATESET3.x,ccounterFlowHeatExchanger.TwallHot,ccounterFlowHeatExchanger.TwallCold) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (205): * Single equations (assignments): 195 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(4,62.5%) 4,(4,62.5%) 4} * Non-linear torn systems: 8 {1 3,4 2,1 3,4 2,1 3,1 3,1 3,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.005417/2.789, allocations: 0.69 MB / 1.036 GB, free: 65.13 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.01364/2.803, allocations: 3.653 MB / 1.04 GB, free: 64.71 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.044e-05/2.803, allocations: 1.344 kB / 1.04 GB, free: 64.71 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.007116/2.81, allocations: 1.723 MB / 1.041 GB, free: 64.42 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003884/2.814, allocations: 388.8 kB / 1.042 GB, free: 64.41 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01608/2.83, allocations: 4.923 MB / 1.046 GB, free: 63.04 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003619/2.833, allocations: 2.165 MB / 1.049 GB, free: 62.3 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.005102/2.839, allocations: 0.7903 MB / 1.049 GB, free: 62.27 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001307/2.84, allocations: 186.8 kB / 1.05 GB, free: 62.27 MB / 0.5573 GB Notification: Performance of SimCode: time 1.212e-06/2.84, allocations: 0 / 1.05 GB, free: 62.27 MB / 0.5573 GB Notification: Performance of Templates: time 0.07859/2.919, allocations: 46.72 MB / 1.095 GB, free: 60.07 MB / 0.5573 GB make -j1 -f ThermalSeparation_ThermalSeparation.Examples.Testing.HeatExchanger.HeatExchangerSimple.makefile (rm -f ThermalSeparation_ThermalSeparation.Examples.Testing.HeatExchanger.HeatExchangerSimple.pipe ; mkfifo ThermalSeparation_ThermalSeparation.Examples.Testing.HeatExchanger.HeatExchangerSimple.pipe ; head -c 1048576 < ThermalSeparation_ThermalSeparation.Examples.Testing.HeatExchanger.HeatExchangerSimple.pipe >> ../files/ThermalSeparation_ThermalSeparation.Examples.Testing.HeatExchanger.HeatExchangerSimple.sim & ./ThermalSeparation_ThermalSeparation.Examples.Testing.HeatExchanger.HeatExchangerSimple -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermalSeparation_ThermalSeparation.Examples.Testing.HeatExchanger.HeatExchangerSimple.pipe 2>&1)