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.004632/0.004632, allocations: 99.34 kB / 15.73 MB, free: 6.008 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.001167/0.001167, allocations: 197 kB / 16.68 MB, free: 5.934 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.321/1.321, allocations: 222.9 MB / 240.4 MB, free: 4.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002199/0.002199, allocations: 282.1 kB / 290.8 MB, free: 1.945 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.959/0.959, allocations: 169.3 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001881/0.001881, allocations: 91.86 kB / 0.6809 GB, free: 20 kB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.17/0.1719, allocations: 86.98 MB / 0.7659 GB, free: 8.965 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.IO.SignalExchange.Examples.WeatherStation): time 0.007351/0.1793, allocations: 5.116 MB / 0.7709 GB, free: 3.824 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.5491/0.7284, allocations: 150.8 MB / 0.9182 GB, free: 6.953 MB / 0.67 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001189/0.7296, allocations: 27.88 kB / 0.9182 GB, free: 6.926 MB / 0.67 GB Notification: Performance of NFTyping.typeComponents: time 0.0009053/0.7306, allocations: 344.3 kB / 0.9185 GB, free: 6.59 MB / 0.67 GB Notification: Performance of NFTyping.typeBindings: time 0.001736/0.7323, allocations: 0.5221 MB / 0.919 GB, free: 6.082 MB / 0.67 GB Notification: Performance of NFTyping.typeClassSections: time 0.00195/0.7343, allocations: 0.8635 MB / 0.9199 GB, free: 5.246 MB / 0.67 GB Notification: Performance of NFFlatten.flatten: time 0.001542/0.7358, allocations: 1.485 MB / 0.9213 GB, free: 3.754 MB / 0.67 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001025/0.7369, allocations: 0.8077 MB / 0.9221 GB, free: 2.914 MB / 0.67 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006607/0.7375, allocations: 0.5293 MB / 0.9226 GB, free: 2.383 MB / 0.67 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005373/0.7381, allocations: 0.5636 MB / 0.9232 GB, free: 1.816 MB / 0.67 GB Notification: Performance of NFPackage.collectConstants: time 0.0001523/0.7383, allocations: 132 kB / 0.9233 GB, free: 1.688 MB / 0.67 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008471/0.7391, allocations: 495.6 kB / 0.9238 GB, free: 1.203 MB / 0.67 GB Notification: Performance of NFScalarize.scalarize: time 0.0002732/0.7394, allocations: 338.8 kB / 0.9241 GB, free: 0.8711 MB / 0.67 GB Notification: Performance of NFVerifyModel.verify: time 0.0004732/0.7399, allocations: 0.6526 MB / 0.9248 GB, free: 220 kB / 0.67 GB Notification: Performance of NFConvertDAE.convert: time 0.002048/0.7419, allocations: 1.892 MB / 0.9266 GB, free: 14.32 MB / 0.6856 GB Notification: Performance of FrontEnd - DAE generated: time 5.119e-06/0.742, allocations: 3.938 kB / 0.9266 GB, free: 14.32 MB / 0.6856 GB Notification: Performance of FrontEnd: time 1.854e-06/0.742, allocations: 0 / 0.9266 GB, free: 14.32 MB / 0.6856 GB Notification: Performance of Transformations before backend: time 2.285e-05/0.742, 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.002774/0.7448, allocations: 1.719 MB / 0.9283 GB, free: 12.54 MB / 0.6856 GB Notification: Performance of prepare preOptimizeDAE: time 4.205e-05/0.7448, allocations: 9.906 kB / 0.9283 GB, free: 12.53 MB / 0.6856 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001681/0.745, allocations: 156.4 kB / 0.9284 GB, free: 12.37 MB / 0.6856 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009294/0.7459, allocations: 223.8 kB / 0.9287 GB, free: 12.15 MB / 0.6856 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001309/0.7473, allocations: 0.9228 MB / 0.9296 GB, free: 11.19 MB / 0.6856 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.52e-05/0.7473, allocations: 75.56 kB / 0.9296 GB, free: 11.12 MB / 0.6856 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001219/0.7475, allocations: 96 kB / 0.9297 GB, free: 11.02 MB / 0.6856 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001626/0.7491, allocations: 1.032 MB / 0.9307 GB, free: 9.949 MB / 0.6856 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.31e-05/0.7491, allocations: 3.984 kB / 0.9307 GB, free: 9.945 MB / 0.6856 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.531e-05/0.7492, allocations: 44 kB / 0.9308 GB, free: 9.902 MB / 0.6856 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.802e-05/0.7492, allocations: 24 kB / 0.9308 GB, free: 9.879 MB / 0.6856 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001762/0.751, allocations: 1.167 MB / 0.9319 GB, free: 8.711 MB / 0.6856 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004052/0.7551, allocations: 2.809 MB / 0.9347 GB, free: 5.832 MB / 0.6856 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001427/0.7565, allocations: 0.7903 MB / 0.9355 GB, free: 5.039 MB / 0.6856 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005217/0.7571, allocations: 307.2 kB / 0.9357 GB, free: 4.738 MB / 0.6856 GB Notification: Performance of preOpt evalFunc (simulation): time 6.731e-05/0.7571, allocations: 28.62 kB / 0.9358 GB, free: 4.711 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008394/0.758, allocations: 0.4971 MB / 0.9363 GB, free: 4.195 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=78): time 2.475e-06/0.758, allocations: 0 / 0.9363 GB, free: 4.195 MB / 0.6856 GB Notification: Performance of matching and sorting (n=78): time 0.00299/0.761, allocations: 1.21 MB / 0.9374 GB, free: 2.957 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.489e-05/0.7611, allocations: 192.6 kB / 0.9376 GB, free: 2.727 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009341/0.762, allocations: 0.8044 MB / 0.9384 GB, free: 1.898 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 6.57e-05/0.7621, allocations: 45.7 kB / 0.9385 GB, free: 1.848 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003672/0.7625, allocations: 0.5126 MB / 0.939 GB, free: 1.328 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001881/0.7627, allocations: 261.8 kB / 0.9392 GB, free: 1.07 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002219/0.7629, allocations: 146.6 kB / 0.9393 GB, free: 0.9219 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 0.000101/0.763, allocations: 337.9 kB / 0.9397 GB, free: 0.5859 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004677/0.7635, allocations: 241.8 kB / 0.9399 GB, free: 360 kB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005965/0.7641, allocations: 362.5 kB / 0.9402 GB, free: 15.97 MB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00102/0.7651, allocations: 0.5799 MB / 0.9408 GB, free: 15.38 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.7651, allocations: 0 / 0.9408 GB, free: 15.38 MB / 0.7012 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001874/0.767, allocations: 0.8217 MB / 0.9416 GB, free: 14.55 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 2.121e-05/0.7671, allocations: 4 kB / 0.9416 GB, free: 14.54 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.096e-05/0.7671, allocations: 4 kB / 0.9416 GB, free: 14.54 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005902/0.7677, allocations: 80.86 kB / 0.9417 GB, free: 14.46 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006022/0.7683, allocations: 151.7 kB / 0.9418 GB, free: 14.31 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002055/0.7703, allocations: 1.637 MB / 0.9434 GB, free: 12.53 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006974/0.7711, allocations: 92.62 kB / 0.9435 GB, free: 12.44 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.124e-05/0.7711, allocations: 35.97 kB / 0.9436 GB, free: 12.4 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.0004814/0.7716, allocations: 293.6 kB / 0.9438 GB, free: 12.11 MB / 0.7012 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002212/0.7719, allocations: 107.3 kB / 0.9439 GB, free: 12 MB / 0.7012 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002388/0.7743, allocations: 1.078 MB / 0.945 GB, free: 10.92 MB / 0.7012 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.217e-06/0.7743, allocations: 8 kB / 0.945 GB, free: 10.91 MB / 0.7012 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.7743, allocations: 3.938 kB / 0.945 GB, free: 10.91 MB / 0.7012 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.051e-05/0.7743, allocations: 3.984 kB / 0.945 GB, free: 10.9 MB / 0.7012 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001227/0.7755, allocations: 1.009 MB / 0.946 GB, free: 9.844 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.563e-06/0.7756, allocations: 0 / 0.946 GB, free: 9.844 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005604/0.7761, allocations: 139.8 kB / 0.9461 GB, free: 9.707 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004441/0.7766, allocations: 68.8 kB / 0.9462 GB, free: 9.637 MB / 0.7012 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.619e-05/0.7767, allocations: 27.97 kB / 0.9462 GB, free: 9.609 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001852/0.7785, allocations: 1.674 MB / 0.9479 GB, free: 7.789 MB / 0.7012 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.7785, allocations: 144 / 0.9479 GB, free: 7.789 MB / 0.7012 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002096/0.7806, allocations: 0.9517 MB / 0.9488 GB, free: 6.816 MB / 0.7012 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005169/0.7812, allocations: 296 kB / 0.9491 GB, free: 6.508 MB / 0.7012 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001942/0.7814, allocations: 24.66 kB / 0.9491 GB, free: 6.484 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006717/0.7821, allocations: 63.92 kB / 0.9492 GB, free: 6.422 MB / 0.7012 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001592/0.7822, allocations: 68.91 kB / 0.9492 GB, free: 6.355 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.045e-05/0.7823, allocations: 35.92 kB / 0.9493 GB, free: 6.32 MB / 0.7012 GB Notification: Performance of sorting global known variables: time 0.0007893/0.7831, allocations: 0.5542 MB / 0.9498 GB, free: 5.754 MB / 0.7012 GB Notification: Performance of sort global known variables: time 1.91e-07/0.7831, allocations: 7.875 kB / 0.9498 GB, free: 5.746 MB / 0.7012 GB Notification: Performance of remove unused functions: time 0.0009686/0.7841, allocations: 343 kB / 0.9501 GB, free: 5.41 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.00367/0.7878, allocations: 1.993 MB / 0.9521 GB, free: 3.57 MB / 0.7012 GB Notification: Performance of simCode: created initialization part: time 0.001623/0.7894, allocations: 0.7924 MB / 0.9529 GB, free: 2.77 MB / 0.7012 GB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.7894, allocations: 0 / 0.9529 GB, free: 2.77 MB / 0.7012 GB Notification: Performance of simCode: created simulation system equations: time 0.0009327/0.7904, allocations: 0.5159 MB / 0.9534 GB, free: 2.242 MB / 0.7012 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00178/0.7922, allocations: 468.1 kB / 0.9538 GB, free: 1.828 MB / 0.7012 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01239/0.8046, allocations: 7.102 MB / 0.9607 GB, free: 10.58 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007172/0.8053, allocations: 1.105 MB / 0.9618 GB, free: 9.449 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0009546/0.8063, allocations: 287.6 kB / 0.9621 GB, free: 9.164 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006858/0.807, allocations: 471.2 kB / 0.9625 GB, free: 8.703 MB / 0.7169 GB Notification: Performance of SimCode: time 1.323e-06/0.807, allocations: 0 / 0.9625 GB, free: 8.703 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07296/0.88, allocations: 25.4 MB / 0.9873 GB, free: 15.65 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.91/13.79, allocations: 7.922 kB / 0.9874 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)