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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001548/0.001548, allocations: 106.6 kB / 16.41 MB, free: 6.453 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.001669/0.001669, allocations: 192.2 kB / 17.34 MB, free: 5.719 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.459/1.459, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.741/2.741, allocations: 461.9 MB / 0.7355 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001533/0.001533, allocations: 63.89 kB / 1.055 GB, free: 7.719 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8804/0.8819, allocations: 157.4 MB / 1.208 GB, free: 13.62 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.SignalExchange.Examples.WeatherStation): time 0.00954/0.8915, allocations: 5.622 MB / 1.214 GB, free: 7.973 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.1817/1.073, allocations: 150.9 MB / 1.361 GB, free: 0.4961 MB / 1.076 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001591/1.075, allocations: 23.88 kB / 1.361 GB, free: 484 kB / 1.076 GB Notification: Performance of NFTyping.typeComponents: time 0.001368/1.076, allocations: 361.3 kB / 1.362 GB, free: 120 kB / 1.076 GB Notification: Performance of NFTyping.typeBindings: time 0.002801/1.079, allocations: 0.5665 MB / 1.362 GB, free: 15.55 MB / 1.092 GB Notification: Performance of NFTyping.typeClassSections: time 0.002774/1.082, allocations: 0.8737 MB / 1.363 GB, free: 14.68 MB / 1.092 GB Notification: Performance of NFFlatten.flatten: time 0.002566/1.085, allocations: 1.57 MB / 1.365 GB, free: 13.11 MB / 1.092 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001645/1.086, allocations: 0.7635 MB / 1.365 GB, free: 12.31 MB / 1.092 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001113/1.087, allocations: 0.5371 MB / 1.366 GB, free: 11.77 MB / 1.092 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001044/1.088, allocations: 0.5676 MB / 1.366 GB, free: 11.2 MB / 1.092 GB Notification: Performance of NFPackage.collectConstants: time 0.0004303/1.089, allocations: 136 kB / 1.366 GB, free: 11.07 MB / 1.092 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001334/1.09, allocations: 0.4918 MB / 1.367 GB, free: 10.57 MB / 1.092 GB Notification: Performance of NFScalarize.scalarize: time 0.0005044/1.091, allocations: 334.8 kB / 1.367 GB, free: 10.25 MB / 1.092 GB Notification: Performance of NFVerifyModel.verify: time 0.0009858/1.092, allocations: 0.6644 MB / 1.368 GB, free: 9.578 MB / 1.092 GB Notification: Performance of NFConvertDAE.convert: time 0.002898/1.095, allocations: 1.906 MB / 1.37 GB, free: 7.668 MB / 1.092 GB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/1.095, allocations: 0 / 1.37 GB, free: 7.668 MB / 1.092 GB Notification: Performance of FrontEnd: time 1.983e-06/1.095, allocations: 0 / 1.37 GB, free: 7.668 MB / 1.092 GB Notification: Performance of Transformations before backend: time 7.719e-05/1.095, allocations: 0 / 1.37 GB, free: 7.668 MB / 1.092 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.004117/1.099, allocations: 1.682 MB / 1.371 GB, free: 5.938 MB / 1.092 GB Notification: Performance of prepare preOptimizeDAE: time 4.337e-05/1.099, allocations: 16.03 kB / 1.371 GB, free: 5.922 MB / 1.092 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001227/1.1, allocations: 219 kB / 1.372 GB, free: 5.707 MB / 1.092 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001754/1.102, allocations: 0.8985 MB / 1.373 GB, free: 4.766 MB / 1.092 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.573e-05/1.102, allocations: 81.92 kB / 1.373 GB, free: 4.684 MB / 1.092 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000178/1.102, allocations: 96 kB / 1.373 GB, free: 4.59 MB / 1.092 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002142/1.104, allocations: 1.035 MB / 1.374 GB, free: 3.516 MB / 1.092 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.154e-05/1.104, allocations: 0 / 1.374 GB, free: 3.516 MB / 1.092 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001067/1.105, allocations: 44 kB / 1.374 GB, free: 3.473 MB / 1.092 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.557e-05/1.105, allocations: 24 kB / 1.374 GB, free: 3.449 MB / 1.092 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002053/1.107, allocations: 1.167 MB / 1.375 GB, free: 2.281 MB / 1.092 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.005079/1.112, allocations: 3.005 MB / 1.378 GB, free: 15.16 MB / 1.107 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001622/1.113, allocations: 0.8002 MB / 1.379 GB, free: 14.35 MB / 1.107 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005889/1.114, allocations: 298.7 kB / 1.379 GB, free: 14.05 MB / 1.107 GB Notification: Performance of preOpt evalFunc (simulation): time 8.673e-05/1.114, allocations: 24.61 kB / 1.379 GB, free: 14.03 MB / 1.107 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000927/1.115, allocations: 499 kB / 1.379 GB, free: 13.52 MB / 1.107 GB Notification: Performance of pre-optimization done (n=78): time 2.815e-06/1.115, allocations: 0 / 1.379 GB, free: 13.52 MB / 1.107 GB Notification: Performance of matching and sorting (n=78): time 0.003365/1.118, allocations: 1.209 MB / 1.381 GB, free: 12.29 MB / 1.107 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000114/1.119, allocations: 188.6 kB / 1.381 GB, free: 12.06 MB / 1.107 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001297/1.12, allocations: 0.8028 MB / 1.382 GB, free: 11.23 MB / 1.107 GB Notification: Performance of collectPreVariables (initialization): time 8.491e-05/1.12, allocations: 41.7 kB / 1.382 GB, free: 11.18 MB / 1.107 GB Notification: Performance of collectInitialEqns (initialization): time 0.000485/1.12, allocations: 0.504 MB / 1.382 GB, free: 10.67 MB / 1.107 GB Notification: Performance of collectInitialBindings (initialization): time 0.00023/1.121, allocations: 248.4 kB / 1.382 GB, free: 10.43 MB / 1.107 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002858/1.121, allocations: 166.5 kB / 1.382 GB, free: 10.26 MB / 1.107 GB Notification: Performance of setup shared object (initialization): time 0.0001357/1.121, allocations: 341.9 kB / 1.383 GB, free: 9.918 MB / 1.107 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005741/1.122, allocations: 265.9 kB / 1.383 GB, free: 9.656 MB / 1.107 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006637/1.122, allocations: 359.1 kB / 1.383 GB, free: 9.293 MB / 1.107 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001222/1.124, allocations: 0.6033 MB / 1.384 GB, free: 8.676 MB / 1.107 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.731e-06/1.124, allocations: 0 / 1.384 GB, free: 8.676 MB / 1.107 GB Notification: Performance of matching and sorting (n=94) (initialization): time 0.002216/1.126, allocations: 0.8564 MB / 1.385 GB, free: 7.809 MB / 1.107 GB Notification: Performance of prepare postOptimizeDAE: time 2.779e-05/1.126, allocations: 15.92 kB / 1.385 GB, free: 7.793 MB / 1.107 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.225e-06/1.126, allocations: 0 / 1.385 GB, free: 7.793 MB / 1.107 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006347/1.127, allocations: 84.81 kB / 1.385 GB, free: 7.707 MB / 1.107 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006496/1.127, allocations: 155.8 kB / 1.385 GB, free: 7.555 MB / 1.107 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0025/1.13, allocations: 1.638 MB / 1.387 GB, free: 5.77 MB / 1.107 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008608/1.131, allocations: 97.56 kB / 1.387 GB, free: 5.676 MB / 1.107 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.962e-05/1.131, allocations: 35.98 kB / 1.387 GB, free: 5.641 MB / 1.107 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.0006039/1.131, allocations: 299.3 kB / 1.387 GB, free: 5.34 MB / 1.107 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002852/1.132, allocations: 102.7 kB / 1.387 GB, free: 5.238 MB / 1.107 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002613/1.134, allocations: 1.082 MB / 1.388 GB, free: 4.148 MB / 1.107 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.022e-05/1.134, allocations: 11.94 kB / 1.388 GB, free: 4.137 MB / 1.107 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/1.134, allocations: 7.938 kB / 1.388 GB, free: 4.129 MB / 1.107 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.103e-05/1.134, allocations: 3.984 kB / 1.388 GB, free: 4.125 MB / 1.107 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001458/1.136, allocations: 1.005 MB / 1.389 GB, free: 3.066 MB / 1.107 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.784e-06/1.136, allocations: 0 / 1.389 GB, free: 3.066 MB / 1.107 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006253/1.136, allocations: 139.8 kB / 1.389 GB, free: 2.93 MB / 1.107 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004692/1.137, allocations: 76.78 kB / 1.389 GB, free: 2.852 MB / 1.107 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.151e-05/1.137, allocations: 23.98 kB / 1.389 GB, free: 2.828 MB / 1.107 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002198/1.139, allocations: 1.67 MB / 1.391 GB, free: 1.012 MB / 1.107 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.857e-06/1.139, allocations: 4.031 kB / 1.391 GB, free: 1.008 MB / 1.107 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002207/1.141, allocations: 0.9432 MB / 1.392 GB, free: 44 kB / 1.107 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005511/1.142, allocations: 287.5 kB / 1.392 GB, free: 15.74 MB / 1.123 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002087/1.142, allocations: 16 kB / 1.392 GB, free: 15.73 MB / 1.123 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007359/1.143, allocations: 63.92 kB / 1.392 GB, free: 15.66 MB / 1.123 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000159/1.143, allocations: 76.84 kB / 1.392 GB, free: 15.59 MB / 1.123 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.894e-05/1.143, allocations: 36.03 kB / 1.393 GB, free: 15.55 MB / 1.123 GB Notification: Performance of sorting global known variables: time 0.0009282/1.144, allocations: 0.5542 MB / 1.393 GB, free: 14.99 MB / 1.123 GB Notification: Performance of sort global known variables: time 1.6e-07/1.144, allocations: 0 / 1.393 GB, free: 14.99 MB / 1.123 GB Notification: Performance of remove unused functions: time 0.001057/1.145, allocations: 347 kB / 1.393 GB, free: 14.65 MB / 1.123 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.001553/1.147, allocations: 0.604 MB / 1.394 GB, free: 14.21 MB / 1.123 GB Notification: Performance of simCode: created initialization part: time 0.001903/1.149, allocations: 0.8272 MB / 1.395 GB, free: 13.38 MB / 1.123 GB Notification: Performance of simCode: created event and clocks part: time 6.332e-06/1.149, allocations: 3.938 kB / 1.395 GB, free: 13.37 MB / 1.123 GB Notification: Performance of simCode: created simulation system equations: time 0.00102/1.15, allocations: 0.5161 MB / 1.395 GB, free: 12.85 MB / 1.123 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002068/1.152, allocations: 478.7 kB / 1.396 GB, free: 12.41 MB / 1.123 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004055/1.156, allocations: 1.948 MB / 1.398 GB, free: 10.44 MB / 1.123 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008904/1.157, allocations: 1.098 MB / 1.399 GB, free: 9.312 MB / 1.123 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000379/1.157, allocations: 131.3 kB / 1.399 GB, free: 9.184 MB / 1.123 GB Notification: Performance of SimCode: time 8.31e-07/1.157, allocations: 0 / 1.399 GB, free: 9.184 MB / 1.123 GB Notification: Performance of Templates: time 0.03524/1.192, allocations: 22.37 MB / 1.421 GB, free: 2.852 MB / 1.139 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/jenkins1/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