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.001279/0.001279, allocations: 177.5 kB / 8.008 MB, free: 1.066 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.421/1.421, allocations: 221.5 MB / 230 MB, free: 7.578 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.0009277/0.0009276, allocations: 97.59 kB / 280.8 MB, free: 5.324 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermalSeparation 0.2.0-master/package.mo): time 0.4911/0.4911, allocations: 64.47 MB / 396.1 MB, free: 10.89 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 2.492e-05/2.475e-05, allocations: 0 / 467.3 MB, free: 13.11 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1403/0.1404, allocations: 64.86 MB / 0.5197 GB, free: 12.17 MB / 410.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9507/1.091, allocations: 250.9 MB / 0.7647 GB, free: 151.8 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001499/1.091, allocations: 59.42 kB / 0.7647 GB, free: 151.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.384/1.475, allocations: 165.4 MB / 0.9262 GB, free: 42.48 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.405e-06/1.475, allocations: 0 / 0.9262 GB, free: 42.48 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0001331/1.476, allocations: 71.98 kB / 0.9263 GB, free: 42.41 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.01321/1.489, allocations: 3.453 MB / 0.9297 GB, free: 38.9 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 6.02e-05/1.489, allocations: 8.031 kB / 0.9297 GB, free: 38.89 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002419/1.491, allocations: 387.4 kB / 0.93 GB, free: 38.51 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004264/1.496, allocations: 1.533 MB / 0.9315 GB, free: 36.93 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002797/1.496, allocations: 197.5 kB / 0.9317 GB, free: 36.73 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001634/1.498, allocations: 267.8 kB / 0.932 GB, free: 36.47 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00947/1.507, allocations: 3.893 MB / 0.9358 GB, free: 32.57 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01206/1.519, allocations: 4.622 MB / 0.9403 GB, free: 27.62 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001044/1.519, allocations: 19.81 kB / 0.9403 GB, free: 27.6 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005058/1.52, allocations: 8 kB / 0.9403 GB, free: 27.59 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002413/1.52, allocations: 246.7 kB / 0.9406 GB, free: 27.35 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.0264/1.546, allocations: 20.19 MB / 0.9603 GB, free: 6.328 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003725/1.55, allocations: 2.303 MB / 0.9625 GB, free: 3.863 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001401/1.552, allocations: 0.8821 MB / 0.9634 GB, free: 2.953 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000216/1.552, allocations: 33.97 kB / 0.9634 GB, free: 2.922 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.233e-05/1.552, allocations: 64.48 kB / 0.9635 GB, free: 2.848 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=192): time 6.682e-06/1.552, allocations: 4 kB / 0.9635 GB, free: 2.844 MB / 0.5417 GB Notification: Performance of matching and sorting (n=214): time 0.4062/1.958, allocations: 10.53 MB / 0.9738 GB, free: 77.38 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.41e-05/1.958, allocations: 337.9 kB / 0.9741 GB, free: 77 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002459/1.961, allocations: 1.708 MB / 0.9758 GB, free: 76.8 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.000444/1.961, allocations: 28.84 kB / 0.9758 GB, free: 76.77 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.000987/1.962, allocations: 1.909 MB / 0.9777 GB, free: 75.85 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.000816/1.963, allocations: 0.7363 MB / 0.9784 GB, free: 75.48 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001938/1.963, allocations: 0 / 0.9784 GB, free: 75.48 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0002625/1.964, allocations: 0.5259 MB / 0.9789 GB, free: 75.16 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002098/1.966, allocations: 1.374 MB / 0.9802 GB, free: 75.14 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002912/1.969, allocations: 3.201 MB / 0.9834 GB, free: 72.82 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002775/1.971, allocations: 2.032 MB / 0.9853 GB, free: 72.78 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.904e-05/1.971, allocations: 19.84 kB / 0.9854 GB, free: 72.78 MB / 0.5417 GB Notification: Performance of matching and sorting (n=557) (initialization): time 0.01043/1.982, allocations: 5.218 MB / 0.9904 GB, free: 72.46 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 6.395e-05/1.982, allocations: 31.88 kB / 0.9905 GB, free: 72.46 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00011/1.982, allocations: 62.81 kB / 0.9905 GB, free: 72.46 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004804/1.987, allocations: 1.208 MB / 0.9917 GB, free: 72.4 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005275/1.992, allocations: 1.024 MB / 0.9927 GB, free: 72.4 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008067/2, allocations: 8.583 MB / 1.001 GB, free: 66.7 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005252/2.006, allocations: 228.5 kB / 1.001 GB, free: 66.69 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007535/2.006, allocations: 222.2 kB / 1.002 GB, free: 66.69 MB / 0.5417 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.0007486/2.007, allocations: 282.1 kB / 1.002 GB, free: 66.55 MB / 0.5417 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.007696/2.015, allocations: 2.975 MB / 1.005 GB, free: 66.27 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007972/2.016, allocations: 222.5 kB / 1.005 GB, free: 66.15 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008365/2.024, allocations: 3.416 MB / 1.008 GB, free: 65.93 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.418e-05/2.024, allocations: 28.75 kB / 1.008 GB, free: 65.93 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.308e-05/2.024, allocations: 5.875 kB / 1.008 GB, free: 65.93 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-05/2.024, allocations: 16.72 kB / 1.008 GB, free: 65.93 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01726/2.041, allocations: 7.369 MB / 1.015 GB, free: 65.28 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.328e-05/2.041, allocations: 4.25 kB / 1.016 GB, free: 65.28 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003407/2.045, allocations: 398.8 kB / 1.016 GB, free: 65.26 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005938/2.051, allocations: 1.342 MB / 1.017 GB, free: 65.18 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005732/2.051, allocations: 16.78 kB / 1.017 GB, free: 65.18 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009428/2.061, allocations: 9.34 MB / 1.026 GB, free: 58.55 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.004332/2.065, allocations: 3.723 MB / 1.03 GB, free: 55.75 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01294/2.078, allocations: 5.66 MB / 1.035 GB, free: 54.16 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001204/2.08, allocations: 318.6 kB / 1.036 GB, free: 53.94 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000454/2.08, allocations: 7.25 kB / 1.036 GB, free: 53.94 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002348/2.082, allocations: 112.4 kB / 1.036 GB, free: 53.93 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004771/2.083, allocations: 165.9 kB / 1.036 GB, free: 53.92 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001864/2.083, allocations: 64.98 kB / 1.036 GB, free: 53.92 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.002242/2.085, allocations: 1.144 MB / 1.037 GB, free: 53.81 MB / 0.5417 GB Notification: Performance of sort global known variables: time 4.21e-07/2.085, allocations: 0 / 1.037 GB, free: 53.81 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.008644/2.094, allocations: 1.16 MB / 1.038 GB, free: 53.8 MB / 0.5417 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.01578/2.11, allocations: 7.835 MB / 1.046 GB, free: 50.65 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01069/2.12, allocations: 3.664 MB / 1.05 GB, free: 50.09 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.504e-05/2.121, allocations: 0 / 1.05 GB, free: 50.09 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.007471/2.128, allocations: 1.716 MB / 1.051 GB, free: 49.36 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00322/2.131, allocations: 386.8 kB / 1.052 GB, free: 49.26 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02265/2.154, allocations: 5.623 MB / 1.057 GB, free: 47.01 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00291/2.157, allocations: 2.158 MB / 1.059 GB, free: 46.09 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.004553/2.162, allocations: 0.7983 MB / 1.06 GB, free: 46.06 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002507/2.164, allocations: 1.275 MB / 1.061 GB, free: 45.04 MB / 0.5417 GB Notification: Performance of SimCode: time 2.014e-06/2.164, allocations: 0 / 1.061 GB, free: 45.04 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.137/2.301, allocations: 71.03 MB / 1.131 GB, free: 28.91 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001667/2.301, allocations: 172.8 kB / 1.131 GB, free: 28.71 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.251/6.553, allocations: 0 / 1.131 GB, free: 28.71 MB / 0.5417 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)