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/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001035/0.001035, allocations: 92.2 kB / 20.19 MB, free: 4.363 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001102/0.001102, allocations: 177 kB / 23.49 MB, free: 1.059 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9735/0.9735, allocations: 177.1 MB / 203.8 MB, free: 5.293 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.161/2.161, allocations: 429.5 MB / 0.6736 GB, free: 4.039 MB / 0.6355 GB " [Timeout remaining time 177] Using package Buildings with version 14.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Utilities.IO.SignalExchange.Examples.WeatherStation,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,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=2500,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") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.684e-06/1.684e-06, allocations: 0 / 0.8781 GB, free: 6.637 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.415e-05/1.583e-05, allocations: 2.312 kB / 0.8781 GB, free: 6.633 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.SignalExchange.Examples.WeatherStation): time 0.005069/0.005085, allocations: 5.416 MB / 0.8834 GB, free: 1.211 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.1239/0.129, allocations: 146.6 MB / 1.027 GB, free: 14.08 MB / 0.9948 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00104/0.13, allocations: 35.69 kB / 1.027 GB, free: 14.04 MB / 0.9948 GB Notification: Performance of NFTyping.typeComponents: time 0.0007537/0.1308, allocations: 381.2 kB / 1.027 GB, free: 13.67 MB / 0.9948 GB Notification: Performance of NFTyping.typeBindings: time 0.001515/0.1323, allocations: 0.5861 MB / 1.028 GB, free: 13.08 MB / 0.9948 GB Notification: Performance of NFTyping.typeClassSections: time 0.001533/0.1338, allocations: 0.9114 MB / 1.028 GB, free: 12.16 MB / 0.9948 GB Notification: Performance of NFFlatten.flatten: time 0.001492/0.1353, allocations: 1.647 MB / 1.03 GB, free: 10.51 MB / 0.9948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006613/0.136, allocations: 487.1 kB / 1.031 GB, free: 10 MB / 0.9948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008898/0.1369, allocations: 0.838 MB / 1.031 GB, free: 9.164 MB / 0.9948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004491/0.1373, allocations: 454.5 kB / 1.032 GB, free: 8.719 MB / 0.9948 GB Notification: Performance of NFPackage.collectConstants: time 0.0001361/0.1375, allocations: 144 kB / 1.032 GB, free: 8.578 MB / 0.9948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007006/0.1382, allocations: 0.5032 MB / 1.032 GB, free: 8.074 MB / 0.9948 GB Notification: Performance of NFScalarize.scalarize: time 0.0002367/0.1384, allocations: 358.7 kB / 1.033 GB, free: 7.723 MB / 0.9948 GB Notification: Performance of NFVerifyModel.verify: time 0.0003253/0.1387, allocations: 442.8 kB / 1.033 GB, free: 7.289 MB / 0.9948 GB Notification: Performance of NFConvertDAE.convert: time 0.001438/0.1402, allocations: 1.424 MB / 1.035 GB, free: 5.859 MB / 0.9948 GB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.1402, allocations: 0 / 1.035 GB, free: 5.859 MB / 0.9948 GB Notification: Performance of FrontEnd: time 1.162e-06/0.1402, allocations: 0 / 1.035 GB, free: 5.859 MB / 0.9948 GB Notification: Performance of Transformations before backend: time 1.881e-05/0.1402, allocations: 0 / 1.035 GB, free: 5.859 MB / 0.9948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 257 * Number of variables: 257 Notification: Performance of Generate backend data structure: time 0.001921/0.1421, allocations: 1.783 MB / 1.036 GB, free: 4.027 MB / 0.9948 GB Notification: Performance of prepare preOptimizeDAE: time 3.644e-05/0.1421, allocations: 12.03 kB / 1.036 GB, free: 4.016 MB / 0.9948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009244/0.1431, allocations: 375.3 kB / 1.037 GB, free: 3.648 MB / 0.9948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009129/0.144, allocations: 0.8571 MB / 1.038 GB, free: 2.762 MB / 0.9948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.243e-05/0.144, allocations: 86.14 kB / 1.038 GB, free: 2.676 MB / 0.9948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.046e-05/0.1441, allocations: 111.9 kB / 1.038 GB, free: 2.566 MB / 0.9948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00106/0.1452, allocations: 1.095 MB / 1.039 GB, free: 1.328 MB / 0.9948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.934e-05/0.1452, allocations: 4 kB / 1.039 GB, free: 1.324 MB / 0.9948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.183e-05/0.1453, allocations: 43.98 kB / 1.039 GB, free: 1.281 MB / 0.9948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.224e-05/0.1453, allocations: 24 kB / 1.039 GB, free: 1.258 MB / 0.9948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009228/0.1462, allocations: 0.8231 MB / 1.04 GB, free: 444 kB / 0.9948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002627/0.1488, allocations: 2.623 MB / 1.042 GB, free: 13.75 MB / 1.01 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007517/0.1496, allocations: 0.5068 MB / 1.043 GB, free: 13.23 MB / 1.01 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002319/0.1498, allocations: 169.6 kB / 1.043 GB, free: 13.07 MB / 1.01 GB Notification: Performance of preOpt evalFunc (simulation): time 5.545e-05/0.1499, allocations: 32.62 kB / 1.043 GB, free: 13.04 MB / 1.01 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005733/0.1504, allocations: 498.5 kB / 1.043 GB, free: 12.5 MB / 1.01 GB Notification: Performance of pre-optimization done (n=86): time 2.124e-06/0.1504, allocations: 0 / 1.043 GB, free: 12.5 MB / 1.01 GB Notification: Performance of matching and sorting (n=86): time 0.001567/0.152, allocations: 0.8624 MB / 1.044 GB, free: 11.63 MB / 1.01 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.55e-05/0.1521, allocations: 200.9 kB / 1.044 GB, free: 11.39 MB / 1.01 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005835/0.1527, allocations: 0.7142 MB / 1.045 GB, free: 10.66 MB / 1.01 GB Notification: Performance of collectPreVariables (initialization): time 5.192e-05/0.1527, allocations: 49.7 kB / 1.045 GB, free: 10.61 MB / 1.01 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003024/0.153, allocations: 0.5701 MB / 1.046 GB, free: 10.03 MB / 1.01 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001482/0.1532, allocations: 281.6 kB / 1.046 GB, free: 9.75 MB / 1.01 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001706/0.1533, allocations: 184.2 kB / 1.046 GB, free: 9.562 MB / 1.01 GB Notification: Performance of setup shared object (initialization): time 0.0001203/0.1535, allocations: 0.5082 MB / 1.047 GB, free: 9.047 MB / 1.01 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002367/0.1537, allocations: 145.9 kB / 1.047 GB, free: 8.902 MB / 1.01 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003414/0.154, allocations: 381.8 kB / 1.047 GB, free: 8.48 MB / 1.01 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000513/0.1546, allocations: 395.1 kB / 1.048 GB, free: 8.078 MB / 1.01 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.348e-06/0.1546, allocations: 4 kB / 1.048 GB, free: 8.074 MB / 1.01 GB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001004/0.1556, allocations: 0.6917 MB / 1.048 GB, free: 7.371 MB / 1.01 GB Notification: Performance of prepare postOptimizeDAE: time 1.852e-05/0.1556, allocations: 8 kB / 1.048 GB, free: 7.363 MB / 1.01 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.661e-06/0.1556, allocations: 0 / 1.048 GB, free: 7.363 MB / 1.01 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004709/0.1561, allocations: 135.6 kB / 1.048 GB, free: 7.227 MB / 1.01 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003739/0.1564, allocations: 175.7 kB / 1.049 GB, free: 7.055 MB / 1.01 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001401/0.1578, allocations: 1.902 MB / 1.05 GB, free: 5.023 MB / 1.01 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002833/0.1581, allocations: 71.59 kB / 1.05 GB, free: 4.953 MB / 1.01 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.754e-05/0.1582, allocations: 43.91 kB / 1.05 GB, free: 4.91 MB / 1.01 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 27 (weaDat.conTim.canRepeatWeatherFile,weaDat.conTimMin.canRepeatWeatherFile,weaDat.decAng.k,$PRE.weaDat.decAng.k,weaDat.decAng.tNext,$PRE.weaDat.decAng.tNext,weaDat.eqnTim.k,$PRE.weaDat.eqnTim.k,weaDat.eqnTim.tNext,$PRE.weaDat.eqnTim.tNext,weaDat.conTim.k,$PRE.weaDat.conTim.k,weaDat.conTim.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTimMin.k,$PRE.weaDat.conTimMin.k,weaDat.conTimMin.tNext,$PRE.weaDat.conTimMin.tNext,weaDat.locTim.k,$PRE.weaDat.locTim.k,weaDat.locTim.tNext,$PRE.weaDat.locTim.tNext,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (105): * Single equations (assignments): 104 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0002159/0.1584, allocations: 223 kB / 1.051 GB, free: 4.68 MB / 1.01 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001301/0.1585, allocations: 135.3 kB / 1.051 GB, free: 4.547 MB / 1.01 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001323/0.1598, allocations: 0.8555 MB / 1.052 GB, free: 3.68 MB / 1.01 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.721e-06/0.1598, allocations: 8 kB / 1.052 GB, free: 3.672 MB / 1.01 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.774e-06/0.1598, allocations: 0 / 1.052 GB, free: 3.672 MB / 1.01 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.234e-06/0.1598, allocations: 7.984 kB / 1.052 GB, free: 3.664 MB / 1.01 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001902/0.1618, allocations: 1.729 MB / 1.053 GB, free: 1.875 MB / 1.01 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.917e-06/0.1618, allocations: 3.984 kB / 1.053 GB, free: 1.871 MB / 1.01 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002952/0.162, allocations: 147.8 kB / 1.054 GB, free: 1.727 MB / 1.01 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003358/0.1624, allocations: 111.6 kB / 1.054 GB, free: 1.613 MB / 1.01 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.648e-05/0.1624, allocations: 23.98 kB / 1.054 GB, free: 1.59 MB / 1.01 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3915/0.5539, allocations: 1.918 MB / 1.056 GB, free: 218.4 MB / 1.01 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.5539, allocations: 2.656 kB / 1.056 GB, free: 218.4 MB / 1.01 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001298/0.5552, allocations: 0.8947 MB / 1.056 GB, free: 218.2 MB / 1.01 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000275/0.5555, allocations: 222.5 kB / 1.057 GB, free: 218.2 MB / 1.01 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.616e-05/0.5556, allocations: 22.41 kB / 1.057 GB, free: 218.2 MB / 1.01 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002926/0.5559, allocations: 44.42 kB / 1.057 GB, free: 218.2 MB / 1.01 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001297/0.556, allocations: 77.78 kB / 1.057 GB, free: 218.2 MB / 1.01 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.152e-05/0.556, allocations: 36.5 kB / 1.057 GB, free: 218.2 MB / 1.01 GB Notification: Performance of sorting global known variables: time 0.000397/0.5564, allocations: 472.9 kB / 1.057 GB, free: 218 MB / 1.01 GB Notification: Performance of sort global known variables: time 1.81e-07/0.5564, allocations: 0 / 1.057 GB, free: 218 MB / 1.01 GB Notification: Performance of remove unused functions: time 0.0007371/0.5572, allocations: 369.2 kB / 1.058 GB, free: 218 MB / 1.01 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,weaDat.locTim.tNext,weaDat.locTim.k,weaDat.conTimMin.tNext,weaDat.conTimMin.k,weaDat.conTim.tNext,weaDat.conTim.k,weaDat.eqnTim.tNext,weaDat.eqnTim.k,weaDat.decAng.tNext,weaDat.decAng.k) * Number of discrete states: 10 (weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.locTim.tNext,weaDat.decAng.tNext,weaDat.conTimMin.tNext,weaDat.decAng.k,weaDat.eqnTim.k,weaDat.conTim.k,weaDat.conTimMin.k,weaDat.locTim.k) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (96): * Single equations (assignments): 85 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 10 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001189/0.5584, allocations: 0.6304 MB / 1.058 GB, free: 217.9 MB / 1.01 GB Notification: Performance of simCode: created initialization part: time 0.0008628/0.5592, allocations: 0.6694 MB / 1.059 GB, free: 217.7 MB / 1.01 GB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.5592, allocations: 0 / 1.059 GB, free: 217.7 MB / 1.01 GB Notification: Performance of simCode: created simulation system equations: time 0.0004009/0.5596, allocations: 490.2 kB / 1.059 GB, free: 217.5 MB / 1.01 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009324/0.5606, allocations: 495.2 kB / 1.06 GB, free: 217.5 MB / 1.01 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00234/0.5629, allocations: 1.808 MB / 1.062 GB, free: 216.6 MB / 1.01 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001164/0.563, allocations: 219.4 kB / 1.062 GB, free: 216.5 MB / 1.01 GB Notification: Performance of simCode: alias equations: time 0.0004948/0.5635, allocations: 274.2 kB / 1.062 GB, free: 216.5 MB / 1.01 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001782/0.5637, allocations: 121.3 kB / 1.062 GB, free: 216.5 MB / 1.01 GB Notification: Performance of SimCode: time 8.22e-07/0.5637, allocations: 0 / 1.062 GB, free: 216.5 MB / 1.01 GB Notification: Performance of Templates: time 0.02014/0.5838, allocations: 18.2 MB / 1.08 GB, free: 214.2 MB / 1.01 GB " [Timeout remaining time 299] make -j1 -f Buildings_latest_Buildings.Utilities.IO.SignalExchange.Examples.WeatherStation.makefile [Timeout 300] (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=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.IO.SignalExchange.Examples.WeatherStation.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Utilities.IO.SignalExchange.Examples.WeatherStation_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_IO_SignalExchange_Examples_WeatherStation.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 6.3807771189603955]