Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.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: "" <> buildModelFMU(BuildingSystems.Utilities.IO.SignalExchange.Examples.WeatherStation,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_IO_SignalExchange_Examples_WeatherStation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.IO.SignalExchange.Examples.WeatherStation,fileNamePrefix="BuildingSystems_BuildingSystems_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.006392/0.006392, allocations: 100.9 kB / 15.73 MB, free: 6.062 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.001358/0.001358, allocations: 196.8 kB / 16.68 MB, free: 5.965 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.367/1.367, 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/NcDataReader2 2.5.1-master/package.mo): time 0.00221/0.00221, allocations: 289.1 kB / 290.8 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9375/0.9375, allocations: 169.3 MB / 0.4983 GB, free: 4.402 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001851/0.001851, allocations: 95.84 kB / 0.6809 GB, free: 7.469 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4704/0.4722, allocations: 86.98 MB / 0.7659 GB, free: 3.836 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.IO.SignalExchange.Examples.WeatherStation): time 0.006743/0.479, allocations: 5.108 MB / 0.7709 GB, free: 14.7 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.1539/0.633, allocations: 150.8 MB / 0.9182 GB, free: 7.27 MB / 0.6856 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001451/0.6345, allocations: 23.81 kB / 0.9182 GB, free: 7.246 MB / 0.6856 GB Notification: Performance of NFTyping.typeComponents: time 0.0009978/0.6356, allocations: 341.5 kB / 0.9185 GB, free: 6.91 MB / 0.6856 GB Notification: Performance of NFTyping.typeBindings: time 0.002109/0.6377, allocations: 0.5329 MB / 0.919 GB, free: 6.379 MB / 0.6856 GB Notification: Performance of NFTyping.typeClassSections: time 0.002423/0.6401, allocations: 0.8654 MB / 0.9199 GB, free: 5.52 MB / 0.6856 GB Notification: Performance of NFFlatten.flatten: time 0.002231/0.6424, allocations: 1.477 MB / 0.9213 GB, free: 4.035 MB / 0.6856 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001602/0.644, allocations: 0.8178 MB / 0.9221 GB, free: 3.184 MB / 0.6856 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009027/0.6449, allocations: 0.5331 MB / 0.9227 GB, free: 2.648 MB / 0.6856 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007571/0.6457, allocations: 0.552 MB / 0.9232 GB, free: 2.094 MB / 0.6856 GB Notification: Performance of NFPackage.collectConstants: time 0.0003301/0.646, allocations: 132 kB / 0.9233 GB, free: 1.965 MB / 0.6856 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001061/0.6471, allocations: 0.4996 MB / 0.9238 GB, free: 1.465 MB / 0.6856 GB Notification: Performance of NFScalarize.scalarize: time 0.0004374/0.6475, allocations: 330.9 kB / 0.9241 GB, free: 1.141 MB / 0.6856 GB Notification: Performance of NFVerifyModel.verify: time 0.0009074/0.6484, allocations: 0.6488 MB / 0.9248 GB, free: 500 kB / 0.6856 GB Notification: Performance of NFConvertDAE.convert: time 0.002769/0.6512, allocations: 1.896 MB / 0.9266 GB, free: 14.59 MB / 0.7012 GB Notification: Performance of FrontEnd - DAE generated: time 6.302e-06/0.6512, allocations: 0 / 0.9266 GB, free: 14.59 MB / 0.7012 GB Notification: Performance of FrontEnd: time 1.763e-06/0.6513, allocations: 4 kB / 0.9266 GB, free: 14.59 MB / 0.7012 GB Notification: Performance of Transformations before backend: time 7.305e-05/0.6513, allocations: 0 / 0.9266 GB, free: 14.59 MB / 0.7012 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.003807/0.6551, allocations: 1.727 MB / 0.9283 GB, free: 12.8 MB / 0.7012 GB Notification: Performance of prepare preOptimizeDAE: time 3.895e-05/0.6552, allocations: 12.03 kB / 0.9283 GB, free: 12.79 MB / 0.7012 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002292/0.6554, allocations: 152.4 kB / 0.9285 GB, free: 12.63 MB / 0.7012 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00102/0.6565, allocations: 227.8 kB / 0.9287 GB, free: 12.41 MB / 0.7012 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001447/0.6579, allocations: 0.9146 MB / 0.9296 GB, free: 11.45 MB / 0.7012 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.685e-05/0.658, allocations: 70 kB / 0.9296 GB, free: 11.39 MB / 0.7012 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001077/0.6581, allocations: 96 kB / 0.9297 GB, free: 11.29 MB / 0.7012 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001677/0.6598, allocations: 1.035 MB / 0.9307 GB, free: 10.21 MB / 0.7012 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.184e-05/0.6598, allocations: 4 kB / 0.9307 GB, free: 10.21 MB / 0.7012 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.612e-05/0.6599, allocations: 43.94 kB / 0.9308 GB, free: 10.16 MB / 0.7012 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.311e-05/0.66, allocations: 28 kB / 0.9308 GB, free: 10.14 MB / 0.7012 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00185/0.6618, allocations: 1.167 MB / 0.9319 GB, free: 8.969 MB / 0.7012 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004304/0.6661, allocations: 2.805 MB / 0.9347 GB, free: 6.094 MB / 0.7012 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001476/0.6676, allocations: 0.8011 MB / 0.9355 GB, free: 5.285 MB / 0.7012 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005111/0.6681, allocations: 298.7 kB / 0.9358 GB, free: 4.992 MB / 0.7012 GB Notification: Performance of preOpt evalFunc (simulation): time 7.746e-05/0.6682, allocations: 28.61 kB / 0.9358 GB, free: 4.965 MB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008145/0.6691, allocations: 495.7 kB / 0.9363 GB, free: 4.461 MB / 0.7012 GB Notification: Performance of pre-optimization done (n=78): time 2.154e-06/0.6691, allocations: 0 / 0.9363 GB, free: 4.461 MB / 0.7012 GB Notification: Performance of matching and sorting (n=78): time 0.003008/0.6721, allocations: 1.21 MB / 0.9374 GB, free: 3.223 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001176/0.6722, allocations: 192.6 kB / 0.9376 GB, free: 2.992 MB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001004/0.6732, allocations: 0.8046 MB / 0.9384 GB, free: 2.16 MB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 5.801e-05/0.6733, allocations: 37.7 kB / 0.9384 GB, free: 2.117 MB / 0.7012 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003744/0.6737, allocations: 0.5126 MB / 0.9389 GB, free: 1.598 MB / 0.7012 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001916/0.6739, allocations: 265.8 kB / 0.9392 GB, free: 1.336 MB / 0.7012 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002201/0.6741, allocations: 146.6 kB / 0.9393 GB, free: 1.188 MB / 0.7012 GB Notification: Performance of setup shared object (initialization): time 0.0001495/0.6743, allocations: 337.9 kB / 0.9397 GB, free: 0.8516 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004676/0.6747, allocations: 241.9 kB / 0.9399 GB, free: 0.6172 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005673/0.6753, allocations: 362.5 kB / 0.9402 GB, free: 244 kB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001052/0.6764, allocations: 0.5721 MB / 0.9408 GB, free: 15.66 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.436e-06/0.6764, allocations: 0 / 0.9408 GB, free: 15.66 MB / 0.7169 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001772/0.6782, allocations: 0.8179 MB / 0.9416 GB, free: 14.82 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.845e-05/0.6782, allocations: 8.094 kB / 0.9416 GB, free: 14.82 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.163e-06/0.6782, allocations: 4 kB / 0.9416 GB, free: 14.81 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005683/0.6788, allocations: 84.7 kB / 0.9417 GB, free: 14.73 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000617/0.6794, allocations: 155.7 kB / 0.9418 GB, free: 14.57 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002216/0.6816, allocations: 1.638 MB / 0.9434 GB, free: 12.79 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006427/0.6823, allocations: 87.53 kB / 0.9435 GB, free: 12.71 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.05e-05/0.6824, allocations: 31.97 kB / 0.9435 GB, free: 12.68 MB / 0.7169 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.0004612/0.6828, allocations: 296.5 kB / 0.9438 GB, free: 12.38 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001605/0.683, allocations: 107.3 kB / 0.9439 GB, free: 12.27 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002282/0.6853, allocations: 1.072 MB / 0.945 GB, free: 11.19 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.067e-06/0.6853, allocations: 15.94 kB / 0.945 GB, free: 11.18 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.595e-06/0.6853, allocations: 4 kB / 0.945 GB, free: 11.17 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.137e-06/0.6853, allocations: 3.984 kB / 0.945 GB, free: 11.17 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001218/0.6866, allocations: 1.017 MB / 0.946 GB, free: 10.1 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.018e-06/0.6866, allocations: 4.047 kB / 0.946 GB, free: 10.1 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005335/0.6871, allocations: 139.8 kB / 0.9461 GB, free: 9.961 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004079/0.6875, allocations: 72.78 kB / 0.9462 GB, free: 9.887 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.327e-05/0.6876, allocations: 27.97 kB / 0.9462 GB, free: 9.859 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00178/0.6894, allocations: 1.67 MB / 0.9479 GB, free: 8.043 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.6894, allocations: 0 / 0.9479 GB, free: 8.043 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001821/0.6912, allocations: 0.9478 MB / 0.9488 GB, free: 7.074 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003563/0.6916, allocations: 296 kB / 0.9491 GB, free: 6.766 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001171/0.6917, allocations: 16.06 kB / 0.9491 GB, free: 6.75 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005742/0.6923, allocations: 73.55 kB / 0.9491 GB, free: 6.684 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001443/0.6925, allocations: 76.83 kB / 0.9492 GB, free: 6.609 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.308e-05/0.6925, allocations: 31.98 kB / 0.9493 GB, free: 6.578 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0007316/0.6933, allocations: 0.5581 MB / 0.9498 GB, free: 6.008 MB / 0.7169 GB Notification: Performance of sort global known variables: time 2.1e-07/0.6933, allocations: 0 / 0.9498 GB, free: 6.008 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0008528/0.6941, allocations: 339 kB / 0.9501 GB, free: 5.676 MB / 0.7169 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.003504/0.6976, allocations: 1.995 MB / 0.9521 GB, free: 3.828 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0016/0.6993, allocations: 0.7962 MB / 0.9528 GB, free: 3.023 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/0.6993, allocations: 4 kB / 0.9528 GB, free: 3.02 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0008786/0.7002, allocations: 0.5158 MB / 0.9534 GB, free: 2.492 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001489/0.7017, allocations: 461.4 kB / 0.9538 GB, free: 2.078 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3407/1.042, allocations: 7.104 MB / 0.9607 GB, free: 185.6 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007493/1.043, allocations: 1.103 MB / 0.9618 GB, free: 184.9 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.001034/1.044, allocations: 284.9 kB / 0.9621 GB, free: 184.8 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005312/1.045, allocations: 470.9 kB / 0.9625 GB, free: 184.5 MB / 0.7169 GB Notification: Performance of SimCode: time 9.21e-07/1.045, allocations: 0 / 0.9625 GB, free: 184.5 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04578/1.091, allocations: 25.4 MB / 0.9873 GB, free: 165.1 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.78/13.88, allocations: 13.83 kB / 0.9873 GB, free: 165.1 MB / 0.7169 GB (rm -f BuildingSystems_BuildingSystems.Utilities.IO.SignalExchange.Examples.WeatherStation.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.IO.SignalExchange.Examples.WeatherStation.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.IO.SignalExchange.Examples.WeatherStation.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.IO.SignalExchange.Examples.WeatherStation.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Utilities.IO.SignalExchange.Examples.WeatherStation_res.csv --start-time 0 --stop-time 864000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 345.6 BuildingSystems_BuildingSystems_Utilities_IO_SignalExchange_Examples_WeatherStation.fmu > BuildingSystems_BuildingSystems.Utilities.IO.SignalExchange.Examples.WeatherStation.pipe 2>&1)