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.001069/0.001068, allocations: 182.7 kB / 13.19 MB, free: 2.129 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.193/1.193, allocations: 221.4 MB / 235.1 MB, free: 14.44 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008577/0.0008573, allocations: 82.97 kB / 286 MB, free: 12.99 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermalSeparation 0.2.0-master/package.mo): time 0.4579/0.4579, allocations: 64.45 MB / 401.4 MB, free: 23.13 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 2.675e-05/2.678e-05, allocations: 4 kB / 474.2 MB, free: 15.66 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3368/0.3368, allocations: 64.84 MB / 0.5265 GB, free: 30.46 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6003/0.9371, allocations: 251.6 MB / 0.7721 GB, free: 28.82 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001942/0.9374, allocations: 60.8 kB / 0.7722 GB, free: 28.79 MB / 490.7 MB [/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.6816/1.619, allocations: 167.3 MB / 0.9355 GB, free: 115.9 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.573e-06/1.619, allocations: 0 / 0.9355 GB, free: 115.9 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0001077/1.619, allocations: 67.06 kB / 0.9356 GB, free: 115.9 MB / 0.5573 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.009856/1.629, allocations: 3.456 MB / 0.939 GB, free: 114.6 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.584e-05/1.629, allocations: 10.84 kB / 0.939 GB, free: 114.6 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001154/1.63, allocations: 0.5431 MB / 0.9395 GB, free: 114.5 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007213/1.631, allocations: 383.9 kB / 0.9399 GB, free: 114.3 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002741/1.634, allocations: 1.533 MB / 0.9414 GB, free: 113.8 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001977/1.634, allocations: 330.7 kB / 0.9417 GB, free: 113.8 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006912/1.635, allocations: 415.5 kB / 0.9421 GB, free: 113.8 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008408/1.643, allocations: 5.199 MB / 0.9472 GB, free: 111.4 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.217e-05/1.643, allocations: 11.66 kB / 0.9472 GB, free: 111.4 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003508/1.644, allocations: 171.8 kB / 0.9473 GB, free: 111.3 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002062/1.644, allocations: 249.4 kB / 0.9476 GB, free: 111.2 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006547/1.65, allocations: 4.21 MB / 0.9517 GB, free: 109.6 MB / 0.5573 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.02029/1.671, allocations: 21.01 MB / 0.9722 GB, free: 94.34 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003127/1.674, allocations: 2.397 MB / 0.9745 GB, free: 92.92 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001224/1.675, allocations: 0.9275 MB / 0.9754 GB, free: 92.47 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001533/1.675, allocations: 34.98 kB / 0.9755 GB, free: 92.46 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.176e-05/1.675, allocations: 64.16 kB / 0.9755 GB, free: 92.41 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=192): time 4.268e-06/1.675, allocations: 3.938 kB / 0.9755 GB, free: 92.4 MB / 0.5573 GB Notification: Performance of matching and sorting (n=214): time 0.02006/1.695, allocations: 10.96 MB / 0.9862 GB, free: 86.19 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00342/1.699, allocations: 4.165 MB / 0.9903 GB, free: 82.45 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003283/1.702, allocations: 2.546 MB / 0.9928 GB, free: 81.45 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.000565/1.703, allocations: 61.11 kB / 0.9928 GB, free: 81.39 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008557/1.703, allocations: 1.876 MB / 0.9947 GB, free: 79.93 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006632/1.704, allocations: 0.7654 MB / 0.9954 GB, free: 79.34 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002006/1.704, allocations: 90.25 kB / 0.9955 GB, free: 79.27 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001791/1.705, allocations: 478 kB / 0.996 GB, free: 78.89 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002145/1.707, allocations: 1.465 MB / 0.9974 GB, free: 78.32 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002762/1.709, allocations: 3.309 MB / 1.001 GB, free: 75.29 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002815/1.712, allocations: 2.131 MB / 1.003 GB, free: 74.48 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.64e-05/1.712, allocations: 20.94 kB / 1.003 GB, free: 74.48 MB / 0.5573 GB Notification: Performance of matching and sorting (n=557) (initialization): time 0.01001/1.722, allocations: 5.799 MB / 1.008 GB, free: 72.26 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 5.062e-05/1.722, allocations: 36.09 kB / 1.008 GB, free: 72.26 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.98e-05/1.722, allocations: 65.09 kB / 1.008 GB, free: 72.26 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00475/1.727, allocations: 1.229 MB / 1.01 GB, free: 71.95 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00495/1.732, allocations: 1.036 MB / 1.011 GB, free: 71.83 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007682/1.74, allocations: 8.737 MB / 1.019 GB, free: 64.54 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005336/1.745, allocations: 308.4 kB / 1.02 GB, free: 64.45 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001071/1.746, allocations: 227.4 kB / 1.02 GB, free: 64.41 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.001591/1.748, allocations: 401.2 kB / 1.02 GB, free: 64.07 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001022/1.749, allocations: 281 kB / 1.02 GB, free: 63.92 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00973/1.759, allocations: 3.687 MB / 1.024 GB, free: 62.41 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.893e-05/1.759, allocations: 25.25 kB / 1.024 GB, free: 62.41 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.683e-05/1.759, allocations: 7.781 kB / 1.024 GB, free: 62.41 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.327e-05/1.759, allocations: 11.25 kB / 1.024 GB, free: 62.41 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01731/1.776, allocations: 7.58 MB / 1.031 GB, free: 57.84 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.837e-05/1.776, allocations: 4 kB / 1.031 GB, free: 57.84 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002925/1.779, allocations: 406.8 kB / 1.032 GB, free: 57.51 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005379/1.785, allocations: 1.357 MB / 1.033 GB, free: 56.5 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006082/1.785, allocations: 51.8 kB / 1.033 GB, free: 56.45 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008112/1.793, allocations: 9.444 MB / 1.042 GB, free: 46.99 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.003343/1.797, allocations: 3.852 MB / 1.046 GB, free: 43.07 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01097/1.808, allocations: 5.978 MB / 1.052 GB, free: 37.45 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001117/1.809, allocations: 400.7 kB / 1.052 GB, free: 37.06 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007244/1.81, allocations: 44 kB / 1.052 GB, free: 37.02 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002758/1.812, allocations: 153.5 kB / 1.053 GB, free: 36.9 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003899/1.813, allocations: 160.9 kB / 1.053 GB, free: 36.8 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001724/1.813, allocations: 63.8 kB / 1.053 GB, free: 36.74 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.003034/1.816, allocations: 1.818 MB / 1.055 GB, free: 35.09 MB / 0.5573 GB Notification: Performance of sort global known variables: time 7.51e-07/1.816, allocations: 4 kB / 1.055 GB, free: 35.09 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.006194/1.822, allocations: 1.284 MB / 1.056 GB, free: 33.82 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 () * 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.01369/1.836, allocations: 8.103 MB / 1.064 GB, free: 26.23 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.01/1.846, allocations: 3.905 MB / 1.068 GB, free: 22.58 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 8.175e-06/1.846, allocations: 4 kB / 1.068 GB, free: 22.58 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.005688/1.852, allocations: 1.8 MB / 1.069 GB, free: 20.9 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004577/1.856, allocations: 0.9383 MB / 1.07 GB, free: 20.2 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0136/1.87, allocations: 5.992 MB / 1.076 GB, free: 14.89 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001644/1.872, allocations: 2.153 MB / 1.078 GB, free: 13.21 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.003579/1.875, allocations: 0.9033 MB / 1.079 GB, free: 12.6 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001668/1.877, allocations: 1.303 MB / 1.08 GB, free: 11.41 MB / 0.5573 GB Notification: Performance of SimCode: time 1.092e-06/1.877, allocations: 0 / 1.08 GB, free: 11.41 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4299/2.307, allocations: 93.77 MB / 1.172 GB, free: 95.19 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001549/2.307, allocations: 200.8 kB / 1.172 GB, free: 94.97 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.911/7.218, allocations: 0 / 1.172 GB, free: 94.97 MB / 0.5573 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)