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.001603/0.001603, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001988/0.001988, allocations: 196.7 kB / 16.53 MB, free: 6.699 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.436/1.436, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.778/2.778, allocations: 472.6 MB / 0.7451 GB, free: 4.668 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0024/0.0024, allocations: 65.98 kB / 0.912 GB, free: 33.41 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3806/0.3831, allocations: 159.9 MB / 1.068 GB, free: 10.46 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.SignalExchange.Examples.WeatherStation): time 0.01402/0.3971, allocations: 5.61 MB / 1.074 GB, free: 4.824 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.1694/0.5666, allocations: 150.9 MB / 1.221 GB, free: 13.34 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001279/0.5679, allocations: 23.81 kB / 1.221 GB, free: 13.31 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.001134/0.5691, allocations: 361.3 kB / 1.221 GB, free: 12.96 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.002202/0.5713, allocations: 0.5582 MB / 1.222 GB, free: 12.4 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.002245/0.5736, allocations: 0.8738 MB / 1.223 GB, free: 11.53 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.00194/0.5755, allocations: 1.543 MB / 1.224 GB, free: 9.977 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001217/0.5768, allocations: 0.7713 MB / 1.225 GB, free: 9.164 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007621/0.5775, allocations: 0.5293 MB / 1.226 GB, free: 8.633 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007316/0.5783, allocations: 0.5714 MB / 1.226 GB, free: 8.059 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 0.0002689/0.5785, allocations: 132 kB / 1.226 GB, free: 7.93 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009207/0.5795, allocations: 475.6 kB / 1.227 GB, free: 7.465 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0003328/0.5798, allocations: 338.9 kB / 1.227 GB, free: 7.133 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0006777/0.5805, allocations: 0.6566 MB / 1.228 GB, free: 6.473 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.002083/0.5826, allocations: 1.865 MB / 1.23 GB, free: 4.602 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.5826, allocations: 3.938 kB / 1.23 GB, free: 4.598 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.363e-06/0.5826, allocations: 0 / 1.23 GB, free: 4.598 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 3.876e-05/0.5827, allocations: 0 / 1.23 GB, free: 4.598 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.003051/0.5857, allocations: 1.674 MB / 1.231 GB, free: 2.875 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.701e-05/0.5858, allocations: 12.03 kB / 1.231 GB, free: 2.863 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001032/0.5868, allocations: 219 kB / 1.231 GB, free: 2.648 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001353/0.5882, allocations: 0.8867 MB / 1.232 GB, free: 1.719 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.15e-05/0.5883, allocations: 74 kB / 1.232 GB, free: 1.645 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001437/0.5884, allocations: 92 kB / 1.232 GB, free: 1.555 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0018/0.5902, allocations: 1.032 MB / 1.233 GB, free: 496 kB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.991e-05/0.5903, allocations: 0 / 1.233 GB, free: 496 kB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.552e-05/0.5904, allocations: 44 kB / 1.233 GB, free: 452 kB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.326e-05/0.5904, allocations: 28 kB / 1.233 GB, free: 424 kB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001914/0.5923, allocations: 1.171 MB / 1.235 GB, free: 15.24 MB / 0.9981 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.004621/0.5969, allocations: 3.043 MB / 1.238 GB, free: 12.08 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001504/0.5985, allocations: 0.8033 MB / 1.238 GB, free: 11.27 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005418/0.599, allocations: 298.7 kB / 1.239 GB, free: 10.98 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 7.863e-05/0.5991, allocations: 28.61 kB / 1.239 GB, free: 10.95 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008965/0.6, allocations: 0.4912 MB / 1.239 GB, free: 10.44 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=78): time 2.976e-06/0.6, allocations: 0 / 1.239 GB, free: 10.44 MB / 0.9981 GB Notification: Performance of matching and sorting (n=78): time 0.003225/0.6033, allocations: 1.201 MB / 1.24 GB, free: 9.211 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001055/0.6034, allocations: 196.6 kB / 1.241 GB, free: 8.977 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001086/0.6045, allocations: 0.795 MB / 1.241 GB, free: 8.156 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 6.791e-05/0.6045, allocations: 41.7 kB / 1.241 GB, free: 8.109 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004125/0.605, allocations: 0.5078 MB / 1.242 GB, free: 7.594 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002502/0.6052, allocations: 256.4 kB / 1.242 GB, free: 7.34 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002524/0.6055, allocations: 162.5 kB / 1.242 GB, free: 7.176 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001515/0.6056, allocations: 333.9 kB / 1.243 GB, free: 6.844 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005556/0.6062, allocations: 273.8 kB / 1.243 GB, free: 6.574 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006545/0.6069, allocations: 351.1 kB / 1.243 GB, free: 6.219 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001168/0.6081, allocations: 0.6073 MB / 1.244 GB, free: 5.598 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.6081, allocations: 0 / 1.244 GB, free: 5.598 MB / 0.9981 GB Notification: Performance of matching and sorting (n=94) (initialization): time 0.002043/0.6101, allocations: 0.8641 MB / 1.245 GB, free: 4.723 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.987e-05/0.6102, allocations: 4 kB / 1.245 GB, free: 4.719 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.496e-06/0.6102, allocations: 8.031 kB / 1.245 GB, free: 4.711 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006306/0.6108, allocations: 84.7 kB / 1.245 GB, free: 4.625 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006486/0.6115, allocations: 155.8 kB / 1.245 GB, free: 4.473 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002252/0.6137, allocations: 1.653 MB / 1.246 GB, free: 2.672 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00074/0.6145, allocations: 87.36 kB / 1.247 GB, free: 2.586 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.475e-05/0.6146, allocations: 35.97 kB / 1.247 GB, free: 2.551 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.0004552/0.615, allocations: 299.4 kB / 1.247 GB, free: 2.25 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001957/0.6152, allocations: 102.7 kB / 1.247 GB, free: 2.148 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002438/0.6177, allocations: 1.074 MB / 1.248 GB, free: 1.066 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.586e-06/0.6177, allocations: 8 kB / 1.248 GB, free: 1.059 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.6177, allocations: 3.938 kB / 1.248 GB, free: 1.055 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.022e-05/0.6177, allocations: 3.984 kB / 1.248 GB, free: 1.051 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001174/0.6189, allocations: 0.9978 MB / 1.249 GB, free: 0 / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.659e-06/0.6189, allocations: 0 / 1.249 GB, free: 0 / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007708/1.138, allocations: 138.7 kB / 1.249 GB, free: 183.4 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005389/1.138, allocations: 71.17 kB / 1.249 GB, free: 183.4 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.381e-05/1.138, allocations: 25.36 kB / 1.249 GB, free: 183.4 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001834/1.14, allocations: 1.681 MB / 1.251 GB, free: 182.1 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/1.14, allocations: 0.5625 kB / 1.251 GB, free: 182.1 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002364/1.142, allocations: 0.9491 MB / 1.252 GB, free: 182 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004336/1.143, allocations: 285.2 kB / 1.252 GB, free: 181.9 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001294/1.143, allocations: 18.81 kB / 1.252 GB, free: 181.9 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006159/1.144, allocations: 65 kB / 1.252 GB, free: 181.9 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001793/1.144, allocations: 66.19 kB / 1.252 GB, free: 181.9 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.676e-05/1.144, allocations: 41.05 kB / 1.252 GB, free: 181.9 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0008234/1.145, allocations: 0.5537 MB / 1.253 GB, free: 181.8 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.9e-07/1.145, allocations: 0 / 1.253 GB, free: 181.8 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0009139/1.146, allocations: 349.9 kB / 1.253 GB, free: 181.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.00131/1.147, allocations: 0.6002 MB / 1.254 GB, free: 181.7 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.002301/1.149, allocations: 1.025 MB / 1.255 GB, free: 181.5 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/1.149, allocations: 0 / 1.255 GB, free: 181.5 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0008754/1.15, allocations: 0.5109 MB / 1.255 GB, free: 181.4 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00166/1.152, allocations: 473.6 kB / 1.256 GB, free: 181.3 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002957/1.155, allocations: 1.942 MB / 1.258 GB, free: 180.6 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004579/1.155, allocations: 1.105 MB / 1.259 GB, free: 179.9 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0007952/1.156, allocations: 293.3 kB / 1.259 GB, free: 179.8 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002256/1.156, allocations: 109.9 kB / 1.259 GB, free: 179.8 MB / 0.9981 GB Notification: Performance of SimCode: time 7.41e-07/1.156, allocations: 2.625 kB / 1.259 GB, free: 179.8 MB / 0.9981 GB Notification: Performance of Templates: time 0.03299/1.189, allocations: 17.39 MB / 1.276 GB, free: 176.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/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