Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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_9_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_9_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.01135/0.01135, allocations: 99.31 kB / 15.73 MB, free: 6.051 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.001586/0.001586, allocations: 188.9 kB / 16.67 MB, free: 5.977 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.398/1.398, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.348/2.348, allocations: 390.2 MB / 0.6648 GB, free: 200 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001173/0.001173, allocations: 61.69 kB / 0.9508 GB, free: 5.672 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2988/0.3, allocations: 140.4 MB / 1.088 GB, free: 1.551 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.SignalExchange.Examples.WeatherStation): time 0.006683/0.3067, allocations: 5.106 MB / 1.093 GB, free: 12.42 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.1706/0.4773, allocations: 150.8 MB / 1.24 GB, free: 4.977 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001678/0.479, allocations: 23.88 kB / 1.24 GB, free: 4.953 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0009535/0.4801, allocations: 349.4 kB / 1.241 GB, free: 4.609 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.002005/0.4821, allocations: 0.5179 MB / 1.241 GB, free: 4.094 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.001986/0.4841, allocations: 0.8715 MB / 1.242 GB, free: 3.227 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.001684/0.4858, allocations: 1.473 MB / 1.243 GB, free: 1.746 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001057/0.4869, allocations: 0.8177 MB / 1.244 GB, free: 0.8945 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006613/0.4876, allocations: 0.5254 MB / 1.245 GB, free: 376 kB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005919/0.4882, allocations: 0.5597 MB / 1.245 GB, free: 15.8 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 0.0001752/0.4883, allocations: 132 kB / 1.245 GB, free: 15.68 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009959/0.4893, allocations: 499.6 kB / 1.246 GB, free: 15.19 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 0.00029/0.4896, allocations: 334.8 kB / 1.246 GB, free: 14.86 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.0005043/0.4902, allocations: 0.6448 MB / 1.247 GB, free: 14.21 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.002013/0.4922, allocations: 1.884 MB / 1.249 GB, free: 12.32 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 7.144e-06/0.4922, allocations: 4 kB / 1.249 GB, free: 12.32 MB / 1.014 GB Notification: Performance of FrontEnd: time 2.124e-06/0.4922, allocations: 0 / 1.249 GB, free: 12.32 MB / 1.014 GB Notification: Performance of Transformations before backend: time 1.59e-05/0.4922, allocations: 0 / 1.249 GB, free: 12.32 MB / 1.014 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.002601/0.4948, allocations: 1.663 MB / 1.25 GB, free: 10.6 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.876e-05/0.4949, allocations: 12.03 kB / 1.25 GB, free: 10.59 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009289/0.4958, allocations: 215 kB / 1.25 GB, free: 10.38 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001207/0.497, allocations: 0.9139 MB / 1.251 GB, free: 9.422 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.436e-05/0.4971, allocations: 74 kB / 1.251 GB, free: 9.348 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001213/0.4972, allocations: 99.98 kB / 1.252 GB, free: 9.25 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001628/0.4989, allocations: 1.028 MB / 1.253 GB, free: 8.184 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.869e-05/0.4989, allocations: 0 / 1.253 GB, free: 8.184 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.76e-05/0.499, allocations: 40 kB / 1.253 GB, free: 8.145 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.039e-05/0.499, allocations: 24 kB / 1.253 GB, free: 8.121 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001747/0.5008, allocations: 1.171 MB / 1.254 GB, free: 6.945 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00411/0.5049, allocations: 2.796 MB / 1.256 GB, free: 4.078 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001394/0.5063, allocations: 0.7977 MB / 1.257 GB, free: 3.273 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005128/0.5068, allocations: 302.7 kB / 1.258 GB, free: 2.977 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 7.809e-05/0.5069, allocations: 28.61 kB / 1.258 GB, free: 2.949 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008294/0.5078, allocations: 491.1 kB / 1.258 GB, free: 2.449 MB / 1.014 GB Notification: Performance of pre-optimization done (n=78): time 2.254e-06/0.5078, allocations: 0 / 1.258 GB, free: 2.449 MB / 1.014 GB Notification: Performance of matching and sorting (n=78): time 0.003021/0.5108, allocations: 1.217 MB / 1.259 GB, free: 1.203 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001048/0.5109, allocations: 188.6 kB / 1.259 GB, free: 0.9766 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001005/0.5119, allocations: 0.799 MB / 1.26 GB, free: 156 kB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 6.594e-05/0.512, allocations: 41.7 kB / 1.26 GB, free: 108 kB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.6552/1.167, allocations: 0.4971 MB / 1.261 GB, free: 174.1 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003865/1.168, allocations: 253.5 kB / 1.261 GB, free: 174 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003249/1.168, allocations: 167.6 kB / 1.261 GB, free: 174 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 8.237e-05/1.168, allocations: 336.6 kB / 1.261 GB, free: 173.7 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006449/1.169, allocations: 266.2 kB / 1.262 GB, free: 173.7 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006612/1.169, allocations: 359.6 kB / 1.262 GB, free: 173.6 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001086/1.171, allocations: 0.6051 MB / 1.263 GB, free: 173.3 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/1.171, allocations: 0 / 1.263 GB, free: 173.3 MB / 1.014 GB Notification: Performance of matching and sorting (n=94) (initialization): time 0.002175/1.173, allocations: 0.8607 MB / 1.263 GB, free: 173 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 2.273e-05/1.173, allocations: 5.641 kB / 1.263 GB, free: 173 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.049e-05/1.173, allocations: 1.5 kB / 1.263 GB, free: 173 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006517/1.173, allocations: 86.28 kB / 1.264 GB, free: 172.9 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006641/1.174, allocations: 154.4 kB / 1.264 GB, free: 172.9 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001936/1.176, allocations: 1.64 MB / 1.265 GB, free: 171.4 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008012/1.177, allocations: 100 kB / 1.265 GB, free: 171.4 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.107e-05/1.177, allocations: 32.98 kB / 1.265 GB, free: 171.4 MB / 1.014 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.0005132/1.177, allocations: 294.5 kB / 1.266 GB, free: 171.1 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001788/1.178, allocations: 98.94 kB / 1.266 GB, free: 171.1 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002421/1.18, allocations: 1.082 MB / 1.267 GB, free: 170.7 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.326e-05/1.18, allocations: 8.75 kB / 1.267 GB, free: 170.7 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.476e-06/1.18, allocations: 0.7812 kB / 1.267 GB, free: 170.7 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.305e-05/1.18, allocations: 7.531 kB / 1.267 GB, free: 170.7 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001358/1.182, allocations: 0.9987 MB / 1.268 GB, free: 170.2 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.671e-06/1.182, allocations: 1.203 kB / 1.268 GB, free: 170.2 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005892/1.182, allocations: 139.2 kB / 1.268 GB, free: 170.2 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004582/1.183, allocations: 89.94 kB / 1.268 GB, free: 170.1 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.428e-05/1.183, allocations: 18.75 kB / 1.268 GB, free: 170.1 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001626/1.184, allocations: 1.669 MB / 1.27 GB, free: 168.6 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/1.184, allocations: 1.516 kB / 1.27 GB, free: 168.6 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002266/1.187, allocations: 0.9419 MB / 1.271 GB, free: 168.2 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000488/1.187, allocations: 289.2 kB / 1.271 GB, free: 168 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002238/1.187, allocations: 21.09 kB / 1.271 GB, free: 168 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006527/1.188, allocations: 66.19 kB / 1.271 GB, free: 167.9 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000187/1.188, allocations: 67.22 kB / 1.271 GB, free: 167.9 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.257e-05/1.188, allocations: 40.41 kB / 1.271 GB, free: 167.9 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.0009056/1.189, allocations: 0.5553 MB / 1.272 GB, free: 167.7 MB / 1.014 GB Notification: Performance of sort global known variables: time 3.2e-07/1.189, allocations: 1.031 kB / 1.272 GB, free: 167.7 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.001109/1.19, allocations: 339 kB / 1.272 GB, free: 167.6 MB / 1.014 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.001443/1.192, allocations: 0.6053 MB / 1.273 GB, free: 167.4 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.002038/1.194, allocations: 0.8289 MB / 1.273 GB, free: 167.1 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 3.967e-06/1.194, allocations: 0.7188 kB / 1.273 GB, free: 167.1 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.00108/1.195, allocations: 0.5074 MB / 1.274 GB, free: 166.8 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001877/1.197, allocations: 455.3 kB / 1.274 GB, free: 166.7 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004448/1.201, allocations: 2.027 MB / 1.276 GB, free: 165.7 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006399/1.202, allocations: 1.102 MB / 1.277 GB, free: 165 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.001069/1.203, allocations: 294.4 kB / 1.278 GB, free: 164.9 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002685/1.203, allocations: 113.8 kB / 1.278 GB, free: 164.9 MB / 1.014 GB Notification: Performance of SimCode: time 1.282e-06/1.203, allocations: 1.156 kB / 1.278 GB, free: 164.9 MB / 1.014 GB Notification: Performance of Templates: time 0.04075/1.244, allocations: 17.44 MB / 1.295 GB, free: 160 MB / 1.014 GB make -j1 -f Buildings_9_Buildings.Utilities.IO.SignalExchange.Examples.WeatherStation.makefile (rm -f Buildings_9_Buildings.Utilities.IO.SignalExchange.Examples.WeatherStation.pipe ; mkfifo Buildings_9_Buildings.Utilities.IO.SignalExchange.Examples.WeatherStation.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.IO.SignalExchange.Examples.WeatherStation.pipe >> ../files/Buildings_9_Buildings.Utilities.IO.SignalExchange.Examples.WeatherStation.sim & ./Buildings_9_Buildings.Utilities.IO.SignalExchange.Examples.WeatherStation -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.IO.SignalExchange.Examples.WeatherStation.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.IO.SignalExchange.Examples.WeatherStation_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_IO_SignalExchange_Examples_WeatherStation.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.IO.SignalExchange.Examples.WeatherStation.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches