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.0.0+maint.om/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/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001657/0.001657, allocations: 115.3 kB / 15.34 MB, free: 0.5156 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001978/0.001978, allocations: 194.5 kB / 16.25 MB, free: 6.633 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.443/1.443, allocations: 222.9 MB / 239.9 MB, free: 4.516 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.872/2.872, allocations: 472.7 MB / 0.7448 GB, free: 4.852 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00132/0.00132, allocations: 64.03 kB / 0.9116 GB, free: 33.61 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3254/0.3268, allocations: 159.9 MB / 1.068 GB, free: 10.76 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.SignalExchange.Examples.WeatherStation): time 0.008643/0.3355, allocations: 5.594 MB / 1.073 GB, free: 5.137 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.1641/0.4996, allocations: 148.7 MB / 1.218 GB, free: 15.92 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001104/0.5007, allocations: 27.81 kB / 1.218 GB, free: 15.89 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.001067/0.5019, allocations: 306.1 kB / 1.219 GB, free: 15.59 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.002068/0.504, allocations: 0.4892 MB / 1.219 GB, free: 15.1 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.002026/0.506, allocations: 0.7805 MB / 1.22 GB, free: 14.33 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.001741/0.5077, allocations: 1.546 MB / 1.221 GB, free: 12.77 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001049/0.5088, allocations: 0.7713 MB / 1.222 GB, free: 11.96 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006414/0.5095, allocations: 0.5332 MB / 1.223 GB, free: 11.43 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006232/0.5101, allocations: 0.5715 MB / 1.223 GB, free: 10.85 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 0.0001617/0.5103, allocations: 132 kB / 1.223 GB, free: 10.72 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007966/0.5111, allocations: 475.6 kB / 1.224 GB, free: 10.26 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.00029/0.5114, allocations: 330.8 kB / 1.224 GB, free: 9.934 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0005251/0.5119, allocations: 0.676 MB / 1.225 GB, free: 9.254 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.001896/0.5138, allocations: 1.858 MB / 1.227 GB, free: 7.391 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 6.452e-06/0.5138, allocations: 4 kB / 1.227 GB, free: 7.387 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.333e-06/0.5138, allocations: 0 / 1.227 GB, free: 7.387 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 2.06e-05/0.5139, allocations: 0 / 1.227 GB, free: 7.387 MB / 0.9825 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 252 * Number of variables: 252 Notification: Performance of Generate backend data structure: time 0.003025/0.5169, allocations: 1.678 MB / 1.228 GB, free: 5.66 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.556e-05/0.517, allocations: 15.97 kB / 1.228 GB, free: 5.645 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001038/0.518, allocations: 219 kB / 1.229 GB, free: 5.43 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001211/0.5192, allocations: 0.8829 MB / 1.229 GB, free: 4.504 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.113e-05/0.5193, allocations: 74 kB / 1.229 GB, free: 4.43 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001796/0.5195, allocations: 96 kB / 1.23 GB, free: 4.336 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001813/0.5213, allocations: 1.032 MB / 1.231 GB, free: 3.266 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.608e-05/0.5213, allocations: 4 kB / 1.231 GB, free: 3.262 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.487e-05/0.5214, allocations: 43.98 kB / 1.231 GB, free: 3.219 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.11e-05/0.5215, allocations: 24 kB / 1.231 GB, free: 3.195 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001818/0.5233, allocations: 1.167 MB / 1.232 GB, free: 2.027 MB / 0.9825 GB Warning: The model contains alias variables with redundant start and/or conflicting 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.004388/0.5277, allocations: 3.04 MB / 1.235 GB, free: 14.86 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001441/0.5291, allocations: 0.7974 MB / 1.236 GB, free: 14.06 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000515/0.5297, allocations: 298.7 kB / 1.236 GB, free: 13.77 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 7.881e-05/0.5298, allocations: 28.53 kB / 1.236 GB, free: 13.74 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009089/0.5307, allocations: 0.4951 MB / 1.236 GB, free: 13.23 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=78): time 2.425e-06/0.5307, allocations: 0 / 1.236 GB, free: 13.23 MB / 0.9981 GB Notification: Performance of matching and sorting (n=78): time 0.00311/0.5338, allocations: 1.201 MB / 1.237 GB, free: 12 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.687e-05/0.5339, allocations: 188.6 kB / 1.238 GB, free: 11.77 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001016/0.5349, allocations: 0.7951 MB / 1.238 GB, free: 10.95 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 6.498e-05/0.535, allocations: 49.64 kB / 1.238 GB, free: 10.9 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003731/0.5354, allocations: 0.5039 MB / 1.239 GB, free: 10.39 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002195/0.5356, allocations: 256.4 kB / 1.239 GB, free: 10.13 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002341/0.5359, allocations: 158.5 kB / 1.239 GB, free: 9.973 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001136/0.536, allocations: 341.9 kB / 1.24 GB, free: 9.633 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005162/0.5365, allocations: 261.9 kB / 1.24 GB, free: 9.375 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006073/0.5371, allocations: 363.1 kB / 1.24 GB, free: 9.008 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001078/0.5382, allocations: 0.6033 MB / 1.241 GB, free: 8.391 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.387e-06/0.5382, allocations: 0 / 1.241 GB, free: 8.391 MB / 0.9981 GB Notification: Performance of matching and sorting (n=94) (initialization): time 0.001979/0.5402, allocations: 0.8603 MB / 1.242 GB, free: 7.523 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 2.532e-05/0.5403, allocations: 4 kB / 1.242 GB, free: 7.52 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.749e-06/0.5403, allocations: 3.938 kB / 1.242 GB, free: 7.516 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006394/0.5409, allocations: 88.8 kB / 1.242 GB, free: 7.426 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006426/0.5416, allocations: 155.8 kB / 1.242 GB, free: 7.273 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002227/0.5438, allocations: 1.652 MB / 1.244 GB, free: 5.473 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007931/0.5446, allocations: 91.27 kB / 1.244 GB, free: 5.383 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.37e-05/0.5447, allocations: 35.97 kB / 1.244 GB, free: 5.348 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 17 (weaDat.conTim.canRepeatWeatherFile,weaDat.conTimMin.canRepeatWeatherFile,weaDat.decAng.tNext,$PRE.weaDat.decAng.tNext,weaDat.eqnTim.tNext,$PRE.weaDat.eqnTim.tNext,weaDat.conTim.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTimMin.tNext,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 (92): * Single equations (assignments): 91 * 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.0005004/0.5452, allocations: 300.8 kB / 1.244 GB, free: 5.047 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001814/0.5454, allocations: 106.9 kB / 1.244 GB, free: 4.941 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002397/0.5478, allocations: 1.074 MB / 1.245 GB, free: 3.859 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.138e-05/0.5478, allocations: 16 kB / 1.245 GB, free: 3.844 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.209e-06/0.5478, allocations: 3.938 kB / 1.245 GB, free: 3.84 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.024e-05/0.5479, allocations: 3.984 kB / 1.245 GB, free: 3.836 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001175/0.549, allocations: 1.002 MB / 1.246 GB, free: 2.781 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.067e-06/0.549, allocations: 0 / 1.246 GB, free: 2.781 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005596/0.5496, allocations: 143.8 kB / 1.246 GB, free: 2.641 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004349/0.5501, allocations: 68.8 kB / 1.246 GB, free: 2.57 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.569e-05/0.5501, allocations: 27.97 kB / 1.246 GB, free: 2.543 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001999/0.5521, allocations: 1.681 MB / 1.248 GB, free: 0.7148 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.5521, allocations: 3.984 kB / 1.248 GB, free: 0.7109 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4863/1.038, allocations: 0.9378 MB / 1.249 GB, free: 183 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006372/1.039, allocations: 287.2 kB / 1.249 GB, free: 182.9 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001578/1.039, allocations: 21.34 kB / 1.249 GB, free: 182.9 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006546/1.04, allocations: 67.98 kB / 1.249 GB, free: 182.9 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001858/1.04, allocations: 69.73 kB / 1.249 GB, free: 182.9 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.253e-05/1.04, allocations: 35.73 kB / 1.249 GB, free: 182.9 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0008702/1.041, allocations: 0.5556 MB / 1.25 GB, free: 182.8 MB / 0.9981 GB Notification: Performance of sort global known variables: time 6.91e-07/1.041, allocations: 0.75 kB / 1.25 GB, free: 182.8 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0009879/1.042, allocations: 357.3 kB / 1.25 GB, free: 182.8 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,weaDat.locTim.tNext,weaDat.conTimMin.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext) * Number of discrete states: 5 (weaDat.locTim.tNext,weaDat.conTimMin.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (89): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.001494/1.044, allocations: 0.5846 MB / 1.251 GB, free: 182.7 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.00283/1.046, allocations: 1.027 MB / 1.252 GB, free: 182.6 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 8.636e-06/1.047, allocations: 8.828 kB / 1.252 GB, free: 182.6 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.00102/1.048, allocations: 0.509 MB / 1.252 GB, free: 182.5 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001875/1.049, allocations: 469.1 kB / 1.253 GB, free: 182.4 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003851/1.053, allocations: 2.434 MB / 1.255 GB, free: 181.2 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005764/1.054, allocations: 1.102 MB / 1.256 GB, free: 180.5 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.001024/1.055, allocations: 285 kB / 1.257 GB, free: 180.4 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002582/1.055, allocations: 115.5 kB / 1.257 GB, free: 180.4 MB / 0.9981 GB Notification: Performance of SimCode: time 6.31e-07/1.055, allocations: 0 / 1.257 GB, free: 180.4 MB / 0.9981 GB Notification: Performance of Templates: time 0.03618/1.091, allocations: 17.27 MB / 1.273 GB, free: 177.1 MB / 0.9981 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.IO.SignalExchange.Examples.WeatherStation.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches