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.00185/0.001849, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.002026/0.002026, allocations: 195.1 kB / 16.14 MB, free: 6.656 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.618/1.618, allocations: 222.9 MB / 239.8 MB, free: 4.594 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.514/2.514, allocations: 390.2 MB / 0.6642 GB, free: 0.6328 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001435/0.001435, allocations: 59.91 kB / 0.8118 GB, free: 14.92 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8416/0.843, allocations: 140.3 MB / 0.9489 GB, free: 9.188 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.SignalExchange.Examples.WeatherStation): time 0.006143/0.8492, allocations: 5.111 MB / 0.9539 GB, free: 5.184 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.1868/1.036, allocations: 148.5 MB / 1.099 GB, free: 7.961 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001953/1.038, allocations: 23.88 kB / 1.099 GB, free: 7.938 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001416/1.04, allocations: 286.2 kB / 1.099 GB, free: 7.656 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.003699/1.043, allocations: 445.4 kB / 1.1 GB, free: 7.223 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.003336/1.047, allocations: 0.7398 MB / 1.1 GB, free: 6.488 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.002455/1.049, allocations: 1.375 MB / 1.102 GB, free: 5.109 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001963/1.051, allocations: 0.7936 MB / 1.102 GB, free: 4.277 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001055/1.052, allocations: 465.9 kB / 1.103 GB, free: 3.82 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009834/1.053, allocations: 0.5129 MB / 1.103 GB, free: 3.305 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0003704/1.054, allocations: 64 kB / 1.104 GB, free: 3.242 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001289/1.055, allocations: 407.6 kB / 1.104 GB, free: 2.844 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.000508/1.055, allocations: 270.9 kB / 1.104 GB, free: 2.578 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0008826/1.056, allocations: 0.5823 MB / 1.105 GB, free: 1.992 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.002815/1.059, allocations: 1.776 MB / 1.106 GB, free: 216 kB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 7.304e-06/1.059, allocations: 4 kB / 1.106 GB, free: 212 kB / 0.8575 GB Notification: Performance of FrontEnd: time 1.342e-06/1.059, allocations: 4 kB / 1.106 GB, free: 208 kB / 0.8575 GB Notification: Performance of Transformations before backend: time 7.713e-05/1.059, allocations: 0 / 1.106 GB, free: 208 kB / 0.8575 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.003477/1.063, allocations: 1.656 MB / 1.108 GB, free: 14.5 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.574e-05/1.063, allocations: 8.031 kB / 1.108 GB, free: 14.49 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009864/1.064, allocations: 219 kB / 1.108 GB, free: 14.28 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001229/1.065, allocations: 0.8905 MB / 1.109 GB, free: 13.34 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.459e-05/1.065, allocations: 77.98 kB / 1.109 GB, free: 13.27 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001217/1.065, allocations: 96 kB / 1.109 GB, free: 13.17 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001803/1.067, allocations: 1.039 MB / 1.11 GB, free: 12.09 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.044e-05/1.067, allocations: 0 / 1.11 GB, free: 12.09 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.857e-05/1.067, allocations: 44 kB / 1.11 GB, free: 12.05 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.391e-05/1.067, allocations: 24 kB / 1.11 GB, free: 12.03 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001881/1.069, allocations: 1.171 MB / 1.112 GB, free: 10.85 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004289/1.073, allocations: 2.828 MB / 1.114 GB, free: 7.953 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001531/1.075, allocations: 0.7963 MB / 1.115 GB, free: 7.148 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000532/1.075, allocations: 298.7 kB / 1.115 GB, free: 6.848 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 7.824e-05/1.076, allocations: 32.61 kB / 1.115 GB, free: 6.816 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009281/1.076, allocations: 0.4912 MB / 1.116 GB, free: 6.305 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=78): time 2.345e-06/1.076, allocations: 0 / 1.116 GB, free: 6.305 MB / 0.8731 GB Notification: Performance of matching and sorting (n=78): time 0.003042/1.079, allocations: 1.201 MB / 1.117 GB, free: 5.078 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001055/1.08, allocations: 192.5 kB / 1.117 GB, free: 4.848 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009797/1.081, allocations: 0.7951 MB / 1.118 GB, free: 4.027 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 6.697e-05/1.081, allocations: 41.7 kB / 1.118 GB, free: 3.98 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003768/1.081, allocations: 0.5039 MB / 1.119 GB, free: 3.469 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.000183/1.081, allocations: 252.4 kB / 1.119 GB, free: 3.219 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002301/1.081, allocations: 166.5 kB / 1.119 GB, free: 3.047 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.000113/1.082, allocations: 341.9 kB / 1.119 GB, free: 2.707 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000498/1.082, allocations: 261.9 kB / 1.12 GB, free: 2.453 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005981/1.083, allocations: 363.1 kB / 1.12 GB, free: 2.086 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001047/1.084, allocations: 0.6071 MB / 1.12 GB, free: 1.465 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/1.084, allocations: 0 / 1.12 GB, free: 1.465 MB / 0.8731 GB Notification: Performance of matching and sorting (n=94) (initialization): time 0.001961/1.086, allocations: 0.8603 MB / 1.121 GB, free: 0.5938 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.12e-05/1.086, allocations: 8 kB / 1.121 GB, free: 0.5859 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.688e-06/1.086, allocations: 4.078 kB / 1.121 GB, free: 0.582 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005988/1.086, allocations: 88.66 kB / 1.121 GB, free: 0.4922 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006165/1.087, allocations: 159.8 kB / 1.122 GB, free: 344 kB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002043/1.089, allocations: 1.532 MB / 1.123 GB, free: 14.66 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007329/1.09, allocations: 93.5 kB / 1.123 GB, free: 14.57 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.727e-05/1.09, allocations: 36.03 kB / 1.123 GB, free: 14.54 MB / 0.8887 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.0005494/1.09, allocations: 299.4 kB / 1.123 GB, free: 14.24 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001748/1.091, allocations: 106.6 kB / 1.124 GB, free: 14.13 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002305/1.093, allocations: 1.074 MB / 1.125 GB, free: 13.04 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.467e-06/1.093, allocations: 12 kB / 1.125 GB, free: 13.03 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.645e-06/1.093, allocations: 0 / 1.125 GB, free: 13.03 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.977e-06/1.093, allocations: 3.984 kB / 1.125 GB, free: 13.03 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001092/1.094, allocations: 1.009 MB / 1.126 GB, free: 11.97 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/1.094, allocations: 4 kB / 1.126 GB, free: 11.96 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005419/1.095, allocations: 139.8 kB / 1.126 GB, free: 11.83 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005236/1.095, allocations: 80.78 kB / 1.126 GB, free: 11.75 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.155e-05/1.095, allocations: 27.97 kB / 1.126 GB, free: 11.72 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001792/1.097, allocations: 1.559 MB / 1.127 GB, free: 10.02 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/1.097, allocations: 0 / 1.127 GB, free: 10.02 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001825/1.099, allocations: 0.9434 MB / 1.128 GB, free: 9.055 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003579/1.099, allocations: 295.4 kB / 1.129 GB, free: 8.746 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001163/1.099, allocations: 16 kB / 1.129 GB, free: 8.73 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005922/1.1, allocations: 63.92 kB / 1.129 GB, free: 8.668 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001432/1.1, allocations: 68.84 kB / 1.129 GB, free: 8.602 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.633e-05/1.1, allocations: 39.97 kB / 1.129 GB, free: 8.562 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.0006882/1.101, allocations: 0.5542 MB / 1.129 GB, free: 7.996 MB / 0.8887 GB Notification: Performance of sort global known variables: time 6.732e-06/1.101, allocations: 0 / 1.129 GB, free: 7.996 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.0008497/1.102, allocations: 339 kB / 1.13 GB, free: 7.664 MB / 0.8887 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.001431/1.103, allocations: 0.5843 MB / 1.13 GB, free: 7.254 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.001625/1.105, allocations: 0.8235 MB / 1.131 GB, free: 6.418 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/1.105, allocations: 0 / 1.131 GB, free: 6.418 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.0008959/1.106, allocations: 0.5198 MB / 1.132 GB, free: 5.887 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001457/1.107, allocations: 418.7 kB / 1.132 GB, free: 5.488 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004417/1.112, allocations: 2.533 MB / 1.134 GB, free: 2.926 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006584/1.112, allocations: 1.102 MB / 1.135 GB, free: 1.797 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 0.0009042/1.113, allocations: 283.5 kB / 1.136 GB, free: 1.516 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002619/1.114, allocations: 115.4 kB / 1.136 GB, free: 1.402 MB / 0.8887 GB Notification: Performance of SimCode: time 2.004e-06/1.114, allocations: 0 / 1.136 GB, free: 1.402 MB / 0.8887 GB Notification: Performance of Templates: time 0.03023/1.144, allocations: 16.26 MB / 1.152 GB, free: 1.293 MB / 0.9044 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