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.009782/0.009782, allocations: 106.1 kB / 15.73 MB, free: 6.047 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.001732/0.001733, allocations: 196.6 kB / 16.67 MB, free: 5.961 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.392/1.392, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.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.283/2.283, allocations: 390.2 MB / 0.6648 GB, free: 0.6836 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001293/0.001293, allocations: 63.89 kB / 0.9508 GB, free: 7.684 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8772/0.8785, allocations: 140.4 MB / 1.088 GB, free: 5.512 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.SignalExchange.Examples.WeatherStation): time 0.006105/0.8847, allocations: 5.118 MB / 1.093 GB, free: 1.891 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.1916/1.076, allocations: 150.8 MB / 1.24 GB, free: 132 kB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001401/1.078, allocations: 26.22 kB / 1.24 GB, free: 120 kB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.001211/1.079, allocations: 350.3 kB / 1.241 GB, free: 15.81 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.002501/1.082, allocations: 0.5243 MB / 1.241 GB, free: 15.42 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.002379/1.084, allocations: 0.8617 MB / 1.242 GB, free: 14.77 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.001805/1.086, allocations: 1.475 MB / 1.243 GB, free: 13.84 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001139/1.087, allocations: 0.8212 MB / 1.244 GB, free: 13.32 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007045/1.088, allocations: 0.5255 MB / 1.245 GB, free: 12.98 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005746/1.088, allocations: 0.5539 MB / 1.245 GB, free: 12.57 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 0.000181/1.088, allocations: 133.7 kB / 1.245 GB, free: 12.48 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00131/1.09, allocations: 0.4918 MB / 1.246 GB, free: 11.98 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.000313/1.09, allocations: 326.9 kB / 1.246 GB, free: 11.66 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0005909/1.091, allocations: 0.6488 MB / 1.247 GB, free: 11.01 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.002629/1.093, allocations: 1.898 MB / 1.249 GB, free: 9.109 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/1.093, allocations: 0 / 1.249 GB, free: 9.109 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.623e-06/1.093, allocations: 0 / 1.249 GB, free: 9.109 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.566e-05/1.093, allocations: 0 / 1.249 GB, free: 9.109 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.002837/1.096, allocations: 1.655 MB / 1.25 GB, free: 7.406 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.561e-05/1.096, allocations: 15.97 kB / 1.25 GB, free: 7.391 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009763/1.097, allocations: 215 kB / 1.25 GB, free: 7.18 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001371/1.099, allocations: 0.9062 MB / 1.251 GB, free: 6.23 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.255e-05/1.099, allocations: 77.98 kB / 1.251 GB, free: 6.152 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001226/1.099, allocations: 96 kB / 1.251 GB, free: 6.059 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001721/1.1, allocations: 1.043 MB / 1.253 GB, free: 4.977 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.604e-05/1.101, allocations: 0 / 1.253 GB, free: 4.977 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.386e-05/1.101, allocations: 44 kB / 1.253 GB, free: 4.934 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.229e-05/1.101, allocations: 24 kB / 1.253 GB, free: 4.91 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001872/1.103, allocations: 1.167 MB / 1.254 GB, free: 3.738 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004037/1.107, allocations: 2.796 MB / 1.256 GB, free: 0.8711 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0014/1.108, allocations: 0.7938 MB / 1.257 GB, free: 72 kB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005194/1.109, allocations: 298.8 kB / 1.258 GB, free: 15.77 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 8.053e-05/1.109, allocations: 28.53 kB / 1.258 GB, free: 15.75 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008188/1.109, allocations: 487.2 kB / 1.258 GB, free: 15.25 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=78): time 3.787e-06/1.109, allocations: 4 kB / 1.258 GB, free: 15.25 MB / 0.9981 GB Notification: Performance of matching and sorting (n=78): time 0.003141/1.113, allocations: 1.209 MB / 1.259 GB, free: 14.01 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000106/1.113, allocations: 192.6 kB / 1.259 GB, free: 13.78 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001051/1.114, allocations: 0.7913 MB / 1.26 GB, free: 12.96 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 7.094e-05/1.114, allocations: 41.7 kB / 1.26 GB, free: 12.92 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003979/1.114, allocations: 0.5117 MB / 1.261 GB, free: 12.4 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001921/1.114, allocations: 248.4 kB / 1.261 GB, free: 12.15 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002328/1.115, allocations: 162.5 kB / 1.261 GB, free: 11.98 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001143/1.115, allocations: 345.8 kB / 1.261 GB, free: 11.64 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005161/1.115, allocations: 269.8 kB / 1.262 GB, free: 11.38 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006078/1.116, allocations: 359.1 kB / 1.262 GB, free: 11.01 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001056/1.117, allocations: 0.6033 MB / 1.263 GB, free: 10.39 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/1.117, allocations: 4 kB / 1.263 GB, free: 10.39 MB / 0.9981 GB Notification: Performance of matching and sorting (n=94) (initialization): time 0.00194/1.119, allocations: 0.8564 MB / 1.263 GB, free: 9.527 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.69e-05/1.119, allocations: 4 kB / 1.263 GB, free: 9.523 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.866e-06/1.119, allocations: 3.984 kB / 1.263 GB, free: 9.52 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005961/1.12, allocations: 92.73 kB / 1.264 GB, free: 9.426 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006247/1.12, allocations: 155.8 kB / 1.264 GB, free: 9.273 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002145/1.122, allocations: 1.638 MB / 1.265 GB, free: 7.488 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008486/1.123, allocations: 93.84 kB / 1.265 GB, free: 7.398 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.644e-05/1.123, allocations: 36.05 kB / 1.265 GB, free: 7.363 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.0005572/1.124, allocations: 303.5 kB / 1.266 GB, free: 7.059 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002479/1.124, allocations: 98.78 kB / 1.266 GB, free: 6.961 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002426/1.127, allocations: 1.082 MB / 1.267 GB, free: 5.867 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.626e-06/1.127, allocations: 8 kB / 1.267 GB, free: 5.859 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.713e-06/1.127, allocations: 3.938 kB / 1.267 GB, free: 5.855 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.077e-06/1.127, allocations: 3.984 kB / 1.267 GB, free: 5.852 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001229/1.128, allocations: 0.9974 MB / 1.268 GB, free: 4.805 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.013e-06/1.128, allocations: 0 / 1.268 GB, free: 4.805 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005588/1.129, allocations: 143.8 kB / 1.268 GB, free: 4.664 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004489/1.129, allocations: 72.78 kB / 1.268 GB, free: 4.59 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.487e-05/1.129, allocations: 23.98 kB / 1.268 GB, free: 4.566 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001889/1.131, allocations: 1.67 MB / 1.27 GB, free: 2.75 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/1.131, allocations: 4.031 kB / 1.27 GB, free: 2.746 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002011/1.133, allocations: 0.9432 MB / 1.271 GB, free: 1.781 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004505/1.133, allocations: 291.5 kB / 1.271 GB, free: 1.477 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001555/1.134, allocations: 20.06 kB / 1.271 GB, free: 1.457 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006571/1.134, allocations: 63.92 kB / 1.271 GB, free: 1.395 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001547/1.134, allocations: 76.78 kB / 1.271 GB, free: 1.32 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.056e-05/1.135, allocations: 27.98 kB / 1.271 GB, free: 1.293 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0008258/1.135, allocations: 0.5581 MB / 1.272 GB, free: 0.7227 MB / 0.9981 GB Notification: Performance of sort global known variables: time 3e-07/1.135, allocations: 4 kB / 1.272 GB, free: 0.7188 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0009018/1.136, allocations: 339 kB / 1.272 GB, free: 396 kB / 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.00158/1.138, allocations: 0.6056 MB / 1.273 GB, free: 15.95 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.001742/1.14, allocations: 0.8197 MB / 1.273 GB, free: 15.12 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 4.178e-06/1.14, allocations: 0 / 1.273 GB, free: 15.12 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0009388/1.141, allocations: 0.5197 MB / 1.274 GB, free: 14.59 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001657/1.142, allocations: 454.9 kB / 1.274 GB, free: 14.17 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004193/1.146, allocations: 2.013 MB / 1.276 GB, free: 12.14 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006768/1.147, allocations: 1.102 MB / 1.277 GB, free: 11.01 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.0008471/1.148, allocations: 283.5 kB / 1.278 GB, free: 10.73 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002723/1.148, allocations: 119.3 kB / 1.278 GB, free: 10.61 MB / 1.014 GB Notification: Performance of SimCode: time 5.01e-07/1.148, allocations: 3.938 kB / 1.278 GB, free: 10.61 MB / 1.014 GB Notification: Performance of Templates: time 0.03616/1.184, allocations: 17.12 MB / 1.294 GB, free: 9.648 MB / 1.029 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