Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.BoundaryConditions.SkyTemperature.Examples.BlackBody.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.BoundaryConditions.SkyTemperature.Examples.BlackBody,fileNamePrefix="BuildingSystems_BuildingSystems_BoundaryConditions_SkyTemperature_Examples_BlackBody",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.BoundaryConditions.SkyTemperature.Examples.BlackBody,fileNamePrefix="BuildingSystems_BuildingSystems_BoundaryConditions_SkyTemperature_Examples_BlackBody",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.004191/0.004191, allocations: 97.69 kB / 15.73 MB, free: 6.055 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.000942/0.0009419, allocations: 198.4 kB / 16.68 MB, free: 5.961 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.219/1.219, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001995/0.001995, allocations: 285.8 kB / 290.8 MB, free: 14.44 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.887/0.887, allocations: 169.2 MB / 0.4983 GB, free: 4.434 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001685/0.001685, allocations: 91.86 kB / 0.6809 GB, free: 7.504 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3623/0.364, allocations: 86.98 MB / 0.7659 GB, free: 3.887 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.BoundaryConditions.SkyTemperature.Examples.BlackBody): time 0.005468/0.3695, allocations: 4.435 MB / 0.7702 GB, free: 15.43 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.1343/0.5039, allocations: 150.6 MB / 0.9173 GB, free: 8.254 MB / 0.6856 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006502/0.5045, allocations: 19.88 kB / 0.9173 GB, free: 8.234 MB / 0.6856 GB Notification: Performance of NFTyping.typeComponents: time 0.0005369/0.5051, allocations: 170.4 kB / 0.9174 GB, free: 8.066 MB / 0.6856 GB Notification: Performance of NFTyping.typeBindings: time 0.00148/0.5066, allocations: 0.5292 MB / 0.918 GB, free: 7.539 MB / 0.6856 GB Notification: Performance of NFTyping.typeClassSections: time 0.001773/0.5084, allocations: 0.8327 MB / 0.9188 GB, free: 6.711 MB / 0.6856 GB Notification: Performance of NFFlatten.flatten: time 0.001308/0.5097, allocations: 1.35 MB / 0.9201 GB, free: 5.355 MB / 0.6856 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007997/0.5105, allocations: 0.6454 MB / 0.9207 GB, free: 4.688 MB / 0.6856 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006556/0.5112, allocations: 0.4905 MB / 0.9212 GB, free: 4.195 MB / 0.6856 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005094/0.5117, allocations: 0.5017 MB / 0.9217 GB, free: 3.691 MB / 0.6856 GB Notification: Performance of NFPackage.collectConstants: time 0.0001377/0.5119, allocations: 116 kB / 0.9218 GB, free: 3.578 MB / 0.6856 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000805/0.5127, allocations: 491.6 kB / 0.9223 GB, free: 3.098 MB / 0.6856 GB Notification: Performance of NFScalarize.scalarize: time 0.0002437/0.5129, allocations: 303 kB / 0.9226 GB, free: 2.801 MB / 0.6856 GB Notification: Performance of NFVerifyModel.verify: time 0.0004289/0.5134, allocations: 0.5518 MB / 0.9231 GB, free: 2.246 MB / 0.6856 GB Notification: Performance of NFConvertDAE.convert: time 0.001699/0.5151, allocations: 1.643 MB / 0.9247 GB, free: 0.6016 MB / 0.6856 GB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.5151, allocations: 0 / 0.9247 GB, free: 0.6016 MB / 0.6856 GB Notification: Performance of FrontEnd: time 1.884e-06/0.5151, allocations: 4 kB / 0.9247 GB, free: 0.5977 MB / 0.6856 GB Notification: Performance of Transformations before backend: time 1.513e-05/0.5151, allocations: 0 / 0.9247 GB, free: 0.5977 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: 222 * Number of variables: 222 Notification: Performance of Generate backend data structure: time 0.002358/0.5175, allocations: 1.491 MB / 0.9262 GB, free: 15.05 MB / 0.7012 GB Notification: Performance of prepare preOptimizeDAE: time 3.798e-05/0.5175, allocations: 8.031 kB / 0.9262 GB, free: 15.05 MB / 0.7012 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001425/0.5177, allocations: 139.7 kB / 0.9263 GB, free: 14.9 MB / 0.7012 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001158/0.5189, allocations: 236 kB / 0.9265 GB, free: 14.67 MB / 0.7012 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00112/0.52, allocations: 0.7738 MB / 0.9273 GB, free: 13.86 MB / 0.7012 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.148e-05/0.5201, allocations: 73.92 kB / 0.9273 GB, free: 13.79 MB / 0.7012 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001079/0.5202, allocations: 84 kB / 0.9274 GB, free: 13.7 MB / 0.7012 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001629/0.5218, allocations: 0.9794 MB / 0.9284 GB, free: 12.67 MB / 0.7012 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.075e-05/0.5218, allocations: 0 / 0.9284 GB, free: 12.67 MB / 0.7012 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.152e-05/0.5219, allocations: 40 kB / 0.9284 GB, free: 12.63 MB / 0.7012 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.328e-05/0.522, allocations: 20 kB / 0.9284 GB, free: 12.61 MB / 0.7012 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00181/0.5238, allocations: 1.171 MB / 0.9296 GB, free: 11.44 MB / 0.7012 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003923/0.5277, allocations: 2.805 MB / 0.9323 GB, free: 8.547 MB / 0.7012 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001686/0.5294, allocations: 0.9446 MB / 0.9332 GB, free: 7.578 MB / 0.7012 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004997/0.53, allocations: 314.1 kB / 0.9335 GB, free: 7.273 MB / 0.7012 GB Notification: Performance of preOpt evalFunc (simulation): time 7.26e-05/0.53, allocations: 32.59 kB / 0.9336 GB, free: 7.242 MB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007962/0.5308, allocations: 0.4925 MB / 0.9341 GB, free: 6.73 MB / 0.7012 GB Notification: Performance of pre-optimization done (n=83): time 2.745e-06/0.5309, allocations: 0 / 0.9341 GB, free: 6.73 MB / 0.7012 GB Notification: Performance of matching and sorting (n=83): time 0.003032/0.5339, allocations: 1.237 MB / 0.9353 GB, free: 5.473 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.328e-05/0.534, allocations: 188.9 kB / 0.9354 GB, free: 5.246 MB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007291/0.5347, allocations: 0.6255 MB / 0.9361 GB, free: 4.617 MB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 6.784e-05/0.5348, allocations: 45.7 kB / 0.9361 GB, free: 4.566 MB / 0.7012 GB Notification: Performance of collectInitialEqns (initialization): time 0.000281/0.5351, allocations: 417 kB / 0.9365 GB, free: 4.152 MB / 0.7012 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001921/0.5353, allocations: 285.6 kB / 0.9368 GB, free: 3.871 MB / 0.7012 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002176/0.5355, allocations: 158.5 kB / 0.9369 GB, free: 3.707 MB / 0.7012 GB Notification: Performance of setup shared object (initialization): time 0.0001288/0.5357, allocations: 386.7 kB / 0.9373 GB, free: 3.32 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004652/0.5361, allocations: 257.9 kB / 0.9375 GB, free: 3.07 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005601/0.5367, allocations: 381.1 kB / 0.9379 GB, free: 2.664 MB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001026/0.5377, allocations: 0.6189 MB / 0.9385 GB, free: 2.023 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-06/0.5377, allocations: 0 / 0.9385 GB, free: 2.023 MB / 0.7012 GB Notification: Performance of matching and sorting (n=94) (initialization): time 0.001754/0.5395, allocations: 0.8334 MB / 0.9393 GB, free: 1.18 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 1.854e-05/0.5395, allocations: 8 kB / 0.9393 GB, free: 1.172 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.364e-06/0.5395, allocations: 0 / 0.9393 GB, free: 1.172 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005609/0.5401, allocations: 84.95 kB / 0.9394 GB, free: 1.086 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006362/0.5408, allocations: 159.7 kB / 0.9396 GB, free: 0.9297 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001893/0.5427, allocations: 1.634 MB / 0.9412 GB, free: 15.15 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006863/0.5434, allocations: 91.5 kB / 0.9412 GB, free: 15.06 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.894e-05/0.5434, allocations: 35.97 kB / 0.9413 GB, free: 15.02 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (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.0003935/0.5438, allocations: 269 kB / 0.9415 GB, free: 14.75 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001585/0.544, allocations: 87.44 kB / 0.9416 GB, free: 14.67 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002194/0.5462, allocations: 1.089 MB / 0.9427 GB, free: 13.56 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.018e-05/0.5462, allocations: 12 kB / 0.9427 GB, free: 13.55 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.735e-06/0.5462, allocations: 0 / 0.9427 GB, free: 13.55 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.388e-06/0.5463, allocations: 3.984 kB / 0.9427 GB, free: 13.55 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003243/0.5495, allocations: 2.095 MB / 0.9447 GB, free: 11.38 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.349e-06/0.5495, allocations: 0 / 0.9447 GB, free: 11.38 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005727/0.5501, allocations: 163.7 kB / 0.9449 GB, free: 11.22 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000412/0.5505, allocations: 68.78 kB / 0.945 GB, free: 11.15 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.189e-05/0.5506, allocations: 23.98 kB / 0.945 GB, free: 11.13 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001657/0.5522, allocations: 1.654 MB / 0.9466 GB, free: 9.328 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.035e-06/0.5523, allocations: 3.984 kB / 0.9466 GB, free: 9.324 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001815/0.5541, allocations: 1.018 MB / 0.9476 GB, free: 8.285 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003428/0.5544, allocations: 284.1 kB / 0.9479 GB, free: 7.988 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001151/0.5546, allocations: 27.94 kB / 0.9479 GB, free: 7.961 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006294/0.5552, allocations: 64.06 kB / 0.948 GB, free: 7.898 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001273/0.5553, allocations: 76.83 kB / 0.948 GB, free: 7.824 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.257e-05/0.5554, allocations: 35.97 kB / 0.9481 GB, free: 7.789 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0005008/0.5559, allocations: 463 kB / 0.9485 GB, free: 7.34 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.61e-07/0.5559, allocations: 4 kB / 0.9485 GB, free: 7.336 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0007553/0.5567, allocations: 315.2 kB / 0.9488 GB, free: 7.027 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.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext,weaDat.conTimMin.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (95): * Single equations (assignments): 89 * 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.003126/0.5598, allocations: 2.062 MB / 0.9508 GB, free: 5.117 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.001505/0.5613, allocations: 0.8233 MB / 0.9516 GB, free: 4.281 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.5613, allocations: 0 / 0.9516 GB, free: 4.281 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0008449/0.5622, allocations: 0.5279 MB / 0.9521 GB, free: 3.742 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001176/0.5634, allocations: 321.5 kB / 0.9525 GB, free: 3.461 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2943/0.8577, allocations: 6.461 MB / 0.9588 GB, free: 186.2 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005051/0.8583, allocations: 1.034 MB / 0.9598 GB, free: 185.5 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0008217/0.8591, allocations: 265.5 kB / 0.96 GB, free: 185.5 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004804/0.8596, allocations: 393.1 kB / 0.9604 GB, free: 185.2 MB / 0.7169 GB Notification: Performance of SimCode: time 9.01e-07/0.8596, allocations: 0 / 0.9604 GB, free: 185.2 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04138/0.901, allocations: 21.92 MB / 0.9818 GB, free: 170.7 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.75/12.65, allocations: 13.28 kB / 0.9818 GB, free: 170.7 MB / 0.7169 GB (rm -f BuildingSystems_BuildingSystems.BoundaryConditions.SkyTemperature.Examples.BlackBody.pipe ; mkfifo BuildingSystems_BuildingSystems.BoundaryConditions.SkyTemperature.Examples.BlackBody.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.BoundaryConditions.SkyTemperature.Examples.BlackBody.pipe >> ../files/BuildingSystems_BuildingSystems.BoundaryConditions.SkyTemperature.Examples.BlackBody.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.BoundaryConditions.SkyTemperature.Examples.BlackBody_res.csv --start-time 0 --stop-time 86400 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 34.56 BuildingSystems_BuildingSystems_BoundaryConditions_SkyTemperature_Examples_BlackBody.fmu > BuildingSystems_BuildingSystems.BoundaryConditions.SkyTemperature.Examples.BlackBody.pipe 2>&1)