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: "" <> buildModelFMU(Buildings.Utilities.IO.SignalExchange.Examples.WeatherStation,fileNamePrefix="Buildings_9_Buildings_Utilities_IO_SignalExchange_Examples_WeatherStation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.SignalExchange.Examples.WeatherStation,fileNamePrefix="Buildings_9_Buildings_Utilities_IO_SignalExchange_Examples_WeatherStation",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005836/0.005836, allocations: 101 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.001196/0.001196, allocations: 188.6 kB / 16.67 MB, free: 5.98 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.374/1.374, allocations: 222.9 MB / 240.4 MB, free: 4.312 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.396/2.396, allocations: 390.2 MB / 0.6648 GB, free: 224 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001201/0.001201, allocations: 61.19 kB / 0.9504 GB, free: 5.945 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2828/0.284, allocations: 140.4 MB / 1.087 GB, free: 2.02 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.SignalExchange.Examples.WeatherStation): time 0.007299/0.2913, allocations: 5.121 MB / 1.092 GB, free: 12.87 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.1675/0.4588, allocations: 150.8 MB / 1.24 GB, free: 5.438 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00103/0.4599, allocations: 23.88 kB / 1.24 GB, free: 5.414 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0007819/0.4607, allocations: 345.4 kB / 1.24 GB, free: 5.074 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.001597/0.4624, allocations: 0.5324 MB / 1.241 GB, free: 4.543 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.001937/0.4643, allocations: 0.8556 MB / 1.241 GB, free: 3.691 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.001709/0.466, allocations: 1.481 MB / 1.243 GB, free: 2.203 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001065/0.4671, allocations: 0.8177 MB / 1.244 GB, free: 1.352 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006634/0.4678, allocations: 0.5254 MB / 1.244 GB, free: 0.8242 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008153/0.4686, allocations: 0.5597 MB / 1.245 GB, free: 268 kB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.000244/0.4689, allocations: 132 kB / 1.245 GB, free: 136 kB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001385/0.4703, allocations: 499.6 kB / 1.245 GB, free: 15.64 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 0.0004063/0.4707, allocations: 334.8 kB / 1.246 GB, free: 15.32 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.0007948/0.4715, allocations: 0.6449 MB / 1.246 GB, free: 14.67 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.002638/0.4741, allocations: 1.893 MB / 1.248 GB, free: 12.77 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 3.938e-06/0.4742, allocations: 0 / 1.248 GB, free: 12.77 MB / 1.014 GB Notification: Performance of FrontEnd: time 3.547e-06/0.4742, allocations: 0 / 1.248 GB, free: 12.77 MB / 1.014 GB Notification: Performance of Transformations before backend: time 1.963e-05/0.4742, allocations: 3.938 kB / 1.248 GB, free: 12.77 MB / 1.014 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.003609/0.4778, allocations: 1.667 MB / 1.25 GB, free: 11.05 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 5.064e-05/0.4779, allocations: 8.031 kB / 1.25 GB, free: 11.04 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002303/0.4781, allocations: 156.4 kB / 1.25 GB, free: 10.88 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001351/0.4795, allocations: 219 kB / 1.25 GB, free: 10.66 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001837/0.4813, allocations: 0.9177 MB / 1.251 GB, free: 9.703 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.454e-05/0.4814, allocations: 74 kB / 1.251 GB, free: 9.629 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001686/0.4816, allocations: 99.98 kB / 1.251 GB, free: 9.531 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002327/0.484, allocations: 1.032 MB / 1.252 GB, free: 8.461 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.982e-05/0.484, allocations: 0 / 1.252 GB, free: 8.461 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001208/0.4841, allocations: 44 kB / 1.252 GB, free: 8.418 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.824e-05/0.4842, allocations: 24 kB / 1.252 GB, free: 8.395 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002651/0.4868, allocations: 1.171 MB / 1.253 GB, free: 7.219 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00573/0.4926, allocations: 2.795 MB / 1.256 GB, free: 4.355 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00206/0.4947, allocations: 0.7977 MB / 1.257 GB, free: 3.551 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007397/0.4954, allocations: 306.6 kB / 1.257 GB, free: 3.25 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001041/0.4955, allocations: 28.61 kB / 1.257 GB, free: 3.223 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001142/0.4967, allocations: 495.1 kB / 1.258 GB, free: 2.719 MB / 1.014 GB Notification: Performance of pre-optimization done (n=78): time 3.446e-06/0.4967, allocations: 0 / 1.258 GB, free: 2.719 MB / 1.014 GB Notification: Performance of matching and sorting (n=78): time 0.004265/0.501, allocations: 1.205 MB / 1.259 GB, free: 1.484 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001405/0.5011, allocations: 196.6 kB / 1.259 GB, free: 1.25 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00146/0.5026, allocations: 0.7968 MB / 1.26 GB, free: 436 kB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 9.636e-05/0.5027, allocations: 41.7 kB / 1.26 GB, free: 388 kB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.5689/1.072, allocations: 0.5022 MB / 1.26 GB, free: 173.7 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003539/1.072, allocations: 255.2 kB / 1.261 GB, free: 173.6 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002774/1.072, allocations: 142.8 kB / 1.261 GB, free: 173.6 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 7.793e-05/1.072, allocations: 339.3 kB / 1.261 GB, free: 173.2 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006083/1.073, allocations: 244.3 kB / 1.261 GB, free: 173.2 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006562/1.074, allocations: 357.9 kB / 1.262 GB, free: 173.2 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001184/1.075, allocations: 0.5816 MB / 1.262 GB, free: 173.1 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.751e-06/1.075, allocations: 0 / 1.262 GB, free: 173.1 MB / 1.014 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.002204/1.077, allocations: 0.8119 MB / 1.263 GB, free: 173 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 2.803e-05/1.077, allocations: 6.734 kB / 1.263 GB, free: 173 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.848e-06/1.077, allocations: 7.375 kB / 1.263 GB, free: 173 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000624/1.078, allocations: 81.89 kB / 1.263 GB, free: 173 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000616/1.078, allocations: 148.7 kB / 1.263 GB, free: 173 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00205/1.08, allocations: 1.639 MB / 1.265 GB, free: 171.6 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007684/1.081, allocations: 91.94 kB / 1.265 GB, free: 171.6 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.822e-05/1.081, allocations: 28.91 kB / 1.265 GB, free: 171.5 MB / 1.014 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 15 (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 (84): * Single equations (assignments): 83 * 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.0005072/1.082, allocations: 297.4 kB / 1.265 GB, free: 171.3 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001909/1.082, allocations: 102.2 kB / 1.265 GB, free: 171.3 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002542/1.085, allocations: 1.077 MB / 1.266 GB, free: 170.9 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.451e-05/1.085, allocations: 9.719 kB / 1.266 GB, free: 170.9 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/1.085, allocations: 5.375 kB / 1.266 GB, free: 170.9 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.342e-05/1.085, allocations: 4.031 kB / 1.266 GB, free: 170.9 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001441/1.086, allocations: 1.006 MB / 1.267 GB, free: 170.4 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.969e-06/1.086, allocations: 1.156 kB / 1.267 GB, free: 170.4 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005893/1.087, allocations: 141.2 kB / 1.268 GB, free: 170.4 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004657/1.087, allocations: 72.67 kB / 1.268 GB, free: 170.3 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.491e-05/1.087, allocations: 28.55 kB / 1.268 GB, free: 170.3 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001775/1.089, allocations: 1.671 MB / 1.269 GB, free: 168.8 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.402e-06/1.089, allocations: 3.281 kB / 1.269 GB, free: 168.8 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002468/1.091, allocations: 0.9431 MB / 1.27 GB, free: 168.4 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005341/1.092, allocations: 289.2 kB / 1.27 GB, free: 168.2 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000123/1.092, allocations: 26.95 kB / 1.271 GB, free: 168.1 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005961/1.093, allocations: 64.89 kB / 1.271 GB, free: 168.1 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002242/1.093, allocations: 71.08 kB / 1.271 GB, free: 168.1 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.341e-05/1.093, allocations: 33.38 kB / 1.271 GB, free: 168.1 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.00121/1.094, allocations: 0.5582 MB / 1.271 GB, free: 167.9 MB / 1.014 GB Notification: Performance of sort global known variables: time 1.6e-07/1.094, allocations: 2.078 kB / 1.271 GB, free: 167.9 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.001301/1.096, allocations: 327.6 kB / 1.272 GB, free: 167.8 MB / 1.014 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.004522/1.1, allocations: 1.986 MB / 1.273 GB, free: 166.8 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.002071/1.102, allocations: 0.7917 MB / 1.274 GB, free: 166.4 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 4.329e-06/1.102, allocations: 0.5938 kB / 1.274 GB, free: 166.4 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.001117/1.103, allocations: 0.5171 MB / 1.275 GB, free: 166.2 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00162/1.105, allocations: 466.6 kB / 1.275 GB, free: 166 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01303/1.118, allocations: 7.075 MB / 1.282 GB, free: 162.6 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007259/1.119, allocations: 1.098 MB / 1.283 GB, free: 161.9 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.0009948/1.12, allocations: 283.4 kB / 1.283 GB, free: 161.8 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005759/1.12, allocations: 474.9 kB / 1.284 GB, free: 161.5 MB / 1.014 GB Notification: Performance of SimCode: time 7.81e-07/1.12, allocations: 0 / 1.284 GB, free: 161.5 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06392/1.184, allocations: 25.37 MB / 1.309 GB, free: 151.6 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.75/13.93, allocations: 9.25 kB / 1.309 GB, free: 151.5 MB / 1.014 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.IO.SignalExchange.Examples.WeatherStation_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_IO_SignalExchange_Examples_WeatherStation_fmu --startTime=0 --stopTime=864000 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_IO_SignalExchange_Examples_WeatherStation.fmu > 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/jenkins1/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