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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.006869/0.006869, allocations: 100.8 kB / 15.87 MB, free: 6.328 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.001228/0.001228, allocations: 195.5 kB / 16.79 MB, free: 6.254 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.435/1.435, allocations: 222.9 MB / 240.5 MB, free: 4.441 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.705/2.705, allocations: 461.8 MB / 0.7348 GB, free: 14.2 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001446/0.001446, allocations: 66.38 kB / 0.899 GB, free: 37.11 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3554/0.3568, allocations: 157.4 MB / 1.053 GB, free: 8.305 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.SignalExchange.Examples.WeatherStation): time 0.01017/0.3671, allocations: 5.603 MB / 1.058 GB, free: 2.676 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.1844/0.5515, allocations: 148.6 MB / 1.203 GB, free: 13.55 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00124/0.5527, allocations: 27.81 kB / 1.203 GB, free: 13.52 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.001157/0.554, allocations: 294.1 kB / 1.204 GB, free: 13.23 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.002056/0.556, allocations: 491.7 kB / 1.204 GB, free: 12.75 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.002221/0.5583, allocations: 0.7555 MB / 1.205 GB, free: 12 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.001985/0.5603, allocations: 1.453 MB / 1.206 GB, free: 10.54 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001313/0.5616, allocations: 0.7277 MB / 1.207 GB, free: 9.777 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007716/0.5624, allocations: 481.9 kB / 1.207 GB, free: 9.305 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007378/0.5631, allocations: 0.5344 MB / 1.208 GB, free: 8.77 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 0.0002536/0.5634, allocations: 64 kB / 1.208 GB, free: 8.707 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009839/0.5644, allocations: 403.7 kB / 1.208 GB, free: 8.312 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0003668/0.5648, allocations: 274.8 kB / 1.209 GB, free: 8.043 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0007095/0.5655, allocations: 0.5941 MB / 1.209 GB, free: 7.445 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.001531/0.567, allocations: 1.415 MB / 1.211 GB, free: 6.027 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.678e-06/0.567, allocations: 0 / 1.211 GB, free: 6.027 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.092e-06/0.567, allocations: 0 / 1.211 GB, free: 6.027 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 2.146e-05/0.5671, allocations: 0 / 1.211 GB, free: 6.027 MB / 0.9669 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.002911/0.57, allocations: 1.686 MB / 1.212 GB, free: 4.289 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.417e-05/0.57, allocations: 11.97 kB / 1.212 GB, free: 4.277 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009671/0.571, allocations: 215.1 kB / 1.212 GB, free: 4.066 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001233/0.5723, allocations: 0.8905 MB / 1.213 GB, free: 3.133 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.397e-05/0.5723, allocations: 81.98 kB / 1.213 GB, free: 3.051 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001247/0.5725, allocations: 96 kB / 1.213 GB, free: 2.957 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001751/0.5742, allocations: 1.032 MB / 1.214 GB, free: 1.887 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.093e-05/0.5742, allocations: 3.938 kB / 1.215 GB, free: 1.883 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.113e-05/0.5743, allocations: 44 kB / 1.215 GB, free: 1.84 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.984e-05/0.5744, allocations: 24 kB / 1.215 GB, free: 1.816 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001828/0.5762, allocations: 1.167 MB / 1.216 GB, free: 0.6445 MB / 0.9669 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.004449/0.5807, allocations: 3.032 MB / 1.219 GB, free: 13.49 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001483/0.5822, allocations: 0.8013 MB / 1.219 GB, free: 12.68 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005362/0.5827, allocations: 302.7 kB / 1.22 GB, free: 12.38 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 7.939e-05/0.5828, allocations: 32.61 kB / 1.22 GB, free: 12.35 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009697/0.5838, allocations: 495.1 kB / 1.22 GB, free: 11.85 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=78): time 3.246e-06/0.5838, allocations: 0 / 1.22 GB, free: 11.85 MB / 0.9825 GB Notification: Performance of matching and sorting (n=78): time 0.003258/0.5871, allocations: 1.209 MB / 1.221 GB, free: 10.61 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001077/0.5872, allocations: 192.6 kB / 1.222 GB, free: 10.38 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001173/0.5884, allocations: 0.7951 MB / 1.222 GB, free: 9.559 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 7.418e-05/0.5885, allocations: 45.7 kB / 1.222 GB, free: 9.508 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004342/0.5889, allocations: 0.5078 MB / 1.223 GB, free: 8.992 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002282/0.5891, allocations: 252.3 kB / 1.223 GB, free: 8.742 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000249/0.5894, allocations: 162.5 kB / 1.223 GB, free: 8.578 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001426/0.5896, allocations: 341.9 kB / 1.224 GB, free: 8.238 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005397/0.5901, allocations: 261.9 kB / 1.224 GB, free: 7.984 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006131/0.5907, allocations: 367 kB / 1.224 GB, free: 7.609 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001113/0.5918, allocations: 0.5994 MB / 1.225 GB, free: 7 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.497e-06/0.5919, allocations: 4 kB / 1.225 GB, free: 6.996 MB / 0.9825 GB Notification: Performance of matching and sorting (n=94) (initialization): time 0.001999/0.5939, allocations: 0.8642 MB / 1.226 GB, free: 6.117 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.738e-05/0.5939, allocations: 4 kB / 1.226 GB, free: 6.113 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.953e-06/0.5939, allocations: 4 kB / 1.226 GB, free: 6.109 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006001/0.5945, allocations: 84.81 kB / 1.226 GB, free: 6.023 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006316/0.5952, allocations: 163.8 kB / 1.226 GB, free: 5.863 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00206/0.5972, allocations: 1.524 MB / 1.227 GB, free: 4.203 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007898/0.598, allocations: 91.5 kB / 1.227 GB, free: 4.113 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.148e-05/0.5981, allocations: 35.98 kB / 1.228 GB, free: 4.078 MB / 0.9825 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.0005018/0.5986, allocations: 295.4 kB / 1.228 GB, free: 3.781 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002091/0.5988, allocations: 102.7 kB / 1.228 GB, free: 3.68 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002457/0.6013, allocations: 1.078 MB / 1.229 GB, free: 2.59 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.316e-06/0.6013, allocations: 8 kB / 1.229 GB, free: 2.582 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.755e-06/0.6013, allocations: 0 / 1.229 GB, free: 2.582 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.041e-05/0.6014, allocations: 7.984 kB / 1.229 GB, free: 2.574 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0013/0.6027, allocations: 1.006 MB / 1.23 GB, free: 1.52 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.552e-06/0.6027, allocations: 0 / 1.23 GB, free: 1.52 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005747/0.6033, allocations: 143.8 kB / 1.23 GB, free: 1.379 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005228/0.6038, allocations: 92.64 kB / 1.23 GB, free: 1.285 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.526e-05/0.6039, allocations: 27.98 kB / 1.23 GB, free: 1.258 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001911/0.6058, allocations: 1.555 MB / 1.232 GB, free: 15.56 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.442e-06/0.6058, allocations: 0 / 1.232 GB, free: 15.56 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001989/0.6078, allocations: 0.9433 MB / 1.233 GB, free: 14.6 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004158/0.6082, allocations: 283.5 kB / 1.233 GB, free: 14.3 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001605/0.6084, allocations: 27.89 kB / 1.233 GB, free: 14.27 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006558/0.6091, allocations: 66.19 kB / 1.233 GB, free: 14.21 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001528/0.6092, allocations: 72.83 kB / 1.233 GB, free: 14.14 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.628e-05/0.6093, allocations: 31.98 kB / 1.233 GB, free: 14.11 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0007493/0.6101, allocations: 0.5542 MB / 1.234 GB, free: 13.54 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.4e-07/0.6101, allocations: 0 / 1.234 GB, free: 13.54 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0009157/0.611, allocations: 347 kB / 1.234 GB, free: 13.2 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.001458/0.6125, allocations: 0.5918 MB / 1.235 GB, free: 12.78 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.001703/0.6142, allocations: 0.8234 MB / 1.235 GB, free: 11.95 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 5.22e-06/0.6142, allocations: 4.188 kB / 1.235 GB, free: 11.94 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0009483/0.6152, allocations: 0.5119 MB / 1.236 GB, free: 11.42 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001575/0.6167, allocations: 431.5 kB / 1.236 GB, free: 11 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003793/0.6205, allocations: 2.467 MB / 1.239 GB, free: 8.5 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007036/0.6213, allocations: 1.098 MB / 1.24 GB, free: 7.379 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003249/0.6216, allocations: 123.4 kB / 1.24 GB, free: 7.258 MB / 0.9981 GB Notification: Performance of SimCode: time 5.91e-07/0.6216, allocations: 0 / 1.24 GB, free: 7.258 MB / 0.9981 GB Notification: Performance of Templates: time 0.4892/1.111, allocations: 22.26 MB / 1.262 GB, free: 187.2 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/jenkins1/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