Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.IO.SignalExchange.Examples.WeatherStation.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo", uses=false) 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) 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) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Utilities.IO.SignalExchange.Examples.WeatherStation,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|weaSta.reaWeaTDryBul.y|weaSta.reaWeaTDewPoi.y|weaSta.reaWeaTBlaSky.y|weaSta.reaWeaHGloHor.y|weaSta.reaWeaHDifHor.y|weaSta.reaWeaHDirNor.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.IO.SignalExchange.Examples.WeatherStation") translateModel(Buildings.Utilities.IO.SignalExchange.Examples.WeatherStation,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|weaSta.reaWeaTDryBul.y|weaSta.reaWeaTDewPoi.y|weaSta.reaWeaTBlaSky.y|weaSta.reaWeaHGloHor.y|weaSta.reaWeaHDifHor.y|weaSta.reaWeaHDirNor.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.IO.SignalExchange.Examples.WeatherStation") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.45/2.45, allocations: 393.5 MB / 408.4 MB, free: 11.02 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001564/0.001564, allocations: 176 kB / 0.4902 GB, free: 2.25 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.663/1.663, allocations: 223.1 MB / 0.7992 GB, free: 14.72 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009123/0.0009122, allocations: 92.33 kB / 0.9396 GB, free: 1.922 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003833/0.0003831, allocations: 11.06 kB / 1.09 GB, free: 216.2 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.307/0.3074, allocations: 143 MB / 1.229 GB, free: 105.8 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.153/4.46, allocations: 1.733 GB / 2.962 GB, free: 254.5 MB / 1.167 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000283/4.461, allocations: 96.89 kB / 2.962 GB, free: 254.4 MB / 1.167 GB Notification: Performance of FrontEnd - DAE generated: time 0.1401/4.601, allocations: 64.34 MB / 3.025 GB, free: 189.8 MB / 1.167 GB Notification: Performance of FrontEnd: time 3.015e-06/4.601, allocations: 0 / 3.025 GB, free: 189.8 MB / 1.167 GB Notification: Performance of Transformations before backend: time 0.0001505/4.601, allocations: 31.94 kB / 3.025 GB, free: 189.8 MB / 1.167 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 239 * Number of variables: 239 Notification: Performance of Generate backend data structure: time 0.003043/4.604, allocations: 1.386 MB / 3.026 GB, free: 188.3 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 4.655e-05/4.604, allocations: 8.562 kB / 3.026 GB, free: 188.3 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001083/4.605, allocations: 214.2 kB / 3.026 GB, free: 188.1 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001525/4.607, allocations: 0.7794 MB / 3.027 GB, free: 187.3 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.928e-05/4.607, allocations: 74 kB / 3.027 GB, free: 187.2 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001449/4.607, allocations: 92 kB / 3.027 GB, free: 187.1 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001625/4.609, allocations: 0.9652 MB / 3.028 GB, free: 186.1 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.1e-05/4.609, allocations: 3.938 kB / 3.028 GB, free: 186.1 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.985e-05/4.609, allocations: 43.95 kB / 3.028 GB, free: 186.1 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.631e-05/4.609, allocations: 20 kB / 3.028 GB, free: 186.1 MB / 1.167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001673/4.61, allocations: 1.128 MB / 3.029 GB, free: 184.9 MB / 1.167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004079/4.615, allocations: 2.737 MB / 3.032 GB, free: 182.1 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001123/4.616, allocations: 0.7063 MB / 3.033 GB, free: 181.4 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 8.302e-05/4.616, allocations: 40.52 kB / 3.033 GB, free: 181.4 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006379/4.616, allocations: 421.6 kB / 3.033 GB, free: 180.9 MB / 1.167 GB Notification: Performance of pre-optimization done (n=69): time 3.566e-06/4.616, allocations: 0 / 3.033 GB, free: 180.9 MB / 1.167 GB Notification: Performance of matching and sorting (n=69): time 0.002705/4.619, allocations: 1.091 MB / 3.034 GB, free: 179.8 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.293e-05/4.619, allocations: 239.9 kB / 3.035 GB, free: 179.5 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009261/4.62, allocations: 0.7234 MB / 3.035 GB, free: 178.8 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 6.137e-05/4.62, allocations: 37.7 kB / 3.035 GB, free: 178.8 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003057/4.621, allocations: 499.9 kB / 3.036 GB, free: 178.3 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001411/4.621, allocations: 228.7 kB / 3.036 GB, free: 178 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.815e-05/4.621, allocations: 8 kB / 3.036 GB, free: 178 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 6.311e-05/4.621, allocations: 334 kB / 3.036 GB, free: 177.7 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003786/4.621, allocations: 213.2 kB / 3.037 GB, free: 177.5 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004416/4.622, allocations: 323.6 kB / 3.037 GB, free: 177.1 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004298/4.622, allocations: 259.1 kB / 3.037 GB, free: 176.9 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.977e-06/4.622, allocations: 0 / 3.037 GB, free: 176.9 MB / 1.167 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.002341/4.624, allocations: 0.7312 MB / 3.038 GB, free: 176.1 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 3.132e-05/4.625, allocations: 4 kB / 3.038 GB, free: 176.1 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.185e-05/4.625, allocations: 0 / 3.038 GB, free: 176.1 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009397/4.625, allocations: 88.83 kB / 3.038 GB, free: 176 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001001/4.627, allocations: 127.8 kB / 3.038 GB, free: 175.9 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002635/4.629, allocations: 1.555 MB / 3.04 GB, free: 174.2 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001094/4.63, allocations: 79.34 kB / 3.04 GB, free: 174.1 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000153/4.63, allocations: 27.98 kB / 3.04 GB, free: 174.1 MB / 1.167 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,$PRE.weaDat.conTimMin.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTim.tNext) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (71): * Single equations (assignments): 70 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0008943/4.631, allocations: 270.6 kB / 3.04 GB, free: 173.8 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004187/4.632, allocations: 106.7 kB / 3.04 GB, free: 173.7 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003598/4.635, allocations: 0.9957 MB / 3.041 GB, free: 172.7 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.163e-05/4.635, allocations: 8 kB / 3.041 GB, free: 172.7 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.91e-06/4.635, allocations: 0 / 3.041 GB, free: 172.7 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.379e-05/4.635, allocations: 3.984 kB / 3.041 GB, free: 172.7 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001899/4.637, allocations: 0.9621 MB / 3.042 GB, free: 171.7 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.987e-06/4.637, allocations: 0 / 3.042 GB, free: 171.7 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008485/4.638, allocations: 139.8 kB / 3.042 GB, free: 171.6 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007697/4.639, allocations: 80.78 kB / 3.042 GB, free: 171.5 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.965e-05/4.639, allocations: 23.98 kB / 3.042 GB, free: 171.5 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002327/4.642, allocations: 1.563 MB / 3.044 GB, free: 169.8 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/4.642, allocations: 3.938 kB / 3.044 GB, free: 169.8 MB / 1.167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002731/4.644, allocations: 0.8568 MB / 3.045 GB, free: 168.9 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007354/4.645, allocations: 303.4 kB / 3.045 GB, free: 168.6 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002504/4.645, allocations: 16 kB / 3.045 GB, free: 168.5 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008962/4.646, allocations: 67.94 kB / 3.045 GB, free: 168.5 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001633/4.646, allocations: 60.88 kB / 3.045 GB, free: 168.4 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.219e-05/4.646, allocations: 23.98 kB / 3.045 GB, free: 168.4 MB / 1.167 GB Notification: Performance of sorting global known variables: time 0.001325/4.648, allocations: 0.5849 MB / 3.046 GB, free: 167.8 MB / 1.167 GB Notification: Performance of sort global known variables: time 2.91e-07/4.648, allocations: 0 / 3.046 GB, free: 167.8 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.001725/4.65, allocations: 375 kB / 3.046 GB, free: 167.4 MB / 1.167 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition2,$whenCondition1,weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Number of discrete states: 2 (weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (80): * Single equations (assignments): 77 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.00316/4.653, allocations: 1.068 MB / 3.047 GB, free: 166.6 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.002117/4.655, allocations: 0.7082 MB / 3.048 GB, free: 165.8 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 4.839e-06/4.655, allocations: 3.938 kB / 3.048 GB, free: 165.8 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.001111/4.656, allocations: 484.4 kB / 3.048 GB, free: 165.3 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002199/4.658, allocations: 382.1 kB / 3.048 GB, free: 165 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006588/4.665, allocations: 2.394 MB / 3.051 GB, free: 162.6 MB / 1.167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000814/4.666, allocations: 1.094 MB / 3.052 GB, free: 161.4 MB / 1.167 GB Notification: Performance of simCode: alias equations: time 0.001669/4.667, allocations: 283 kB / 3.052 GB, free: 161.2 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003767/4.668, allocations: 99.39 kB / 3.052 GB, free: 161.1 MB / 1.167 GB Notification: Performance of SimCode: time 1.773e-06/4.668, allocations: 0 / 3.052 GB, free: 161.1 MB / 1.167 GB Notification: Performance of Templates: time 0.05093/4.719, allocations: 22.26 MB / 3.074 GB, free: 138.9 MB / 1.167 GB make -j1 -f Buildings_latest_Buildings.Utilities.IO.SignalExchange.Examples.WeatherStation.makefile (rm -f Buildings_latest_Buildings.Utilities.IO.SignalExchange.Examples.WeatherStation.pipe ; mkfifo Buildings_latest_Buildings.Utilities.IO.SignalExchange.Examples.WeatherStation.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.IO.SignalExchange.Examples.WeatherStation.pipe >> ../files/Buildings_latest_Buildings.Utilities.IO.SignalExchange.Examples.WeatherStation.sim & ./Buildings_latest_Buildings.Utilities.IO.SignalExchange.Examples.WeatherStation -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.IO.SignalExchange.Examples.WeatherStation.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.IO.SignalExchange.Examples.WeatherStation_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_IO_SignalExchange_Examples_WeatherStation.csv","../files/Buildings_latest_Buildings.Utilities.IO.SignalExchange.Examples.WeatherStation.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches