Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyBrightness.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.SolarIrradiation.BaseClasses.Examples.SkyBrightness,fileNamePrefix="BuildingSystems_BuildingSystems_BoundaryConditions_SolarIrradiation_BaseClasses_Examples_SkyBrightness",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyBrightness,fileNamePrefix="BuildingSystems_BuildingSystems_BoundaryConditions_SolarIrradiation_BaseClasses_Examples_SkyBrightness",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.001255/0.001255, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00215/0.00215, allocations: 195.5 kB / 16.53 MB, free: 6.664 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.289/1.289, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002083/0.002083, allocations: 279.1 kB / 290.7 MB, free: 2.016 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9067/0.9067, allocations: 169.3 MB / 0.4982 GB, free: 13.96 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00168/0.00168, allocations: 101.4 kB / 0.5953 GB, free: 27.97 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1337/0.1354, allocations: 86.98 MB / 0.6803 GB, free: 0.6133 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyBrightness): time 0.006082/0.1415, allocations: 4.413 MB / 0.6846 GB, free: 12.19 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.4038/0.5453, allocations: 150.6 MB / 0.8316 GB, free: 1.227 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007234/0.5461, allocations: 15.91 kB / 0.8317 GB, free: 1.223 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.000538/0.5466, allocations: 177.2 kB / 0.8318 GB, free: 1.129 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.001515/0.5482, allocations: 0.5039 MB / 0.8323 GB, free: 0.9883 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.001638/0.5498, allocations: 0.8382 MB / 0.8331 GB, free: 0.918 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.001237/0.5511, allocations: 1.331 MB / 0.8344 GB, free: 0.7109 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007995/0.5519, allocations: 0.7126 MB / 0.8351 GB, free: 0.5625 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005414/0.5524, allocations: 0.4999 MB / 0.8356 GB, free: 476 kB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004604/0.5529, allocations: 0.5354 MB / 0.8362 GB, free: 348 kB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0001694/0.5531, allocations: 128.1 kB / 0.8363 GB, free: 348 kB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007664/0.5538, allocations: 474 kB / 0.8367 GB, free: 332 kB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0002175/0.5541, allocations: 320.6 kB / 0.837 GB, free: 284 kB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0003822/0.5545, allocations: 0.591 MB / 0.8376 GB, free: 96 kB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.001462/0.5559, allocations: 1.668 MB / 0.8392 GB, free: 15.86 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 6.382e-06/0.556, allocations: 0 / 0.8392 GB, free: 15.86 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.303e-06/0.556, allocations: 3.938 kB / 0.8392 GB, free: 15.85 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.632e-05/0.556, allocations: 0 / 0.8392 GB, free: 15.85 MB / 0.5762 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 245 * Number of variables: 245 Notification: Performance of Generate backend data structure: time 0.002458/0.5584, allocations: 1.492 MB / 0.8407 GB, free: 15.04 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.697e-05/0.5585, allocations: 9.625 kB / 0.8407 GB, free: 15.04 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001497/0.5586, allocations: 153.8 kB / 0.8409 GB, free: 15 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001685/0.5603, allocations: 305.9 kB / 0.8411 GB, free: 14.91 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009585/0.5613, allocations: 0.7615 MB / 0.8419 GB, free: 14.45 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.609e-05/0.5614, allocations: 73.53 kB / 0.842 GB, free: 14.44 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001206/0.5615, allocations: 97.14 kB / 0.8421 GB, free: 14.43 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001817/0.5633, allocations: 1.07 MB / 0.8431 GB, free: 13.98 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.946e-05/0.5634, allocations: 0 / 0.8431 GB, free: 13.98 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.578e-05/0.5635, allocations: 42.62 kB / 0.8431 GB, free: 13.95 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.155e-05/0.5635, allocations: 26.78 kB / 0.8432 GB, free: 13.95 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002224/0.5657, allocations: 1.273 MB / 0.8444 GB, free: 13.35 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004107/0.5698, allocations: 2.729 MB / 0.8471 GB, free: 11.34 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002563/0.5724, allocations: 1.021 MB / 0.8481 GB, free: 10.79 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007612/0.5732, allocations: 365.4 kB / 0.8484 GB, free: 10.61 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 6.997e-05/0.5733, allocations: 32.67 kB / 0.8484 GB, free: 10.6 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001087/0.5744, allocations: 0.5511 MB / 0.849 GB, free: 10.26 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=84): time 2.324e-06/0.5744, allocations: 0 / 0.849 GB, free: 10.26 MB / 0.5762 GB Notification: Performance of matching and sorting (n=84): time 0.003797/0.5782, allocations: 1.382 MB / 0.8503 GB, free: 9.531 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.397e-05/0.5783, allocations: 191 kB / 0.8505 GB, free: 9.309 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007378/0.579, allocations: 0.6441 MB / 0.8511 GB, free: 8.934 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 7.059e-05/0.5791, allocations: 43.27 kB / 0.8512 GB, free: 8.891 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003088/0.5794, allocations: 428.1 kB / 0.8516 GB, free: 8.516 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001997/0.5796, allocations: 274.7 kB / 0.8519 GB, free: 8.285 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002239/0.5799, allocations: 153.5 kB / 0.852 GB, free: 8.191 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001551/0.58, allocations: 385.4 kB / 0.8524 GB, free: 7.824 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007187/0.5808, allocations: 302.2 kB / 0.8527 GB, free: 7.684 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008071/0.5816, allocations: 419.1 kB / 0.8531 GB, free: 7.43 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001509/0.5831, allocations: 0.685 MB / 0.8537 GB, free: 7.078 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.5831, allocations: 4 kB / 0.8537 GB, free: 7.074 MB / 0.5762 GB Notification: Performance of matching and sorting (n=92) (initialization): time 0.002274/0.5854, allocations: 0.9093 MB / 0.8546 GB, free: 6.617 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.4e-05/0.5854, allocations: 4.688 kB / 0.8546 GB, free: 6.617 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.761e-06/0.5854, allocations: 2.594 kB / 0.8546 GB, free: 6.617 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005861/0.586, allocations: 83.62 kB / 0.8547 GB, free: 6.574 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007656/0.5868, allocations: 182.4 kB / 0.8549 GB, free: 6.523 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001926/0.5887, allocations: 1.633 MB / 0.8565 GB, free: 4.918 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007729/0.5895, allocations: 102.8 kB / 0.8566 GB, free: 4.859 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.895e-05/0.5896, allocations: 37.06 kB / 0.8566 GB, free: 4.844 MB / 0.5762 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 (90): * Single equations (assignments): 89 * 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.0003689/0.59, allocations: 271.5 kB / 0.8569 GB, free: 4.633 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001572/0.5901, allocations: 83.97 kB / 0.8569 GB, free: 4.59 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002829/0.593, allocations: 1.213 MB / 0.8581 GB, free: 3.93 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.847e-06/0.593, allocations: 9.719 kB / 0.8581 GB, free: 3.93 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.525e-06/0.593, allocations: 3.938 kB / 0.8581 GB, free: 3.926 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.132e-05/0.593, allocations: 7.969 kB / 0.8582 GB, free: 3.918 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00372/0.5967, allocations: 2.152 MB / 0.8603 GB, free: 2.547 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.657e-06/0.5967, allocations: 6 kB / 0.8603 GB, free: 2.543 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007379/0.5975, allocations: 174.7 kB / 0.8604 GB, free: 2.5 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004371/0.5979, allocations: 74.84 kB / 0.8605 GB, free: 2.461 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.848e-05/0.598, allocations: 23.05 kB / 0.8605 GB, free: 2.445 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001774/0.5998, allocations: 1.662 MB / 0.8621 GB, free: 0.8242 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.5998, allocations: 0 / 0.8621 GB, free: 0.8242 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002396/0.6022, allocations: 1.118 MB / 0.8632 GB, free: 220 kB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003534/0.6026, allocations: 283.5 kB / 0.8635 GB, free: 15.96 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001412/0.6027, allocations: 23.25 kB / 0.8635 GB, free: 15.95 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008106/0.6035, allocations: 82.88 kB / 0.8636 GB, free: 15.91 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001386/0.6037, allocations: 75.95 kB / 0.8637 GB, free: 15.87 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.016e-05/0.6038, allocations: 39.03 kB / 0.8637 GB, free: 15.86 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0005087/0.6043, allocations: 467.9 kB / 0.8642 GB, free: 15.59 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.4e-07/0.6043, allocations: 0 / 0.8642 GB, free: 15.59 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0007992/0.6051, allocations: 321.9 kB / 0.8645 GB, free: 15.5 MB / 0.5919 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 (97): * Single equations (assignments): 91 * 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.003847/0.6089, allocations: 2.18 MB / 0.8666 GB, free: 14.17 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.002691/0.6116, allocations: 1.131 MB / 0.8677 GB, free: 13.66 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/0.6117, allocations: 5.047 kB / 0.8677 GB, free: 13.66 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.001134/0.6128, allocations: 0.5807 MB / 0.8683 GB, free: 13.34 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001179/0.614, allocations: 287.2 kB / 0.8686 GB, free: 13.2 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01212/0.6261, allocations: 7.095 MB / 0.8755 GB, free: 8.203 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005785/0.6267, allocations: 1.051 MB / 0.8765 GB, free: 7.117 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0009372/0.6277, allocations: 274.8 kB / 0.8768 GB, free: 6.844 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005708/0.6282, allocations: 423.2 kB / 0.8772 GB, free: 6.43 MB / 0.5919 GB Notification: Performance of SimCode: time 2.7e-07/0.6283, allocations: 0 / 0.8772 GB, free: 6.43 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04637/0.6746, allocations: 22.01 MB / 0.8987 GB, free: 0.8359 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.79/11.46, allocations: 16.86 kB / 0.8987 GB, free: 0.8242 MB / 0.6075 GB (rm -f BuildingSystems_BuildingSystems.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyBrightness.pipe ; mkfifo BuildingSystems_BuildingSystems.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyBrightness.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyBrightness.pipe >> ../files/BuildingSystems_BuildingSystems.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyBrightness.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyBrightness_res.csv --start-time 0 --stop-time 8.64e+06 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 3456 BuildingSystems_BuildingSystems_BoundaryConditions_SolarIrradiation_BaseClasses_Examples_SkyBrightness.fmu > BuildingSystems_BuildingSystems.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyBrightness.pipe 2>&1)