Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass.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.RelativeAirMass,fileNamePrefix="BuildingSystems_BuildingSystems_BoundaryConditions_SolarIrradiation_BaseClasses_Examples_RelativeAirMass",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass,fileNamePrefix="BuildingSystems_BuildingSystems_BoundaryConditions_SolarIrradiation_BaseClasses_Examples_RelativeAirMass",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.004842/0.004842, allocations: 99.45 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.001223/0.001224, allocations: 194.3 kB / 16.68 MB, free: 5.969 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.227/1.227, 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.002036/0.002036, allocations: 298.7 kB / 290.8 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8843/0.8843, allocations: 169.2 MB / 0.4983 GB, free: 4.434 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001661/0.001661, allocations: 87.86 kB / 0.681 GB, free: 7.5 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3429/0.3446, allocations: 86.97 MB / 0.7659 GB, free: 3.883 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass): time 0.005308/0.3499, allocations: 4.381 MB / 0.7702 GB, free: 15.48 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.1385/0.4884, allocations: 150.6 MB / 0.9172 GB, free: 8.312 MB / 0.6856 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006069/0.4891, allocations: 19.88 kB / 0.9172 GB, free: 8.293 MB / 0.6856 GB Notification: Performance of NFTyping.typeComponents: time 0.0005041/0.4896, allocations: 178.4 kB / 0.9174 GB, free: 8.117 MB / 0.6856 GB Notification: Performance of NFTyping.typeBindings: time 0.0014/0.491, allocations: 0.5059 MB / 0.9179 GB, free: 7.613 MB / 0.6856 GB Notification: Performance of NFTyping.typeClassSections: time 0.001736/0.4927, allocations: 0.842 MB / 0.9187 GB, free: 6.777 MB / 0.6856 GB Notification: Performance of NFFlatten.flatten: time 0.001248/0.494, allocations: 1.324 MB / 0.92 GB, free: 5.445 MB / 0.6856 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008471/0.4949, allocations: 0.6946 MB / 0.9207 GB, free: 4.73 MB / 0.6856 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005895/0.4955, allocations: 0.4944 MB / 0.9212 GB, free: 4.234 MB / 0.6856 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005439/0.496, allocations: 0.5289 MB / 0.9217 GB, free: 3.703 MB / 0.6856 GB Notification: Performance of NFPackage.collectConstants: time 0.0001494/0.4962, allocations: 128 kB / 0.9218 GB, free: 3.578 MB / 0.6856 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000758/0.4969, allocations: 495.6 kB / 0.9223 GB, free: 3.094 MB / 0.6856 GB Notification: Performance of NFScalarize.scalarize: time 0.0002665/0.4972, allocations: 322.9 kB / 0.9226 GB, free: 2.777 MB / 0.6856 GB Notification: Performance of NFVerifyModel.verify: time 0.0004637/0.4977, allocations: 0.5829 MB / 0.9232 GB, free: 2.191 MB / 0.6856 GB Notification: Performance of NFConvertDAE.convert: time 0.001699/0.4994, allocations: 1.706 MB / 0.9248 GB, free: 496 kB / 0.6856 GB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.4994, allocations: 0 / 0.9248 GB, free: 496 kB / 0.6856 GB Notification: Performance of FrontEnd: time 1.412e-06/0.4994, allocations: 0 / 0.9248 GB, free: 496 kB / 0.6856 GB Notification: Performance of Transformations before backend: time 1.782e-05/0.4994, allocations: 0 / 0.9248 GB, free: 496 kB / 0.6856 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 240 * Number of variables: 240 Notification: Performance of Generate backend data structure: time 0.002433/0.5019, allocations: 1.524 MB / 0.9263 GB, free: 14.91 MB / 0.7012 GB Notification: Performance of prepare preOptimizeDAE: time 3.362e-05/0.5019, allocations: 8.031 kB / 0.9263 GB, free: 14.9 MB / 0.7012 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001543/0.5021, allocations: 148.1 kB / 0.9265 GB, free: 14.75 MB / 0.7012 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001066/0.5032, allocations: 220 kB / 0.9267 GB, free: 14.54 MB / 0.7012 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001165/0.5043, allocations: 0.7911 MB / 0.9274 GB, free: 13.7 MB / 0.7012 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.944e-05/0.5044, allocations: 74 kB / 0.9275 GB, free: 13.63 MB / 0.7012 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001244/0.5045, allocations: 88 kB / 0.9276 GB, free: 13.55 MB / 0.7012 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001623/0.5062, allocations: 1.007 MB / 0.9286 GB, free: 12.5 MB / 0.7012 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.209e-05/0.5062, allocations: 4 kB / 0.9286 GB, free: 12.5 MB / 0.7012 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.715e-05/0.5063, allocations: 40 kB / 0.9286 GB, free: 12.46 MB / 0.7012 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.874e-05/0.5063, allocations: 24 kB / 0.9286 GB, free: 12.43 MB / 0.7012 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001852/0.5082, allocations: 1.175 MB / 0.9298 GB, free: 11.25 MB / 0.7012 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003876/0.5121, allocations: 2.597 MB / 0.9323 GB, free: 8.59 MB / 0.7012 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002269/0.5144, allocations: 0.9654 MB / 0.9333 GB, free: 7.602 MB / 0.7012 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005645/0.5149, allocations: 310.7 kB / 0.9336 GB, free: 7.289 MB / 0.7012 GB Notification: Performance of preOpt evalFunc (simulation): time 6.672e-05/0.515, allocations: 32.61 kB / 0.9336 GB, free: 7.258 MB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008639/0.5159, allocations: 0.5007 MB / 0.9341 GB, free: 6.738 MB / 0.7012 GB Notification: Performance of pre-optimization done (n=82): time 2.414e-06/0.5159, allocations: 0 / 0.9341 GB, free: 6.738 MB / 0.7012 GB Notification: Performance of matching and sorting (n=82): time 0.003047/0.519, allocations: 1.222 MB / 0.9353 GB, free: 5.492 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.299e-05/0.5191, allocations: 196.5 kB / 0.9355 GB, free: 5.258 MB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007361/0.5198, allocations: 0.641 MB / 0.9361 GB, free: 4.613 MB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 8.76e-05/0.5199, allocations: 41.7 kB / 0.9361 GB, free: 4.566 MB / 0.7012 GB Notification: Performance of collectInitialEqns (initialization): time 0.000308/0.5202, allocations: 444.9 kB / 0.9366 GB, free: 4.125 MB / 0.7012 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002146/0.5205, allocations: 269.7 kB / 0.9368 GB, free: 3.859 MB / 0.7012 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002203/0.5207, allocations: 146.6 kB / 0.937 GB, free: 3.707 MB / 0.7012 GB Notification: Performance of setup shared object (initialization): time 0.0001501/0.5208, allocations: 394.7 kB / 0.9373 GB, free: 3.312 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005184/0.5214, allocations: 261.9 kB / 0.9376 GB, free: 3.059 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006078/0.522, allocations: 358.5 kB / 0.9379 GB, free: 2.688 MB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001097/0.5231, allocations: 0.6033 MB / 0.9385 GB, free: 2.07 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.437e-06/0.5231, allocations: 0 / 0.9385 GB, free: 2.07 MB / 0.7012 GB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001848/0.525, allocations: 0.8257 MB / 0.9393 GB, free: 1.234 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 1.71e-05/0.525, allocations: 8 kB / 0.9393 GB, free: 1.227 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.961e-06/0.525, allocations: 3.938 kB / 0.9393 GB, free: 1.223 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005497/0.5256, allocations: 80.81 kB / 0.9394 GB, free: 1.141 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006336/0.5262, allocations: 155.8 kB / 0.9396 GB, free: 0.9883 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001911/0.5281, allocations: 1.634 MB / 0.9412 GB, free: 15.21 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006275/0.5288, allocations: 95.45 kB / 0.9412 GB, free: 15.11 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.777e-05/0.5288, allocations: 31.98 kB / 0.9413 GB, free: 15.08 MB / 0.7169 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 (88): * Single equations (assignments): 87 * 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.0003663/0.5292, allocations: 273.1 kB / 0.9415 GB, free: 14.81 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001474/0.5294, allocations: 91.38 kB / 0.9416 GB, free: 14.72 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002313/0.5317, allocations: 1.097 MB / 0.9427 GB, free: 13.6 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.768e-06/0.5317, allocations: 12 kB / 0.9427 GB, free: 13.59 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.435e-06/0.5317, allocations: 0 / 0.9427 GB, free: 13.59 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.227e-06/0.5317, allocations: 3.984 kB / 0.9427 GB, free: 13.59 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003219/0.535, allocations: 2.022 MB / 0.9447 GB, free: 11.51 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.978e-06/0.535, allocations: 4 kB / 0.9447 GB, free: 11.5 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005998/0.5356, allocations: 143.8 kB / 0.9448 GB, free: 11.36 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004231/0.536, allocations: 76.78 kB / 0.9449 GB, free: 11.29 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.701e-05/0.5361, allocations: 23.98 kB / 0.9449 GB, free: 11.26 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001726/0.5378, allocations: 1.654 MB / 0.9465 GB, free: 9.465 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.945e-06/0.5378, allocations: 7.875 kB / 0.9465 GB, free: 9.457 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001966/0.5398, allocations: 1.014 MB / 0.9475 GB, free: 8.422 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003914/0.5402, allocations: 284.1 kB / 0.9478 GB, free: 8.125 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001215/0.5403, allocations: 20 kB / 0.9478 GB, free: 8.105 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006601/0.541, allocations: 70.56 kB / 0.9479 GB, free: 8.039 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001249/0.5411, allocations: 80.81 kB / 0.948 GB, free: 7.961 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.198e-05/0.5412, allocations: 36.05 kB / 0.948 GB, free: 7.926 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0005309/0.5418, allocations: 475 kB / 0.9485 GB, free: 7.465 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5418, allocations: 0 / 0.9485 GB, free: 7.465 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0007645/0.5425, allocations: 327 kB / 0.9488 GB, free: 7.145 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 (94): * Single equations (assignments): 88 * 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.003358/0.5459, allocations: 2.076 MB / 0.9508 GB, free: 5.227 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.001629/0.5475, allocations: 0.8235 MB / 0.9516 GB, free: 4.391 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.5476, allocations: 0 / 0.9516 GB, free: 4.391 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0009409/0.5485, allocations: 0.5276 MB / 0.9521 GB, free: 3.852 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001172/0.5497, allocations: 283.2 kB / 0.9524 GB, free: 3.598 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2781/0.8278, allocations: 6.545 MB / 0.9588 GB, free: 186.2 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004727/0.8283, allocations: 1.048 MB / 0.9598 GB, free: 185.5 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0008023/0.8291, allocations: 277.5 kB / 0.9601 GB, free: 185.5 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004837/0.8296, allocations: 403.2 kB / 0.9605 GB, free: 185.2 MB / 0.7169 GB Notification: Performance of SimCode: time 5.71e-07/0.8296, allocations: 0 / 0.9605 GB, free: 185.2 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06103/0.8907, allocations: 21.86 MB / 0.9818 GB, free: 170.8 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.75/12.64, allocations: 14.95 kB / 0.9818 GB, free: 170.8 MB / 0.7169 GB (rm -f BuildingSystems_BuildingSystems.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass.pipe ; mkfifo BuildingSystems_BuildingSystems.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass.pipe >> ../files/BuildingSystems_BuildingSystems.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass_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_BoundaryConditions_SolarIrradiation_BaseClasses_Examples_RelativeAirMass.fmu > BuildingSystems_BuildingSystems.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass.pipe 2>&1)