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.001283/0.001283, allocations: 110.5 kB / 16.41 MB, free: 6.488 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.001225/0.001225, allocations: 185.5 kB / 17.34 MB, free: 5.746 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.373/1.373, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.59/2.59, allocations: 461.9 MB / 0.7354 GB, free: 11.06 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001247/0.001247, allocations: 59.91 kB / 1.055 GB, free: 7.73 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8415/0.8428, allocations: 157.4 MB / 1.208 GB, free: 13.6 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.SignalExchange.Examples.WeatherStation): time 0.007928/0.8507, allocations: 5.608 MB / 1.214 GB, free: 7.969 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.1689/1.02, allocations: 150.9 MB / 1.361 GB, free: 0.4922 MB / 1.076 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001317/1.021, allocations: 19.88 kB / 1.361 GB, free: 484 kB / 1.076 GB Notification: Performance of NFTyping.typeComponents: time 0.001246/1.022, allocations: 365.3 kB / 1.362 GB, free: 116 kB / 1.076 GB Notification: Performance of NFTyping.typeBindings: time 0.002532/1.025, allocations: 0.5706 MB / 1.362 GB, free: 15.54 MB / 1.092 GB Notification: Performance of NFTyping.typeClassSections: time 0.002394/1.027, allocations: 0.8845 MB / 1.363 GB, free: 14.66 MB / 1.092 GB Notification: Performance of NFFlatten.flatten: time 0.002186/1.03, allocations: 1.562 MB / 1.365 GB, free: 13.1 MB / 1.092 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001265/1.031, allocations: 0.7713 MB / 1.365 GB, free: 12.29 MB / 1.092 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008291/1.032, allocations: 0.5449 MB / 1.366 GB, free: 11.74 MB / 1.092 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008972/1.033, allocations: 0.5636 MB / 1.366 GB, free: 11.18 MB / 1.092 GB Notification: Performance of NFPackage.collectConstants: time 0.0002923/1.033, allocations: 132 kB / 1.366 GB, free: 11.05 MB / 1.092 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001112/1.034, allocations: 0.4917 MB / 1.367 GB, free: 10.55 MB / 1.092 GB Notification: Performance of NFScalarize.scalarize: time 0.0003934/1.034, allocations: 330.8 kB / 1.367 GB, free: 10.23 MB / 1.092 GB Notification: Performance of NFVerifyModel.verify: time 0.0007857/1.035, allocations: 0.6645 MB / 1.368 GB, free: 9.562 MB / 1.092 GB Notification: Performance of NFConvertDAE.convert: time 0.00248/1.038, allocations: 1.91 MB / 1.37 GB, free: 7.648 MB / 1.092 GB Notification: Performance of FrontEnd - DAE generated: time 5.219e-06/1.038, allocations: 0 / 1.37 GB, free: 7.648 MB / 1.092 GB Notification: Performance of FrontEnd: time 2.204e-06/1.038, allocations: 0 / 1.37 GB, free: 7.648 MB / 1.092 GB Notification: Performance of Transformations before backend: time 5.315e-05/1.038, allocations: 4 kB / 1.37 GB, free: 7.645 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.003475/1.041, allocations: 1.682 MB / 1.371 GB, free: 5.914 MB / 1.092 GB Notification: Performance of prepare preOptimizeDAE: time 3.735e-05/1.041, allocations: 8.031 kB / 1.371 GB, free: 5.906 MB / 1.092 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001061/1.042, allocations: 215 kB / 1.372 GB, free: 5.695 MB / 1.092 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001528/1.044, allocations: 0.9179 MB / 1.373 GB, free: 4.734 MB / 1.092 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.02e-05/1.044, allocations: 74 kB / 1.373 GB, free: 4.66 MB / 1.092 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001299/1.044, allocations: 92 kB / 1.373 GB, free: 4.57 MB / 1.092 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001882/1.046, allocations: 1.035 MB / 1.374 GB, free: 3.496 MB / 1.092 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.982e-05/1.046, allocations: 0 / 1.374 GB, free: 3.496 MB / 1.092 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000101/1.046, allocations: 40 kB / 1.374 GB, free: 3.457 MB / 1.092 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.443e-05/1.046, allocations: 27.98 kB / 1.374 GB, free: 3.43 MB / 1.092 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001937/1.048, allocations: 1.167 MB / 1.375 GB, free: 2.262 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.004556/1.053, allocations: 3.001 MB / 1.378 GB, free: 15.14 MB / 1.107 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001477/1.054, allocations: 0.8002 MB / 1.379 GB, free: 14.33 MB / 1.107 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005191/1.055, allocations: 298.7 kB / 1.379 GB, free: 14.04 MB / 1.107 GB Notification: Performance of preOpt evalFunc (simulation): time 7.266e-05/1.055, allocations: 36.61 kB / 1.379 GB, free: 14 MB / 1.107 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008394/1.056, allocations: 491.1 kB / 1.379 GB, free: 13.5 MB / 1.107 GB Notification: Performance of pre-optimization done (n=78): time 5.06e-06/1.056, allocations: 0 / 1.379 GB, free: 13.5 MB / 1.107 GB Notification: Performance of matching and sorting (n=78): time 0.003076/1.059, allocations: 1.201 MB / 1.381 GB, free: 12.27 MB / 1.107 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001156/1.059, allocations: 196.6 kB / 1.381 GB, free: 12.04 MB / 1.107 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001099/1.06, allocations: 0.7989 MB / 1.382 GB, free: 11.21 MB / 1.107 GB Notification: Performance of collectPreVariables (initialization): time 7.87e-05/1.06, allocations: 41.7 kB / 1.382 GB, free: 11.17 MB / 1.107 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004221/1.061, allocations: 0.5078 MB / 1.382 GB, free: 10.65 MB / 1.107 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002145/1.061, allocations: 248.4 kB / 1.382 GB, free: 10.41 MB / 1.107 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002786/1.061, allocations: 162.5 kB / 1.382 GB, free: 10.24 MB / 1.107 GB Notification: Performance of setup shared object (initialization): time 0.0001209/1.061, allocations: 341.8 kB / 1.383 GB, free: 9.902 MB / 1.107 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005263/1.062, allocations: 265.9 kB / 1.383 GB, free: 9.641 MB / 1.107 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006421/1.062, allocations: 363.1 kB / 1.383 GB, free: 9.273 MB / 1.107 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001076/1.063, allocations: 0.5994 MB / 1.384 GB, free: 8.66 MB / 1.107 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.907e-06/1.063, allocations: 0 / 1.384 GB, free: 8.66 MB / 1.107 GB Notification: Performance of matching and sorting (n=94) (initialization): time 0.001953/1.065, allocations: 0.8642 MB / 1.385 GB, free: 7.785 MB / 1.107 GB Notification: Performance of prepare postOptimizeDAE: time 1.995e-05/1.065, allocations: 8 kB / 1.385 GB, free: 7.777 MB / 1.107 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.155e-06/1.065, allocations: 0 / 1.385 GB, free: 7.777 MB / 1.107 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006011/1.066, allocations: 92.62 kB / 1.385 GB, free: 7.684 MB / 1.107 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006228/1.067, allocations: 155.8 kB / 1.385 GB, free: 7.531 MB / 1.107 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002066/1.069, allocations: 1.644 MB / 1.387 GB, free: 5.742 MB / 1.107 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007695/1.07, allocations: 93.98 kB / 1.387 GB, free: 5.652 MB / 1.107 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.474e-05/1.07, allocations: 31.97 kB / 1.387 GB, free: 5.621 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.0005264/1.07, allocations: 303.4 kB / 1.387 GB, free: 5.316 MB / 1.107 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000222/1.07, allocations: 106.7 kB / 1.387 GB, free: 5.211 MB / 1.107 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002325/1.073, allocations: 1.07 MB / 1.388 GB, free: 4.133 MB / 1.107 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.157e-05/1.073, allocations: 12 kB / 1.388 GB, free: 4.121 MB / 1.107 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/1.073, allocations: 3.938 kB / 1.388 GB, free: 4.117 MB / 1.107 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.205e-05/1.073, allocations: 7.969 kB / 1.388 GB, free: 4.109 MB / 1.107 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001246/1.074, allocations: 1.001 MB / 1.389 GB, free: 3.055 MB / 1.107 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.51e-06/1.074, allocations: 0 / 1.389 GB, free: 3.055 MB / 1.107 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005435/1.075, allocations: 139.8 kB / 1.389 GB, free: 2.918 MB / 1.107 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004327/1.075, allocations: 76.78 kB / 1.389 GB, free: 2.84 MB / 1.107 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.74e-05/1.075, allocations: 19.98 kB / 1.389 GB, free: 2.82 MB / 1.107 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002085/1.077, allocations: 1.678 MB / 1.391 GB, free: 0.9961 MB / 1.107 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/1.077, allocations: 0 / 1.391 GB, free: 0.9961 MB / 1.107 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001933/1.079, allocations: 0.9433 MB / 1.392 GB, free: 32 kB / 1.107 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004174/1.08, allocations: 291.5 kB / 1.392 GB, free: 15.73 MB / 1.123 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000155/1.08, allocations: 20 kB / 1.392 GB, free: 15.71 MB / 1.123 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006516/1.08, allocations: 63.92 kB / 1.392 GB, free: 15.64 MB / 1.123 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001435/1.081, allocations: 68.84 kB / 1.392 GB, free: 15.58 MB / 1.123 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.755e-05/1.081, allocations: 39.97 kB / 1.393 GB, free: 15.54 MB / 1.123 GB Notification: Performance of sorting global known variables: time 0.0007302/1.081, allocations: 0.5542 MB / 1.393 GB, free: 14.97 MB / 1.123 GB Notification: Performance of sort global known variables: time 1.9e-07/1.081, allocations: 0 / 1.393 GB, free: 14.97 MB / 1.123 GB Notification: Performance of remove unused functions: time 0.0009006/1.082, allocations: 343 kB / 1.393 GB, free: 14.64 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.001401/1.084, allocations: 0.6178 MB / 1.394 GB, free: 14.19 MB / 1.123 GB Notification: Performance of simCode: created initialization part: time 0.001711/1.085, allocations: 0.8236 MB / 1.395 GB, free: 13.36 MB / 1.123 GB Notification: Performance of simCode: created event and clocks part: time 3.347e-06/1.085, allocations: 4 kB / 1.395 GB, free: 13.35 MB / 1.123 GB Notification: Performance of simCode: created simulation system equations: time 0.0009428/1.086, allocations: 0.5158 MB / 1.395 GB, free: 12.83 MB / 1.123 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00169/1.088, allocations: 462.9 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.003559/1.092, allocations: 1.954 MB / 1.398 GB, free: 10.42 MB / 1.123 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008869/1.093, allocations: 1.101 MB / 1.399 GB, free: 9.297 MB / 1.123 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003235/1.093, allocations: 123.4 kB / 1.399 GB, free: 9.176 MB / 1.123 GB Notification: Performance of SimCode: time 5.71e-07/1.093, allocations: 4 kB / 1.399 GB, free: 9.172 MB / 1.123 GB Notification: Performance of Templates: time 0.02875/1.122, allocations: 22.38 MB / 1.421 GB, free: 2.828 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