Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.BoundaryConditions.SolarIrradiation.Examples.DiffuseIsotropic.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.Examples.DiffuseIsotropic,fileNamePrefix="BuildingSystems_BuildingSystems_BoundaryConditions_SolarIrradiation_Examples_DiffuseIsotropic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.BoundaryConditions.SolarIrradiation.Examples.DiffuseIsotropic,fileNamePrefix="BuildingSystems_BuildingSystems_BoundaryConditions_SolarIrradiation_Examples_DiffuseIsotropic",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.001176/0.001176, allocations: 108 kB / 15.61 MB, free: 128 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.001218/0.001218, allocations: 198.1 kB / 16.53 MB, free: 6.672 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.286/1.286, 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.002116/0.002116, allocations: 282.8 kB / 290.7 MB, free: 2.008 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9339/0.9339, allocations: 169.3 MB / 0.4982 GB, free: 13.91 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001738/0.001738, allocations: 101.5 kB / 0.5953 GB, free: 27.99 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1249/0.1267, allocations: 86.98 MB / 0.6803 GB, free: 0.5859 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.BoundaryConditions.SolarIrradiation.Examples.DiffuseIsotropic): time 0.006154/0.1329, allocations: 4.733 MB / 0.6849 GB, free: 11.84 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.3735/0.5064, allocations: 150.7 MB / 0.8321 GB, free: 1.16 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006694/0.5071, allocations: 19.69 kB / 0.8321 GB, free: 1.152 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0005427/0.5077, allocations: 194.5 kB / 0.8323 GB, free: 1.047 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.00145/0.5091, allocations: 0.5232 MB / 0.8328 GB, free: 0.8906 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.001652/0.5108, allocations: 0.8533 MB / 0.8336 GB, free: 0.8203 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.001269/0.5121, allocations: 1.447 MB / 0.835 GB, free: 0.5859 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001024/0.5131, allocations: 0.9195 MB / 0.8359 GB, free: 384 kB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006678/0.5138, allocations: 0.581 MB / 0.8365 GB, free: 260 kB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006776/0.5145, allocations: 0.6284 MB / 0.8371 GB, free: 104 kB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0002772/0.5148, allocations: 158.1 kB / 0.8373 GB, free: 100 kB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008316/0.5156, allocations: 496.4 kB / 0.8377 GB, free: 92 kB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0002916/0.5159, allocations: 374.2 kB / 0.8381 GB, free: 32 kB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0006706/0.5166, allocations: 0.6983 MB / 0.8388 GB, free: 15.8 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.001752/0.5183, allocations: 1.922 MB / 0.8407 GB, free: 15.52 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.096e-06/0.5184, allocations: 0 / 0.8407 GB, free: 15.52 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.102e-06/0.5184, allocations: 0 / 0.8407 GB, free: 15.52 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 5.173e-05/0.5184, allocations: 0 / 0.8407 GB, free: 15.52 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: 305 * Number of variables: 305 Notification: Performance of Generate backend data structure: time 0.002956/0.5214, allocations: 1.687 MB / 0.8423 GB, free: 14.46 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.412e-05/0.5214, allocations: 12.66 kB / 0.8423 GB, free: 14.46 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001911/0.5216, allocations: 182.3 kB / 0.8425 GB, free: 14.36 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009439/0.5226, allocations: 219.9 kB / 0.8427 GB, free: 14.25 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001083/0.5237, allocations: 0.8494 MB / 0.8435 GB, free: 13.57 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.9e-05/0.5238, allocations: 91.11 kB / 0.8436 GB, free: 13.53 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001434/0.5239, allocations: 121.3 kB / 0.8437 GB, free: 13.48 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001782/0.5257, allocations: 1.194 MB / 0.8449 GB, free: 12.72 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.139e-05/0.5257, allocations: 2.781 kB / 0.8449 GB, free: 12.72 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001038/0.5258, allocations: 50.69 kB / 0.8449 GB, free: 12.68 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.723e-05/0.5259, allocations: 29.28 kB / 0.845 GB, free: 12.68 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001919/0.5278, allocations: 1.285 MB / 0.8462 GB, free: 12.07 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004231/0.532, allocations: 3.163 MB / 0.8493 GB, free: 9.727 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001453/0.5335, allocations: 0.8668 MB / 0.8502 GB, free: 9.293 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005391/0.534, allocations: 321.5 kB / 0.8505 GB, free: 9.133 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 7.09e-05/0.5341, allocations: 35.27 kB / 0.8505 GB, free: 9.121 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008588/0.535, allocations: 0.5191 MB / 0.851 GB, free: 8.789 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=87): time 2.053e-06/0.535, allocations: 2.688 kB / 0.851 GB, free: 8.789 MB / 0.5762 GB Notification: Performance of matching and sorting (n=87): time 0.003129/0.5381, allocations: 1.275 MB / 0.8523 GB, free: 8.098 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.02e-05/0.5382, allocations: 193 kB / 0.8524 GB, free: 7.875 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007861/0.539, allocations: 0.7309 MB / 0.8532 GB, free: 7.461 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 6.356e-05/0.5391, allocations: 46.8 kB / 0.8532 GB, free: 7.414 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003423/0.5395, allocations: 0.5159 MB / 0.8537 GB, free: 6.957 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001976/0.5397, allocations: 287.1 kB / 0.854 GB, free: 6.715 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002304/0.5399, allocations: 160.5 kB / 0.8541 GB, free: 6.617 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001093/0.54, allocations: 341.2 kB / 0.8545 GB, free: 6.285 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005123/0.5405, allocations: 270.6 kB / 0.8547 GB, free: 6.152 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000607/0.5411, allocations: 384.1 kB / 0.8551 GB, free: 5.914 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001094/0.5422, allocations: 0.6261 MB / 0.8557 GB, free: 5.582 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.5423, allocations: 0 / 0.8557 GB, free: 5.582 MB / 0.5762 GB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001859/0.5441, allocations: 0.8716 MB / 0.8565 GB, free: 5.133 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.263e-05/0.5442, allocations: 8.781 kB / 0.8566 GB, free: 5.129 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.381e-06/0.5442, allocations: 0 / 0.8566 GB, free: 5.129 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005712/0.5447, allocations: 85.28 kB / 0.8566 GB, free: 5.086 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006396/0.5454, allocations: 167.5 kB / 0.8568 GB, free: 5.043 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001923/0.5473, allocations: 1.627 MB / 0.8584 GB, free: 3.445 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006281/0.548, allocations: 95.7 kB / 0.8585 GB, free: 3.383 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.935e-05/0.548, allocations: 34.16 kB / 0.8585 GB, free: 3.371 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 (96): * Single equations (assignments): 95 * 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.0003709/0.5484, allocations: 300.5 kB / 0.8588 GB, free: 3.141 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001629/0.5486, allocations: 92.28 kB / 0.8589 GB, free: 3.094 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002366/0.551, allocations: 1.127 MB / 0.86 GB, free: 2.465 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.649e-06/0.551, allocations: 18.05 kB / 0.86 GB, free: 2.457 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.475e-06/0.551, allocations: 0 / 0.86 GB, free: 2.457 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.066e-05/0.551, allocations: 3.984 kB / 0.86 GB, free: 2.453 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001036/0.552, allocations: 1.051 MB / 0.861 GB, free: 1.703 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/0.5521, allocations: 0 / 0.861 GB, free: 1.703 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005927/0.5526, allocations: 156.1 kB / 0.8612 GB, free: 1.668 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004327/0.5531, allocations: 71.98 kB / 0.8612 GB, free: 1.629 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.639e-05/0.5532, allocations: 33.56 kB / 0.8613 GB, free: 1.605 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001776/0.5549, allocations: 1.649 MB / 0.8629 GB, free: 0 / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.555, allocations: 3.938 kB / 0.8629 GB, free: 0 / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001927/0.5569, allocations: 0.9909 MB / 0.8639 GB, free: 15.47 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003281/0.5572, allocations: 282.4 kB / 0.8641 GB, free: 15.22 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001314/0.5574, allocations: 31.38 kB / 0.8642 GB, free: 15.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006463/0.558, allocations: 68.39 kB / 0.8642 GB, free: 15.16 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001379/0.5582, allocations: 80.11 kB / 0.8643 GB, free: 15.12 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.367e-05/0.5582, allocations: 30.2 kB / 0.8643 GB, free: 15.11 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0005604/0.5588, allocations: 0.522 MB / 0.8648 GB, free: 14.82 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.4e-07/0.5588, allocations: 0 / 0.8648 GB, free: 14.82 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0007136/0.5595, allocations: 359 kB / 0.8652 GB, free: 14.7 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.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 (98): * Single equations (assignments): 92 * 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.00329/0.5628, allocations: 2.033 MB / 0.8672 GB, free: 13.48 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.00222/0.5651, allocations: 1.079 MB / 0.8682 GB, free: 12.98 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.5651, allocations: 0 / 0.8682 GB, free: 12.98 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0009047/0.566, allocations: 0.5339 MB / 0.8687 GB, free: 12.69 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001133/0.5671, allocations: 307.7 kB / 0.869 GB, free: 12.53 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01107/0.5782, allocations: 7.478 MB / 0.8763 GB, free: 7.383 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006293/0.5789, allocations: 1.11 MB / 0.8774 GB, free: 6.242 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0008081/0.5797, allocations: 275.3 kB / 0.8777 GB, free: 5.969 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006164/0.5803, allocations: 483.2 kB / 0.8781 GB, free: 5.496 MB / 0.5919 GB Notification: Performance of SimCode: time 2.71e-07/0.5803, allocations: 0 / 0.8781 GB, free: 5.496 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04677/0.6271, allocations: 23.07 MB / 0.9007 GB, free: 14.82 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.82/11.44, allocations: 8.641 kB / 0.9007 GB, free: 14.81 MB / 0.6231 GB (rm -f BuildingSystems_BuildingSystems.BoundaryConditions.SolarIrradiation.Examples.DiffuseIsotropic.pipe ; mkfifo BuildingSystems_BuildingSystems.BoundaryConditions.SolarIrradiation.Examples.DiffuseIsotropic.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.BoundaryConditions.SolarIrradiation.Examples.DiffuseIsotropic.pipe >> ../files/BuildingSystems_BuildingSystems.BoundaryConditions.SolarIrradiation.Examples.DiffuseIsotropic.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.BoundaryConditions.SolarIrradiation.Examples.DiffuseIsotropic_res.csv --start-time 1.82304e+07 --stop-time 1.83168e+07 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 34.56 BuildingSystems_BuildingSystems_BoundaryConditions_SolarIrradiation_Examples_DiffuseIsotropic.fmu > BuildingSystems_BuildingSystems.BoundaryConditions.SolarIrradiation.Examples.DiffuseIsotropic.pipe 2>&1)