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.001248/0.001248, allocations: 108 kB / 15.6 MB, free: 132 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.001117/0.001117, allocations: 195.2 kB / 16.53 MB, free: 6.391 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.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002069/0.002069, allocations: 287 kB / 290.7 MB, free: 2.004 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9183/0.9183, allocations: 169.3 MB / 0.4982 GB, free: 13.88 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001704/0.001704, allocations: 94.53 kB / 0.5953 GB, free: 28.14 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1298/0.1315, allocations: 86.99 MB / 0.6803 GB, free: 0.5859 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass): time 0.005576/0.1371, allocations: 4.369 MB / 0.6846 GB, free: 12.21 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.4158/0.5529, allocations: 150.6 MB / 0.8316 GB, free: 0.8594 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006632/0.5536, allocations: 15.59 kB / 0.8316 GB, free: 0.8555 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0004632/0.5541, allocations: 173.2 kB / 0.8318 GB, free: 0.7617 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.001275/0.5554, allocations: 0.5038 MB / 0.8323 GB, free: 0.6172 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.001589/0.557, allocations: 0.8408 MB / 0.8331 GB, free: 0.543 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0009947/0.558, allocations: 1.306 MB / 0.8344 GB, free: 356 kB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008296/0.5589, allocations: 0.7003 MB / 0.835 GB, free: 200 kB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005211/0.5594, allocations: 499.5 kB / 0.8355 GB, free: 104 kB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005121/0.5599, allocations: 0.5261 MB / 0.836 GB, free: 15.98 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0001638/0.5601, allocations: 126.3 kB / 0.8362 GB, free: 15.98 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007314/0.5608, allocations: 472.9 kB / 0.8366 GB, free: 15.96 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0002364/0.5611, allocations: 323.5 kB / 0.8369 GB, free: 15.91 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0004097/0.5615, allocations: 0.5783 MB / 0.8375 GB, free: 15.73 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.00139/0.5629, allocations: 1.649 MB / 0.8391 GB, free: 15.5 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 5.57e-06/0.5629, allocations: 4.469 kB / 0.8391 GB, free: 15.5 MB / 0.5762 GB Notification: Performance of FrontEnd: time 3.226e-06/0.5629, allocations: 3.844 kB / 0.8391 GB, free: 15.5 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.389e-05/0.5629, allocations: 3.938 kB / 0.8391 GB, free: 15.49 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: 240 * Number of variables: 240 Notification: Performance of Generate backend data structure: time 0.002436/0.5654, allocations: 1.486 MB / 0.8406 GB, free: 14.68 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.708e-05/0.5654, allocations: 9.312 kB / 0.8406 GB, free: 14.68 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001631/0.5656, allocations: 149.2 kB / 0.8407 GB, free: 14.64 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001108/0.5667, allocations: 216.8 kB / 0.8409 GB, free: 14.57 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009487/0.5677, allocations: 0.7541 MB / 0.8417 GB, free: 14.13 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.196e-05/0.5677, allocations: 71.38 kB / 0.8417 GB, free: 14.12 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001092/0.5678, allocations: 92.58 kB / 0.8418 GB, free: 14.12 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00156/0.5694, allocations: 1.006 MB / 0.8428 GB, free: 13.79 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.33e-05/0.5694, allocations: 3.938 kB / 0.8428 GB, free: 13.79 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.751e-05/0.5695, allocations: 41.66 kB / 0.8428 GB, free: 13.79 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2e-05/0.5696, allocations: 22.75 kB / 0.8429 GB, free: 13.79 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001851/0.5714, allocations: 1.177 MB / 0.844 GB, free: 13.43 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003796/0.5752, allocations: 2.626 MB / 0.8466 GB, free: 11.49 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002311/0.5776, allocations: 0.9639 MB / 0.8475 GB, free: 10.96 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005624/0.5781, allocations: 310.3 kB / 0.8478 GB, free: 10.8 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 6.903e-05/0.5782, allocations: 37.86 kB / 0.8478 GB, free: 10.79 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008809/0.5791, allocations: 0.4946 MB / 0.8483 GB, free: 10.47 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=82): time 1.994e-06/0.5791, allocations: 4 kB / 0.8483 GB, free: 10.46 MB / 0.5762 GB Notification: Performance of matching and sorting (n=82): time 0.003103/0.5822, allocations: 1.218 MB / 0.8495 GB, free: 9.809 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.181e-05/0.5823, allocations: 195.9 kB / 0.8497 GB, free: 9.582 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007055/0.583, allocations: 0.6376 MB / 0.8503 GB, free: 9.215 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 6.521e-05/0.5831, allocations: 42.48 kB / 0.8504 GB, free: 9.172 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002918/0.5834, allocations: 423.8 kB / 0.8508 GB, free: 8.805 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001922/0.5836, allocations: 270 kB / 0.851 GB, free: 8.574 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000217/0.5838, allocations: 150.8 kB / 0.8512 GB, free: 8.48 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001471/0.584, allocations: 386.2 kB / 0.8515 GB, free: 8.113 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005118/0.5845, allocations: 253.4 kB / 0.8518 GB, free: 7.992 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006182/0.5851, allocations: 364.4 kB / 0.8521 GB, free: 7.766 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001105/0.5862, allocations: 0.601 MB / 0.8527 GB, free: 7.441 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.5863, allocations: 0 / 0.8527 GB, free: 7.441 MB / 0.5762 GB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001865/0.5881, allocations: 0.8194 MB / 0.8535 GB, free: 7.016 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.084e-05/0.5882, allocations: 11.44 kB / 0.8535 GB, free: 7.012 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.641e-06/0.5882, allocations: 3.562 kB / 0.8535 GB, free: 7.012 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000584/0.5888, allocations: 83.11 kB / 0.8536 GB, free: 6.969 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006419/0.5894, allocations: 158.1 kB / 0.8538 GB, free: 6.93 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001994/0.5914, allocations: 1.63 MB / 0.8554 GB, free: 5.332 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006545/0.5921, allocations: 93.8 kB / 0.8554 GB, free: 5.273 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.896e-05/0.5922, allocations: 39.62 kB / 0.8555 GB, free: 5.254 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 (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.0003362/0.5925, allocations: 265.2 kB / 0.8557 GB, free: 5.047 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001527/0.5927, allocations: 87.11 kB / 0.8558 GB, free: 5 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002407/0.5951, allocations: 1.111 MB / 0.8569 GB, free: 4.379 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.482e-06/0.5951, allocations: 7.5 kB / 0.8569 GB, free: 4.379 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.907e-06/0.5951, allocations: 0 / 0.8569 GB, free: 4.379 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.938e-06/0.5951, allocations: 7.922 kB / 0.8569 GB, free: 4.371 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003127/0.5983, allocations: 2.015 MB / 0.8589 GB, free: 3.07 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.396e-06/0.5983, allocations: 0 / 0.8589 GB, free: 3.07 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005945/0.5989, allocations: 159.3 kB / 0.859 GB, free: 3.027 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004368/0.5993, allocations: 68.06 kB / 0.8591 GB, free: 2.992 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.307e-05/0.5994, allocations: 29.64 kB / 0.8591 GB, free: 2.973 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001732/0.6011, allocations: 1.658 MB / 0.8608 GB, free: 1.352 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.6011, allocations: 0 / 0.8608 GB, free: 1.352 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001954/0.6031, allocations: 1.019 MB / 0.8617 GB, free: 0.7773 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003198/0.6034, allocations: 278.5 kB / 0.862 GB, free: 0.5352 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001277/0.6036, allocations: 20.69 kB / 0.862 GB, free: 0.5195 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006841/0.6043, allocations: 68.61 kB / 0.8621 GB, free: 496 kB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001364/0.6044, allocations: 69.66 kB / 0.8622 GB, free: 460 kB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.757e-05/0.6045, allocations: 39.09 kB / 0.8622 GB, free: 444 kB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0004933/0.605, allocations: 471.6 kB / 0.8626 GB, free: 168 kB / 0.5762 GB Notification: Performance of sort global known variables: time 1.41e-07/0.605, allocations: 0 / 0.8626 GB, free: 168 kB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0007604/0.6058, allocations: 320.8 kB / 0.863 GB, free: 68 kB / 0.5762 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.003356/0.6091, allocations: 2.071 MB / 0.865 GB, free: 14.78 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.002202/0.6113, allocations: 1.033 MB / 0.866 GB, free: 14.31 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 3.927e-06/0.6113, allocations: 4.844 kB / 0.866 GB, free: 14.31 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0009147/0.6123, allocations: 0.534 MB / 0.8665 GB, free: 14 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001151/0.6134, allocations: 283.4 kB / 0.8668 GB, free: 13.87 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01045/0.6239, allocations: 6.755 MB / 0.8734 GB, free: 9.605 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005509/0.6245, allocations: 1.039 MB / 0.8744 GB, free: 8.754 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0008143/0.6253, allocations: 278.2 kB / 0.8747 GB, free: 8.609 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005234/0.6258, allocations: 408.3 kB / 0.875 GB, free: 8.281 MB / 0.5919 GB Notification: Performance of SimCode: time 3.81e-07/0.6258, allocations: 2.75 kB / 0.8751 GB, free: 8.281 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04514/0.671, allocations: 21.62 MB / 0.8962 GB, free: 3.273 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.96/11.63, allocations: 12.34 kB / 0.8962 GB, free: 3.262 MB / 0.6075 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)