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.004927/0.004927, allocations: 96 kB / 15.73 MB, free: 6.059 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.001277/0.001277, allocations: 189.9 kB / 16.67 MB, free: 5.977 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.441/1.441, allocations: 222.9 MB / 240.4 MB, free: 4.289 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002432/0.002432, allocations: 290.3 kB / 290.8 MB, free: 1.887 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.007/1.007, allocations: 169.3 MB / 0.4983 GB, free: 13.81 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002678/0.002678, allocations: 95.97 kB / 0.6809 GB, free: 24 kB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1609/0.1636, allocations: 86.98 MB / 0.7659 GB, free: 8.961 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.IO.SignalExchange.Examples.WeatherStation): time 0.007113/0.1708, allocations: 5.097 MB / 0.7709 GB, free: 3.84 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.5507/0.7215, allocations: 150.8 MB / 0.9182 GB, free: 6.949 MB / 0.67 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001192/0.7227, allocations: 27.81 kB / 0.9182 GB, free: 6.922 MB / 0.67 GB Notification: Performance of NFTyping.typeComponents: time 0.001172/0.7239, allocations: 347.5 kB / 0.9185 GB, free: 6.582 MB / 0.67 GB Notification: Performance of NFTyping.typeBindings: time 0.002244/0.7262, allocations: 0.5195 MB / 0.919 GB, free: 6.078 MB / 0.67 GB Notification: Performance of NFTyping.typeClassSections: time 0.0021/0.7283, allocations: 0.8639 MB / 0.9199 GB, free: 5.242 MB / 0.67 GB Notification: Performance of NFFlatten.flatten: time 0.001977/0.7303, allocations: 1.473 MB / 0.9213 GB, free: 3.762 MB / 0.67 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001191/0.7315, allocations: 0.8204 MB / 0.9221 GB, free: 2.91 MB / 0.67 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006947/0.7322, allocations: 0.5226 MB / 0.9226 GB, free: 2.387 MB / 0.67 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006312/0.7329, allocations: 0.5559 MB / 0.9232 GB, free: 1.828 MB / 0.67 GB Notification: Performance of NFPackage.collectConstants: time 0.0001847/0.7331, allocations: 132 kB / 0.9233 GB, free: 1.699 MB / 0.67 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009647/0.734, allocations: 0.4918 MB / 0.9238 GB, free: 1.207 MB / 0.67 GB Notification: Performance of NFScalarize.scalarize: time 0.000318/0.7344, allocations: 334.8 kB / 0.9241 GB, free: 0.8789 MB / 0.67 GB Notification: Performance of NFVerifyModel.verify: time 0.000595/0.735, allocations: 0.6527 MB / 0.9247 GB, free: 228 kB / 0.67 GB Notification: Performance of NFConvertDAE.convert: time 0.002341/0.7373, allocations: 1.896 MB / 0.9266 GB, free: 14.33 MB / 0.6856 GB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.7373, allocations: 0 / 0.9266 GB, free: 14.33 MB / 0.6856 GB Notification: Performance of FrontEnd: time 1.372e-06/0.7373, allocations: 0 / 0.9266 GB, free: 14.33 MB / 0.6856 GB Notification: Performance of Transformations before backend: time 2.175e-05/0.7374, allocations: 4 kB / 0.9266 GB, free: 14.32 MB / 0.6856 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.002783/0.7401, allocations: 1.712 MB / 0.9283 GB, free: 12.55 MB / 0.6856 GB Notification: Performance of prepare preOptimizeDAE: time 3.971e-05/0.7402, allocations: 12.03 kB / 0.9283 GB, free: 12.54 MB / 0.6856 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001801/0.7404, allocations: 152.4 kB / 0.9284 GB, free: 12.39 MB / 0.6856 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009348/0.7413, allocations: 227.8 kB / 0.9286 GB, free: 12.16 MB / 0.6856 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001365/0.7427, allocations: 0.9228 MB / 0.9295 GB, free: 11.2 MB / 0.6856 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.017e-05/0.7428, allocations: 70 kB / 0.9296 GB, free: 11.13 MB / 0.6856 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001248/0.7429, allocations: 98.06 kB / 0.9297 GB, free: 11.04 MB / 0.6856 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001796/0.7447, allocations: 1.047 MB / 0.9307 GB, free: 9.953 MB / 0.6856 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.214e-05/0.7448, allocations: 0 / 0.9307 GB, free: 9.953 MB / 0.6856 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001056/0.7449, allocations: 43.98 kB / 0.9308 GB, free: 9.91 MB / 0.6856 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.522e-05/0.7449, allocations: 24 kB / 0.9308 GB, free: 9.887 MB / 0.6856 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001905/0.7468, allocations: 1.163 MB / 0.9319 GB, free: 8.723 MB / 0.6856 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004383/0.7512, allocations: 2.817 MB / 0.9347 GB, free: 5.836 MB / 0.6856 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001508/0.7527, allocations: 0.7941 MB / 0.9354 GB, free: 5.039 MB / 0.6856 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005652/0.7533, allocations: 306.6 kB / 0.9357 GB, free: 4.738 MB / 0.6856 GB Notification: Performance of preOpt evalFunc (simulation): time 8.428e-05/0.7534, allocations: 28.61 kB / 0.9358 GB, free: 4.711 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009722/0.7544, allocations: 491.7 kB / 0.9362 GB, free: 4.211 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=78): time 2.344e-06/0.7544, allocations: 0 / 0.9362 GB, free: 4.211 MB / 0.6856 GB Notification: Performance of matching and sorting (n=78): time 0.003426/0.7578, allocations: 1.21 MB / 0.9374 GB, free: 2.973 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001964/0.758, allocations: 188.6 kB / 0.9376 GB, free: 2.746 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001333/0.7594, allocations: 0.8046 MB / 0.9384 GB, free: 1.914 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 8.227e-05/0.7595, allocations: 49.7 kB / 0.9384 GB, free: 1.859 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.000505/0.76, allocations: 0.5126 MB / 0.9389 GB, free: 1.34 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003156/0.7603, allocations: 265.8 kB / 0.9392 GB, free: 1.078 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002323/0.7606, allocations: 142.6 kB / 0.9393 GB, free: 0.9336 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 0.0001696/0.7607, allocations: 337.9 kB / 0.9396 GB, free: 0.5977 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005107/0.7612, allocations: 249.8 kB / 0.9399 GB, free: 364 kB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006401/0.7619, allocations: 358.6 kB / 0.9402 GB, free: 15.98 MB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001263/0.7632, allocations: 0.576 MB / 0.9408 GB, free: 15.39 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.565e-06/0.7632, allocations: 7.672 kB / 0.9408 GB, free: 15.39 MB / 0.7012 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.002024/0.7652, allocations: 0.8178 MB / 0.9416 GB, free: 14.56 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 2.194e-05/0.7653, allocations: 4 kB / 0.9416 GB, free: 14.55 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.536e-06/0.7653, allocations: 4 kB / 0.9416 GB, free: 14.55 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005764/0.7659, allocations: 84.86 kB / 0.9417 GB, free: 14.46 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006055/0.7665, allocations: 151.7 kB / 0.9418 GB, free: 14.32 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002209/0.7687, allocations: 1.635 MB / 0.9434 GB, free: 12.54 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007228/0.7694, allocations: 91.36 kB / 0.9435 GB, free: 12.45 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.891e-05/0.7695, allocations: 31.97 kB / 0.9435 GB, free: 12.42 MB / 0.7012 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.0005148/0.77, allocations: 293.6 kB / 0.9438 GB, free: 12.12 MB / 0.7012 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001822/0.7702, allocations: 107.3 kB / 0.9439 GB, free: 12.02 MB / 0.7012 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002457/0.7727, allocations: 1.078 MB / 0.945 GB, free: 10.93 MB / 0.7012 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.114e-05/0.7727, allocations: 8 kB / 0.945 GB, free: 10.93 MB / 0.7012 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.529e-06/0.7727, allocations: 3.938 kB / 0.945 GB, free: 10.92 MB / 0.7012 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.768e-06/0.7727, allocations: 3.984 kB / 0.945 GB, free: 10.92 MB / 0.7012 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001258/0.774, allocations: 1.013 MB / 0.946 GB, free: 9.855 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.987e-06/0.774, allocations: 0 / 0.946 GB, free: 9.855 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005615/0.7746, allocations: 143.8 kB / 0.9461 GB, free: 9.715 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004377/0.775, allocations: 76.73 kB / 0.9462 GB, free: 9.637 MB / 0.7012 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.787e-05/0.7751, allocations: 27.97 kB / 0.9462 GB, free: 9.609 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002045/0.7771, allocations: 1.666 MB / 0.9478 GB, free: 7.797 MB / 0.7012 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.7772, allocations: 4.031 kB / 0.9478 GB, free: 7.793 MB / 0.7012 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002001/0.7792, allocations: 0.9478 MB / 0.9488 GB, free: 6.824 MB / 0.7012 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003998/0.7796, allocations: 296.2 kB / 0.9491 GB, free: 6.516 MB / 0.7012 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001171/0.7797, allocations: 23.98 kB / 0.9491 GB, free: 6.492 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005915/0.7803, allocations: 59.94 kB / 0.9491 GB, free: 6.434 MB / 0.7012 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001475/0.7805, allocations: 72.89 kB / 0.9492 GB, free: 6.363 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.006e-05/0.7805, allocations: 31.92 kB / 0.9492 GB, free: 6.332 MB / 0.7012 GB Notification: Performance of sorting global known variables: time 0.0008065/0.7813, allocations: 0.562 MB / 0.9498 GB, free: 5.758 MB / 0.7012 GB Notification: Performance of sort global known variables: time 2.6e-07/0.7813, allocations: 3.938 kB / 0.9498 GB, free: 5.754 MB / 0.7012 GB Notification: Performance of remove unused functions: time 0.0008502/0.7822, allocations: 343 kB / 0.9501 GB, free: 5.418 MB / 0.7012 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.004089/0.7863, allocations: 1.988 MB / 0.9521 GB, free: 3.578 MB / 0.7012 GB Notification: Performance of simCode: created initialization part: time 0.001683/0.788, allocations: 0.8 MB / 0.9528 GB, free: 2.77 MB / 0.7012 GB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/0.788, allocations: 0 / 0.9528 GB, free: 2.77 MB / 0.7012 GB Notification: Performance of simCode: created simulation system equations: time 0.000965/0.789, allocations: 0.5197 MB / 0.9533 GB, free: 2.238 MB / 0.7012 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001673/0.7907, allocations: 469.5 kB / 0.9538 GB, free: 1.824 MB / 0.7012 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01328/0.804, allocations: 7.098 MB / 0.9607 GB, free: 10.58 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00092/0.8049, allocations: 1.094 MB / 0.9618 GB, free: 9.457 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.001036/0.806, allocations: 283.6 kB / 0.9621 GB, free: 9.176 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000689/0.8067, allocations: 479.2 kB / 0.9625 GB, free: 8.707 MB / 0.7169 GB Notification: Performance of SimCode: time 8.42e-07/0.8067, allocations: 0 / 0.9625 GB, free: 8.707 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06316/0.8699, allocations: 25.39 MB / 0.9873 GB, free: 15.66 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.32/14.19, allocations: 20.66 kB / 0.9873 GB, free: 15.64 MB / 0.7481 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)