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.007905/0.007904, allocations: 101.6 kB / 15.73 MB, free: 6.031 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.001664/0.001664, allocations: 187.4 kB / 16.67 MB, free: 5.969 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.441/1.441, allocations: 222.9 MB / 240.4 MB, free: 4.34 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.478/2.478, allocations: 390.2 MB / 0.6648 GB, free: 192 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001434/0.001435, allocations: 69.47 kB / 0.9508 GB, free: 5.512 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2905/0.292, allocations: 140.4 MB / 1.088 GB, free: 1.566 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.SignalExchange.Examples.WeatherStation): time 0.007501/0.2995, allocations: 5.11 MB / 1.093 GB, free: 12.43 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.17/0.4695, allocations: 150.8 MB / 1.24 GB, free: 4.992 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001149/0.4707, allocations: 27.81 kB / 1.24 GB, free: 4.965 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.001008/0.4718, allocations: 337.5 kB / 1.241 GB, free: 4.633 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.00193/0.4738, allocations: 0.5397 MB / 1.241 GB, free: 4.094 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.001997/0.4758, allocations: 0.8663 MB / 1.242 GB, free: 3.234 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.00167/0.4774, allocations: 1.477 MB / 1.243 GB, free: 1.75 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001096/0.4785, allocations: 0.8139 MB / 1.244 GB, free: 0.9023 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007242/0.4793, allocations: 0.5254 MB / 1.245 GB, free: 384 kB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005375/0.4798, allocations: 0.5636 MB / 1.245 GB, free: 15.81 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 0.000154/0.48, allocations: 132 kB / 1.245 GB, free: 15.68 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007914/0.4808, allocations: 499.6 kB / 1.246 GB, free: 15.19 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 0.0002652/0.4811, allocations: 334.9 kB / 1.246 GB, free: 14.86 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.000491/0.4816, allocations: 0.641 MB / 1.247 GB, free: 14.22 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.001758/0.4833, allocations: 1.884 MB / 1.249 GB, free: 12.33 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 6.202e-06/0.4833, allocations: 7.938 kB / 1.249 GB, free: 12.32 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.282e-06/0.4834, allocations: 0 / 1.249 GB, free: 12.32 MB / 1.014 GB Notification: Performance of Transformations before backend: time 1.734e-05/0.4834, 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.002379/0.4858, allocations: 1.663 MB / 1.25 GB, free: 10.61 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 3.544e-05/0.4858, allocations: 8.031 kB / 1.25 GB, free: 10.6 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000879/0.4867, allocations: 215 kB / 1.25 GB, free: 10.39 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001185/0.4879, allocations: 0.9139 MB / 1.251 GB, free: 9.43 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.119e-05/0.488, allocations: 77.98 kB / 1.251 GB, free: 9.352 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001114/0.4881, allocations: 99.98 kB / 1.252 GB, free: 9.254 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001525/0.4896, allocations: 1.032 MB / 1.253 GB, free: 8.184 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.302e-05/0.4896, allocations: 3.938 kB / 1.253 GB, free: 8.18 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.277e-05/0.4897, allocations: 44 kB / 1.253 GB, free: 8.137 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.932e-05/0.4898, allocations: 24 kB / 1.253 GB, free: 8.113 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001737/0.4915, allocations: 1.175 MB / 1.254 GB, free: 6.934 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003799/0.4953, allocations: 2.792 MB / 1.256 GB, free: 4.07 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001337/0.4967, allocations: 0.7938 MB / 1.257 GB, free: 3.27 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004874/0.4972, allocations: 298.7 kB / 1.258 GB, free: 2.977 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 7.686e-05/0.4972, allocations: 24.62 kB / 1.258 GB, free: 2.953 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007624/0.498, allocations: 491.2 kB / 1.258 GB, free: 2.453 MB / 1.014 GB Notification: Performance of pre-optimization done (n=78): time 2.354e-06/0.498, allocations: 4 kB / 1.258 GB, free: 2.449 MB / 1.014 GB Notification: Performance of matching and sorting (n=78): time 0.00293/0.501, allocations: 1.205 MB / 1.259 GB, free: 1.215 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001048/0.5011, allocations: 196.6 kB / 1.259 GB, free: 0.9805 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009399/0.502, allocations: 0.7951 MB / 1.26 GB, free: 164 kB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 6.168e-05/0.5021, allocations: 45.7 kB / 1.26 GB, free: 112 kB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.6064/1.108, allocations: 0.4928 MB / 1.261 GB, free: 173.7 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003852/1.109, allocations: 252.4 kB / 1.261 GB, free: 173.5 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003217/1.109, allocations: 165.5 kB / 1.261 GB, free: 173.5 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 8.395e-05/1.109, allocations: 337.6 kB / 1.261 GB, free: 173.2 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006117/1.11, allocations: 269.8 kB / 1.262 GB, free: 173.2 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006893/1.111, allocations: 360.2 kB / 1.262 GB, free: 173.2 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001138/1.112, allocations: 0.5999 MB / 1.263 GB, free: 173.1 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.109e-06/1.112, allocations: 1 kB / 1.263 GB, free: 173.1 MB / 1.014 GB Notification: Performance of matching and sorting (n=94) (initialization): time 0.002196/1.114, allocations: 0.8641 MB / 1.263 GB, free: 172.8 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 2.476e-05/1.114, allocations: 5.797 kB / 1.263 GB, free: 172.8 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.909e-06/1.114, allocations: 2.547 kB / 1.263 GB, free: 172.8 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006278/1.115, allocations: 88.02 kB / 1.264 GB, free: 172.8 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006801/1.115, allocations: 154.7 kB / 1.264 GB, free: 172.8 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00195/1.117, allocations: 1.644 MB / 1.265 GB, free: 171.3 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009476/1.118, allocations: 102.8 kB / 1.265 GB, free: 171.2 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001127/1.118, allocations: 37.05 kB / 1.265 GB, free: 171.2 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.0007376/1.119, allocations: 293.5 kB / 1.266 GB, free: 171 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000216/1.119, allocations: 99.55 kB / 1.266 GB, free: 170.9 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002495/1.122, allocations: 1.078 MB / 1.267 GB, free: 170.5 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.465e-05/1.122, allocations: 9.312 kB / 1.267 GB, free: 170.5 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/1.122, allocations: 0.5156 kB / 1.267 GB, free: 170.5 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.471e-05/1.122, allocations: 6.688 kB / 1.267 GB, free: 170.5 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001572/1.124, allocations: 1.005 MB / 1.268 GB, free: 170 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.789e-06/1.124, allocations: 0 / 1.268 GB, free: 170 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005996/1.124, allocations: 141.8 kB / 1.268 GB, free: 170 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004261/1.125, allocations: 76.23 kB / 1.268 GB, free: 170 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.02e-05/1.125, allocations: 23.97 kB / 1.268 GB, free: 170 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001728/1.126, allocations: 1.672 MB / 1.27 GB, free: 168.4 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.877e-06/1.126, allocations: 5.062 kB / 1.27 GB, free: 168.4 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002195/1.129, allocations: 0.9418 MB / 1.271 GB, free: 168 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003853/1.129, allocations: 283.9 kB / 1.271 GB, free: 167.8 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001094/1.129, allocations: 29.45 kB / 1.271 GB, free: 167.8 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005566/1.13, allocations: 60.38 kB / 1.271 GB, free: 167.8 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001808/1.13, allocations: 67.09 kB / 1.271 GB, free: 167.8 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.431e-05/1.13, allocations: 36.86 kB / 1.271 GB, free: 167.8 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.0009347/1.131, allocations: 0.5576 MB / 1.272 GB, free: 167.5 MB / 1.014 GB Notification: Performance of sort global known variables: time 6.21e-07/1.131, allocations: 4 kB / 1.272 GB, free: 167.5 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.001333/1.132, allocations: 339 kB / 1.272 GB, free: 167.4 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.001461/1.134, allocations: 0.5997 MB / 1.273 GB, free: 167.3 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.001976/1.136, allocations: 0.8296 MB / 1.273 GB, free: 166.9 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 4.097e-06/1.136, allocations: 1.125 kB / 1.273 GB, free: 166.9 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.001083/1.137, allocations: 0.5059 MB / 1.274 GB, free: 166.7 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001709/1.139, allocations: 461.4 kB / 1.274 GB, free: 166.5 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004234/1.143, allocations: 2.023 MB / 1.276 GB, free: 165.6 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006558/1.143, allocations: 1.106 MB / 1.277 GB, free: 164.8 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.0009186/1.144, allocations: 286.1 kB / 1.278 GB, free: 164.7 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002679/1.145, allocations: 114 kB / 1.278 GB, free: 164.7 MB / 1.014 GB Notification: Performance of SimCode: time 7.31e-07/1.145, allocations: 0 / 1.278 GB, free: 164.7 MB / 1.014 GB Notification: Performance of Templates: time 0.03279/1.177, allocations: 17.12 MB / 1.294 GB, free: 160.1 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