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: "" <> buildModelFMU(ThermalSeparation.Examples.Testing.HeatExchanger.HeatExchangerSimple,fileNamePrefix="ThermalSeparation_ThermalSeparation_Examples_Testing_HeatExchanger_HeatExchangerSimple",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermalSeparation.Examples.Testing.HeatExchanger.HeatExchangerSimple,fileNamePrefix="ThermalSeparation_ThermalSeparation_Examples_Testing_HeatExchanger_HeatExchangerSimple",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001141/0.001141, allocations: 176.8 kB / 15.75 MB, free: 6.363 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.583/1.583, allocations: 223.2 MB / 239.7 MB, free: 1.809 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.0009027/0.0009027, allocations: 96.48 kB / 290.8 MB, free: 13.93 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermalSeparation 0.2.0-master/package.mo): time 0.5061/0.5061, allocations: 64.88 MB / 406.8 MB, free: 49.55 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003784/0.0003786, allocations: 8 kB / 482.3 MB, free: 3.602 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1536/0.154, allocations: 64.87 MB / 0.5343 GB, free: 2.664 MB / 410.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.009/1.163, allocations: 251.6 MB / 0.78 GB, free: 115.8 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002353/1.163, allocations: 60.03 kB / 0.7801 GB, free: 115.8 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.382/1.545, allocations: 167.3 MB / 0.9435 GB, free: 14.62 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.244e-06/1.545, allocations: 0 / 0.9435 GB, free: 14.62 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0002351/1.546, allocations: 72 kB / 0.9436 GB, free: 14.55 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.01538/1.561, allocations: 3.596 MB / 0.9471 GB, free: 10.89 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 7.22e-05/1.561, allocations: 8.031 kB / 0.9471 GB, free: 10.89 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00368/1.565, allocations: 0.5481 MB / 0.9476 GB, free: 10.33 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002895/1.568, allocations: 383.4 kB / 0.948 GB, free: 9.949 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004398/1.572, allocations: 1.541 MB / 0.9495 GB, free: 8.363 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002174/1.572, allocations: 317.5 kB / 0.9498 GB, free: 8.047 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007089/1.573, allocations: 427.8 kB / 0.9502 GB, free: 7.629 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00903/1.582, allocations: 5.302 MB / 0.9554 GB, free: 2 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.89e-05/1.582, allocations: 15.88 kB / 0.9554 GB, free: 1.984 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003779/1.583, allocations: 167.9 kB / 0.9556 GB, free: 1.82 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002116/1.583, allocations: 246.7 kB / 0.9558 GB, free: 1.578 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008161/1.591, allocations: 4.383 MB / 0.9601 GB, free: 13.19 MB / 0.5573 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.4182/2.009, allocations: 20.99 MB / 0.9806 GB, free: 71.58 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004744/2.014, allocations: 2.453 MB / 0.983 GB, free: 71.03 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001863/2.014, allocations: 37.77 kB / 0.983 GB, free: 71.03 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.648e-05/2.014, allocations: 63.92 kB / 0.9831 GB, free: 70.99 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=192): time 4.709e-06/2.014, allocations: 1.281 kB / 0.9831 GB, free: 70.99 MB / 0.5573 GB Notification: Performance of matching and sorting (n=214): time 0.02968/2.044, allocations: 12.98 MB / 0.9957 GB, free: 66.11 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.003173/2.047, allocations: 3.709 MB / 0.9994 GB, free: 62.98 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004103/2.051, allocations: 2.571 MB / 1.002 GB, free: 62.73 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0006233/2.052, allocations: 61.67 kB / 1.002 GB, free: 62.7 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.001188/2.053, allocations: 1.881 MB / 1.004 GB, free: 61.88 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009627/2.054, allocations: 0.7653 MB / 1.005 GB, free: 61.51 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002425/2.054, allocations: 92 kB / 1.005 GB, free: 61.51 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0002018/2.055, allocations: 482.9 kB / 1.005 GB, free: 61.19 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002563/2.057, allocations: 1.516 MB / 1.007 GB, free: 61.18 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003335/2.061, allocations: 3.372 MB / 1.01 GB, free: 58.84 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00335/2.064, allocations: 2.17 MB / 1.012 GB, free: 58.79 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.98e-05/2.064, allocations: 18.97 kB / 1.012 GB, free: 58.79 MB / 0.5573 GB Notification: Performance of matching and sorting (n=557) (initialization): time 0.01237/2.076, allocations: 5.929 MB / 1.018 GB, free: 58.45 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 6.711e-05/2.076, allocations: 33.19 kB / 1.018 GB, free: 58.45 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001138/2.077, allocations: 62.44 kB / 1.018 GB, free: 58.45 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005171/2.082, allocations: 1.239 MB / 1.019 GB, free: 58.38 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005578/2.087, allocations: 1.027 MB / 1.02 GB, free: 58.38 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009521/2.097, allocations: 8.961 MB / 1.029 GB, free: 52.58 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005928/2.103, allocations: 309 kB / 1.029 GB, free: 52.57 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001295/2.104, allocations: 224.6 kB / 1.029 GB, free: 52.57 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 () * Number of clocked 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.004379/2.109, allocations: 1.036 MB / 1.03 GB, free: 52.43 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001327/2.11, allocations: 276.7 kB / 1.031 GB, free: 52.28 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01128/2.121, allocations: 3.737 MB / 1.034 GB, free: 52.02 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.796e-05/2.121, allocations: 30.91 kB / 1.034 GB, free: 52.02 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.063e-05/2.121, allocations: 6.5 kB / 1.034 GB, free: 52.02 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.339e-05/2.121, allocations: 11.2 kB / 1.034 GB, free: 52.02 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0198/2.141, allocations: 7.577 MB / 1.042 GB, free: 51.33 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.684e-05/2.141, allocations: 3 kB / 1.042 GB, free: 51.33 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003529/2.145, allocations: 420.6 kB / 1.042 GB, free: 51.31 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006083/2.151, allocations: 1.318 MB / 1.043 GB, free: 51.23 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007355/2.152, allocations: 55.47 kB / 1.043 GB, free: 51.23 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01002/2.162, allocations: 9.714 MB / 1.053 GB, free: 44.38 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002999/2.165, allocations: 3.404 MB / 1.056 GB, free: 41.42 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01354/2.178, allocations: 6.055 MB / 1.062 GB, free: 38.05 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001482/2.18, allocations: 403.8 kB / 1.063 GB, free: 37.77 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00122/2.181, allocations: 41.41 kB / 1.063 GB, free: 37.74 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003667/2.185, allocations: 152.1 kB / 1.063 GB, free: 37.7 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007664/2.186, allocations: 158.7 kB / 1.063 GB, free: 37.68 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003822/2.186, allocations: 68.88 kB / 1.063 GB, free: 37.66 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.004961/2.191, allocations: 1.849 MB / 1.065 GB, free: 36.96 MB / 0.5573 GB Notification: Performance of sort global known variables: time 3e-07/2.191, allocations: 0 / 1.065 GB, free: 36.96 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.008301/2.199, allocations: 1.266 MB / 1.066 GB, free: 36.83 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 4 ($STATESET2.x,$STATESET1.x,ccounterFlowHeatExchanger.TwallHot,ccounterFlowHeatExchanger.TwallCold) * 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 (209): * Single equations (assignments): 199 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {4,4} * Without analytic Jacobian: 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: 6 {1 3,1 3,1 3,1 3,1 3,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.01656/2.216, allocations: 8.183 MB / 1.074 GB, free: 31.92 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.01021/2.226, allocations: 4.025 MB / 1.078 GB, free: 30.36 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.058e-05/2.226, allocations: 4 kB / 1.078 GB, free: 30.36 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.006247/2.232, allocations: 1.844 MB / 1.08 GB, free: 29.57 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005952/2.238, allocations: 0.9518 MB / 1.081 GB, free: 29.37 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07895/2.317, allocations: 66.12 MB / 1.145 GB, free: 20.14 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003244/2.321, allocations: 2.153 MB / 1.147 GB, free: 19.22 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.005024/2.326, allocations: 0.9097 MB / 1.148 GB, free: 19.19 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00252/2.328, allocations: 1.296 MB / 1.149 GB, free: 18.18 MB / 0.6042 GB Notification: Performance of SimCode: time 3.316e-06/2.328, allocations: 0 / 1.149 GB, free: 18.18 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4482/2.777, allocations: 92.56 MB / 1.24 GB, free: 122.3 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002962/2.777, allocations: 233.6 kB / 1.24 GB, free: 122 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.693/8.47, allocations: 2 kB / 1.24 GB, free: 122 MB / 0.6042 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ThermalSeparation_ThermalSeparation_Examples_Testing_HeatExchanger_HeatExchangerSimple_fmu --startTime=0 --stopTime=1500 --timeout=50 --tolerance=1e-06 ThermalSeparation_ThermalSeparation_Examples_Testing_HeatExchanger_HeatExchangerSimple.fmu > ThermalSeparation_ThermalSeparation.Examples.Testing.HeatExchanger.HeatExchangerSimple.pipe 2>&1)