Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.BoundaryConditions.SolarGeometry.BaseClasses.Examples.ZenithAngle.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.SolarGeometry.BaseClasses.Examples.ZenithAngle,fileNamePrefix="BuildingSystems_BuildingSystems_BoundaryConditions_SolarGeometry_BaseClasses_Examples_ZenithAngle",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.BoundaryConditions.SolarGeometry.BaseClasses.Examples.ZenithAngle,fileNamePrefix="BuildingSystems_BuildingSystems_BoundaryConditions_SolarGeometry_BaseClasses_Examples_ZenithAngle",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.001036/0.001036, allocations: 108 kB / 15.6 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.001001/0.001001, allocations: 197.2 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.278/1.278, 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.00212/0.00212, allocations: 277 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.9422/0.9422, allocations: 169.3 MB / 0.4982 GB, free: 13.92 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001774/0.001774, allocations: 104.1 kB / 0.5953 GB, free: 27.96 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1252/0.127, allocations: 86.98 MB / 0.6803 GB, free: 0.5703 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.BoundaryConditions.SolarGeometry.BaseClasses.Examples.ZenithAngle): time 0.005452/0.1324, allocations: 4.413 MB / 0.6846 GB, free: 12.14 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.3832/0.5156, allocations: 150.6 MB / 0.8316 GB, free: 1.195 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005962/0.5163, allocations: 15.31 kB / 0.8316 GB, free: 1.191 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0004357/0.5167, allocations: 179.2 kB / 0.8318 GB, free: 1.094 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.001242/0.518, allocations: 0.5149 MB / 0.8323 GB, free: 0.9492 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.001481/0.5195, allocations: 0.836 MB / 0.8331 GB, free: 0.8789 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0009022/0.5204, allocations: 1.338 MB / 0.8344 GB, free: 0.668 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006865/0.5211, allocations: 0.6221 MB / 0.8351 GB, free: 0.5352 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000434/0.5215, allocations: 494.9 kB / 0.8355 GB, free: 452 kB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004395/0.522, allocations: 0.5065 MB / 0.836 GB, free: 336 kB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0001627/0.5221, allocations: 119.8 kB / 0.8361 GB, free: 336 kB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000673/0.5228, allocations: 459.3 kB / 0.8366 GB, free: 324 kB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0002153/0.5231, allocations: 310.5 kB / 0.8369 GB, free: 272 kB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0003632/0.5234, allocations: 0.5576 MB / 0.8374 GB, free: 92 kB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.001328/0.5248, allocations: 1.593 MB / 0.839 GB, free: 15.86 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.5248, allocations: 3.938 kB / 0.839 GB, free: 15.86 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.202e-06/0.5248, allocations: 1.219 kB / 0.839 GB, free: 15.86 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.327e-05/0.5248, allocations: 4 kB / 0.839 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: 217 * Number of variables: 217 Notification: Performance of Generate backend data structure: time 0.002385/0.5272, allocations: 1.451 MB / 0.8404 GB, free: 15.05 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.341e-05/0.5272, allocations: 13.56 kB / 0.8404 GB, free: 15.05 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001441/0.5274, allocations: 137.6 kB / 0.8405 GB, free: 15.01 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008941/0.5283, allocations: 187.9 kB / 0.8407 GB, free: 14.95 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009143/0.5292, allocations: 0.7582 MB / 0.8415 GB, free: 14.51 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.507e-05/0.5293, allocations: 60.03 kB / 0.8415 GB, free: 14.51 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001025/0.5294, allocations: 86.72 kB / 0.8416 GB, free: 14.51 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001438/0.5308, allocations: 0.9464 MB / 0.8425 GB, free: 14.18 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.832e-05/0.5308, allocations: 0 / 0.8425 GB, free: 14.18 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.166e-05/0.5309, allocations: 36.97 kB / 0.8426 GB, free: 14.18 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.657e-05/0.531, allocations: 19.88 kB / 0.8426 GB, free: 14.18 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001713/0.5327, allocations: 1.134 MB / 0.8437 GB, free: 13.7 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003546/0.5362, allocations: 2.545 MB / 0.8462 GB, free: 11.77 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001493/0.5377, allocations: 0.8994 MB / 0.847 GB, free: 11.27 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000533/0.5383, allocations: 321.2 kB / 0.8474 GB, free: 11.11 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 7.042e-05/0.5384, allocations: 29.47 kB / 0.8474 GB, free: 11.1 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008619/0.5392, allocations: 0.5121 MB / 0.8479 GB, free: 10.77 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=84): time 2.044e-06/0.5392, allocations: 0 / 0.8479 GB, free: 10.77 MB / 0.5762 GB Notification: Performance of matching and sorting (n=84): time 0.003068/0.5423, allocations: 1.246 MB / 0.8491 GB, free: 10.1 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.85e-05/0.5424, allocations: 194.7 kB / 0.8493 GB, free: 9.875 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006793/0.5431, allocations: 0.6313 MB / 0.8499 GB, free: 9.516 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 6.747e-05/0.5432, allocations: 50.41 kB / 0.8499 GB, free: 9.465 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002673/0.5435, allocations: 398.5 kB / 0.8503 GB, free: 9.117 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001981/0.5437, allocations: 262.8 kB / 0.8506 GB, free: 8.895 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002273/0.5439, allocations: 156 kB / 0.8507 GB, free: 8.801 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001497/0.5441, allocations: 392.5 kB / 0.8511 GB, free: 8.426 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004993/0.5446, allocations: 257.9 kB / 0.8513 GB, free: 8.301 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005962/0.5452, allocations: 369 kB / 0.8517 GB, free: 8.066 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00106/0.5462, allocations: 0.6086 MB / 0.8523 GB, free: 7.738 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.5463, allocations: 0 / 0.8523 GB, free: 7.738 MB / 0.5762 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.00184/0.5481, allocations: 0.8233 MB / 0.8531 GB, free: 7.312 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.252e-05/0.5481, allocations: 5.75 kB / 0.8531 GB, free: 7.312 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.362e-06/0.5481, allocations: 2.188 kB / 0.8531 GB, free: 7.312 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005896/0.5487, allocations: 90.02 kB / 0.8532 GB, free: 7.266 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006345/0.5494, allocations: 158.2 kB / 0.8533 GB, free: 7.223 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001949/0.5513, allocations: 1.637 MB / 0.8549 GB, free: 5.621 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006413/0.552, allocations: 92.23 kB / 0.855 GB, free: 5.562 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.462e-05/0.5521, allocations: 32.41 kB / 0.8551 GB, free: 5.551 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: 18 (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,decAng.tNext,$PRE.decAng.tNext,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 90 * 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.0003309/0.5524, allocations: 265.9 kB / 0.8553 GB, free: 5.344 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001577/0.5526, allocations: 87.56 kB / 0.8554 GB, free: 5.297 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002408/0.555, allocations: 1.142 MB / 0.8565 GB, free: 4.66 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.498e-06/0.555, allocations: 14.03 kB / 0.8565 GB, free: 4.656 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.565e-06/0.555, allocations: 0 / 0.8565 GB, free: 4.656 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.038e-05/0.555, allocations: 3.984 kB / 0.8565 GB, free: 4.652 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003079/0.5581, allocations: 2.031 MB / 0.8585 GB, free: 3.348 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.078e-06/0.5581, allocations: 2.375 kB / 0.8585 GB, free: 3.348 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005825/0.5587, allocations: 157.7 kB / 0.8587 GB, free: 3.309 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000434/0.5592, allocations: 73.95 kB / 0.8587 GB, free: 3.27 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.434e-05/0.5592, allocations: 28.16 kB / 0.8588 GB, free: 3.25 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001779/0.561, allocations: 1.656 MB / 0.8604 GB, free: 1.629 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.561, allocations: 2.531 kB / 0.8604 GB, free: 1.629 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001941/0.563, allocations: 1.045 MB / 0.8614 GB, free: 1.043 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003245/0.5633, allocations: 286.2 kB / 0.8617 GB, free: 0.793 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000127/0.5635, allocations: 19.69 kB / 0.8617 GB, free: 0.7812 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006852/0.5641, allocations: 69.28 kB / 0.8618 GB, free: 0.7461 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001392/0.5643, allocations: 71.98 kB / 0.8618 GB, free: 0.7109 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.927e-05/0.5644, allocations: 45.39 kB / 0.8619 GB, free: 0.6914 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0005043/0.5649, allocations: 470.1 kB / 0.8623 GB, free: 436 kB / 0.5762 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5649, allocations: 0 / 0.8623 GB, free: 436 kB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0007394/0.5656, allocations: 316.2 kB / 0.8626 GB, free: 340 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: 12 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,decAng.tNext,weaDat.locTim.tNext,weaDat.conTimMin.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext) * Number of discrete states: 6 (decAng.tNext,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 (99): * Single equations (assignments): 92 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * 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.003543/0.5692, allocations: 2.111 MB / 0.8647 GB, free: 15.07 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.002262/0.5715, allocations: 1.049 MB / 0.8657 GB, free: 14.59 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/0.5715, allocations: 0 / 0.8657 GB, free: 14.59 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0009382/0.5724, allocations: 0.5413 MB / 0.8662 GB, free: 14.29 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001196/0.5736, allocations: 298.8 kB / 0.8665 GB, free: 14.14 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01048/0.5841, allocations: 6.719 MB / 0.8731 GB, free: 9.879 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005478/0.5847, allocations: 1.029 MB / 0.8741 GB, free: 9.035 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0008106/0.5855, allocations: 273.7 kB / 0.8744 GB, free: 8.898 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005323/0.586, allocations: 409.9 kB / 0.8747 GB, free: 8.574 MB / 0.5919 GB Notification: Performance of SimCode: time 4.51e-07/0.586, allocations: 0 / 0.8747 GB, free: 8.574 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04739/0.6334, allocations: 21.65 MB / 0.8959 GB, free: 3.637 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.77/11.41, allocations: 16.23 kB / 0.8959 GB, free: 3.621 MB / 0.6075 GB (rm -f BuildingSystems_BuildingSystems.BoundaryConditions.SolarGeometry.BaseClasses.Examples.ZenithAngle.pipe ; mkfifo BuildingSystems_BuildingSystems.BoundaryConditions.SolarGeometry.BaseClasses.Examples.ZenithAngle.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.BoundaryConditions.SolarGeometry.BaseClasses.Examples.ZenithAngle.pipe >> ../files/BuildingSystems_BuildingSystems.BoundaryConditions.SolarGeometry.BaseClasses.Examples.ZenithAngle.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.BoundaryConditions.SolarGeometry.BaseClasses.Examples.ZenithAngle_res.csv --start-time 100000 --stop-time 300000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 80 BuildingSystems_BuildingSystems_BoundaryConditions_SolarGeometry_BaseClasses_Examples_ZenithAngle.fmu > BuildingSystems_BuildingSystems.BoundaryConditions.SolarGeometry.BaseClasses.Examples.ZenithAngle.pipe 2>&1)