Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterCooler_T.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Fluid.HeatExchangers.Examples.WaterCooler_T,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TSet.y|TOut.y|TVol.T|THeaOut.T|coo.TSet|coo.Q_flow",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterCooler_T") translateModel(Buildings.Fluid.HeatExchangers.Examples.WaterCooler_T,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TSet.y|TOut.y|TVol.T|THeaOut.T|coo.TSet|coo.Q_flow",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterCooler_T") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.594/1.594, allocations: 249.3 MB / 261.8 MB, free: 5.879 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001228/0.001228, allocations: 180.9 kB / 321.3 MB, free: 14.64 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.741/1.741, allocations: 205.2 MB / 0.572 GB, free: 10.66 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008464/0.0008466, allocations: 87.72 kB / 0.6764 GB, free: 15.64 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 5.186e-05/5.189e-05, allocations: 4 kB / 0.7879 GB, free: 97.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2408/0.2409, allocations: 106.3 MB / 0.8918 GB, free: 6.676 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.764/2.005, allocations: 447 MB / 1.328 GB, free: 292.1 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003044/2.006, allocations: 98.25 kB / 1.328 GB, free: 292.1 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 4.129/6.135, allocations: 1.135 GB / 2.464 GB, free: 115.4 MB / 0.8855 GB Notification: Performance of FrontEnd: time 1.312e-06/6.135, allocations: 2.844 kB / 2.464 GB, free: 115.4 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 0.0002295/6.136, allocations: 61.33 kB / 2.464 GB, free: 115.4 MB / 0.8855 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 282 * Number of variables: 282 Notification: Performance of Generate backend data structure: time 0.004775/6.14, allocations: 2.066 MB / 2.466 GB, free: 114.2 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.512e-05/6.14, allocations: 11.59 kB / 2.466 GB, free: 114.2 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002206/6.143, allocations: 462.4 kB / 2.466 GB, free: 114.1 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005725/6.148, allocations: 2.293 MB / 2.468 GB, free: 113.1 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.587e-05/6.148, allocations: 87.72 kB / 2.469 GB, free: 113 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002036/6.149, allocations: 127.1 kB / 2.469 GB, free: 113 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001958/6.151, allocations: 1.246 MB / 2.47 GB, free: 112.3 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.075e-05/6.151, allocations: 6.688 kB / 2.47 GB, free: 112.3 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001004/6.151, allocations: 51.61 kB / 2.47 GB, free: 112.3 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.279e-05/6.151, allocations: 30.38 kB / 2.47 GB, free: 112.3 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00129/6.152, allocations: 0.8362 MB / 2.471 GB, free: 112 MB / 0.8855 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.007797/6.16, allocations: 6.875 MB / 2.477 GB, free: 106.8 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001136/6.161, allocations: 1.133 MB / 2.479 GB, free: 105.9 MB / 0.8855 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004386/6.162, allocations: 317.9 kB / 2.479 GB, free: 105.8 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0039/6.165, allocations: 2.895 MB / 2.482 GB, free: 103.4 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005103/6.166, allocations: 351.1 kB / 2.482 GB, free: 103.3 MB / 0.8855 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000608/6.167, allocations: 97.92 kB / 2.482 GB, free: 103.2 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=60): time 3.136e-06/6.167, allocations: 0 / 2.482 GB, free: 103.2 MB / 0.8855 GB Notification: Performance of matching and sorting (n=60): time 0.00115/6.168, allocations: 0.6634 MB / 2.483 GB, free: 102.9 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.914e-05/6.168, allocations: 166.1 kB / 2.483 GB, free: 102.8 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001722/6.17, allocations: 1.343 MB / 2.484 GB, free: 102.2 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 7.066e-05/6.17, allocations: 44.58 kB / 2.484 GB, free: 102.2 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006558/6.17, allocations: 0.8916 MB / 2.485 GB, free: 101.5 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001365/6.17, allocations: 211.2 kB / 2.485 GB, free: 101.3 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.506e-05/6.171, allocations: 24.38 kB / 2.485 GB, free: 101.3 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 7.496e-05/6.171, allocations: 344.2 kB / 2.486 GB, free: 101 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003944/6.171, allocations: 271.8 kB / 2.486 GB, free: 100.9 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005989/6.172, allocations: 0.6998 MB / 2.487 GB, free: 100.2 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00054/6.172, allocations: 414.1 kB / 2.487 GB, free: 100.1 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.5e-06/6.172, allocations: 0 / 2.487 GB, free: 100.1 MB / 0.8855 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.001521/6.174, allocations: 1.102 MB / 2.488 GB, free: 99.64 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008229/6.175, allocations: 4.554 MB / 2.493 GB, free: 94.78 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.732e-05/6.175, allocations: 15.06 kB / 2.493 GB, free: 94.78 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.356e-05/6.175, allocations: 15.09 kB / 2.493 GB, free: 94.78 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009009/6.176, allocations: 252.7 kB / 2.493 GB, free: 94.75 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.285e-05/6.176, allocations: 21 kB / 2.493 GB, free: 94.75 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001301/6.177, allocations: 116.2 kB / 2.493 GB, free: 94.73 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001084/6.177, allocations: 59.45 kB / 2.493 GB, free: 94.72 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 8.987e-06/6.177, allocations: 3.281 kB / 2.493 GB, free: 94.72 MB / 0.8855 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001324/6.178, allocations: 0.9297 MB / 2.494 GB, free: 94.36 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.866e-05/6.178, allocations: 13.58 kB / 2.494 GB, free: 94.36 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.557e-05/6.178, allocations: 17.78 kB / 2.494 GB, free: 94.36 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007949/6.179, allocations: 246.9 kB / 2.494 GB, free: 94.34 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.749e-05/6.179, allocations: 20.88 kB / 2.494 GB, free: 94.34 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00112/6.18, allocations: 118.2 kB / 2.494 GB, free: 94.31 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.507e-05/6.18, allocations: 54.8 kB / 2.494 GB, free: 94.3 MB / 0.8855 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$PRE.TSet.T_start,TSet.T_start,$PRE.TSet.count,TSet.count,conPI.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (121): * Single equations (assignments): 117 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002298/6.181, allocations: 178.9 kB / 2.495 GB, free: 94.14 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002002/6.181, allocations: 168.8 kB / 2.495 GB, free: 94.06 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001746/6.183, allocations: 0.9427 MB / 2.496 GB, free: 93.7 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.558e-05/6.183, allocations: 9.688 kB / 2.496 GB, free: 93.7 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.295e-06/6.183, allocations: 6.484 kB / 2.496 GB, free: 93.7 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008791/6.184, allocations: 0.79 MB / 2.496 GB, free: 93.23 MB / 0.8855 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 postOpt removeSimpleEquations (simulation): time 0.003409/6.187, allocations: 2.143 MB / 2.499 GB, free: 92.23 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.703e-06/6.187, allocations: 3.812 kB / 2.499 GB, free: 92.23 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006281/6.188, allocations: 133.5 kB / 2.499 GB, free: 92.22 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000188/6.188, allocations: 30.98 kB / 2.499 GB, free: 92.21 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.256e-05/6.188, allocations: 19.59 kB / 2.499 GB, free: 92.2 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008458/6.189, allocations: 1.303 MB / 2.5 GB, free: 90.89 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/6.189, allocations: 0 / 2.5 GB, free: 90.89 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001678/6.19, allocations: 1.315 MB / 2.501 GB, free: 90.2 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007999/6.191, allocations: 344.4 kB / 2.502 GB, free: 89.96 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002183/6.192, allocations: 19.61 kB / 2.502 GB, free: 89.94 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008873/6.192, allocations: 100.1 kB / 2.502 GB, free: 89.93 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001318/6.193, allocations: 46.88 kB / 2.502 GB, free: 89.93 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.786e-05/6.193, allocations: 35.22 kB / 2.502 GB, free: 89.92 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.001706/6.194, allocations: 1.081 MB / 2.503 GB, free: 89.46 MB / 0.8855 GB Notification: Performance of sort global known variables: time 2.2e-07/6.194, allocations: 0 / 2.503 GB, free: 89.46 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.004086/6.198, allocations: 1.016 MB / 2.504 GB, free: 89.19 MB / 0.8855 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 6 (vol.dynBal.U,mov.filter.x[1],mov.filter.x[2],conPI.I.y,THeaOut.T,coo.outCon.T) * Number of discrete variables: 3 ($whenCondition1,TSet.T_start,TSet.count) * Number of discrete states: 1 (TSet.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (69): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003068/6.202, allocations: 1.303 MB / 2.505 GB, free: 88.83 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.002601/6.204, allocations: 1.444 MB / 2.507 GB, free: 88.19 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 9.187e-06/6.204, allocations: 0 / 2.507 GB, free: 88.19 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0008333/6.205, allocations: 465.2 kB / 2.507 GB, free: 87.96 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003679/6.209, allocations: 0.733 MB / 2.508 GB, free: 87.79 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005171/6.214, allocations: 2.337 MB / 2.51 GB, free: 86.63 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001133/6.215, allocations: 1.408 MB / 2.511 GB, free: 85.61 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.003035/6.218, allocations: 0.6048 MB / 2.512 GB, free: 85.41 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000335/6.218, allocations: 112 kB / 2.512 GB, free: 85.39 MB / 0.8855 GB Notification: Performance of SimCode: time 1.252e-06/6.218, allocations: 0 / 2.512 GB, free: 85.39 MB / 0.8855 GB Notification: Performance of Templates: time 0.06387/6.282, allocations: 40.46 MB / 2.552 GB, free: 52.62 MB / 0.8855 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterCooler_T.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterCooler_T.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterCooler_T.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterCooler_T.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterCooler_T.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterCooler_T -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterCooler_T.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterCooler_T_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_HeatExchangers_Examples_WaterCooler_T.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterCooler_T.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches