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.00179/0.00179, 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.001942/0.001942, allocations: 197.4 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.393/1.393, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002502/0.002502, allocations: 275 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 1.006/1.006, allocations: 169.2 MB / 0.4982 GB, free: 13.94 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002777/0.002778, allocations: 104 kB / 0.5953 GB, free: 27.9 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1373/0.1401, allocations: 86.98 MB / 0.6803 GB, free: 0.5664 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.BoundaryConditions.SolarGeometry.BaseClasses.Examples.ZenithAngle): time 0.006495/0.1466, allocations: 4.41 MB / 0.6846 GB, free: 12.15 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.4105/0.5571, allocations: 150.6 MB / 0.8316 GB, free: 1.203 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006019/0.5578, allocations: 14.31 kB / 0.8317 GB, free: 1.199 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0004213/0.5582, allocations: 173.8 kB / 0.8318 GB, free: 1.105 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.001258/0.5595, allocations: 0.5176 MB / 0.8323 GB, free: 0.957 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.001441/0.5609, allocations: 0.8354 MB / 0.8331 GB, free: 0.8867 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0008649/0.5618, allocations: 1.341 MB / 0.8345 GB, free: 0.6758 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006924/0.5625, allocations: 0.6207 MB / 0.8351 GB, free: 0.5469 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004161/0.5629, allocations: 496.9 kB / 0.8355 GB, free: 460 kB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004457/0.5634, allocations: 0.5045 MB / 0.836 GB, free: 348 kB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0001658/0.5636, allocations: 121.9 kB / 0.8361 GB, free: 344 kB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006615/0.5642, allocations: 462.6 kB / 0.8366 GB, free: 332 kB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0002017/0.5644, allocations: 308.5 kB / 0.8369 GB, free: 280 kB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0003514/0.5648, allocations: 0.5584 MB / 0.8374 GB, free: 104 kB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.001292/0.5661, allocations: 1.593 MB / 0.839 GB, free: 15.87 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 2.976e-06/0.5661, allocations: 0 / 0.839 GB, free: 15.87 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.112e-06/0.5661, allocations: 0 / 0.839 GB, free: 15.87 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.216e-05/0.5661, allocations: 0 / 0.839 GB, free: 15.87 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.002635/0.5688, allocations: 1.463 MB / 0.8404 GB, free: 15.06 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.357e-05/0.5688, allocations: 9.906 kB / 0.8404 GB, free: 15.06 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001578/0.569, allocations: 138.5 kB / 0.8405 GB, free: 15.02 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008896/0.5699, allocations: 185.2 kB / 0.8407 GB, free: 14.96 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009996/0.5709, allocations: 0.7652 MB / 0.8415 GB, free: 14.52 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.603e-05/0.5709, allocations: 60.28 kB / 0.8415 GB, free: 14.52 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.583e-05/0.571, allocations: 83.25 kB / 0.8416 GB, free: 14.52 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001471/0.5725, allocations: 0.9461 MB / 0.8425 GB, free: 14.19 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.867e-05/0.5725, allocations: 0 / 0.8425 GB, free: 14.19 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.09e-05/0.5726, allocations: 36.31 kB / 0.8426 GB, free: 14.19 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.961e-05/0.5727, allocations: 25.8 kB / 0.8426 GB, free: 14.18 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001766/0.5744, allocations: 1.12 MB / 0.8437 GB, free: 13.71 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003825/0.5783, allocations: 2.544 MB / 0.8462 GB, free: 11.79 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001559/0.5798, allocations: 0.9069 MB / 0.8471 GB, free: 11.29 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000567/0.5804, allocations: 320 kB / 0.8474 GB, free: 11.12 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 7.125e-05/0.5805, allocations: 28.69 kB / 0.8474 GB, free: 11.11 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008713/0.5814, allocations: 0.5118 MB / 0.8479 GB, free: 10.79 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=84): time 1.993e-06/0.5814, allocations: 0 / 0.8479 GB, free: 10.79 MB / 0.5762 GB Notification: Performance of matching and sorting (n=84): time 0.003145/0.5845, allocations: 1.249 MB / 0.8491 GB, free: 10.12 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001211/0.5847, allocations: 188 kB / 0.8493 GB, free: 9.895 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000736/0.5854, allocations: 0.6435 MB / 0.8499 GB, free: 9.523 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 7.984e-05/0.5855, allocations: 42.77 kB / 0.85 GB, free: 9.48 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003258/0.5858, allocations: 406 kB / 0.8503 GB, free: 9.125 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.000225/0.5861, allocations: 262.9 kB / 0.8506 GB, free: 8.902 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002371/0.5863, allocations: 156 kB / 0.8507 GB, free: 8.809 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0002019/0.5865, allocations: 391.7 kB / 0.8511 GB, free: 8.434 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005116/0.587, allocations: 254.2 kB / 0.8514 GB, free: 8.312 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006369/0.5877, allocations: 368.9 kB / 0.8517 GB, free: 8.078 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001101/0.5888, allocations: 0.6045 MB / 0.8523 GB, free: 7.754 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.5888, allocations: 0 / 0.8523 GB, free: 7.754 MB / 0.5762 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001877/0.5907, allocations: 0.8297 MB / 0.8531 GB, free: 7.324 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.432e-05/0.5907, allocations: 5.094 kB / 0.8531 GB, free: 7.324 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.05e-06/0.5907, allocations: 0 / 0.8531 GB, free: 7.324 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005956/0.5913, allocations: 91.77 kB / 0.8532 GB, free: 7.277 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006176/0.5919, allocations: 151.2 kB / 0.8533 GB, free: 7.242 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002142/0.5941, allocations: 1.633 MB / 0.8549 GB, free: 5.641 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006293/0.5947, allocations: 91.95 kB / 0.855 GB, free: 5.582 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.297e-05/0.5948, allocations: 35.94 kB / 0.8551 GB, free: 5.566 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.0003648/0.5952, allocations: 263.1 kB / 0.8553 GB, free: 5.359 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001769/0.5954, allocations: 85.53 kB / 0.8554 GB, free: 5.316 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002513/0.5979, allocations: 1.14 MB / 0.8565 GB, free: 4.68 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.538e-06/0.5979, allocations: 18.16 kB / 0.8565 GB, free: 4.672 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.534e-06/0.5979, allocations: 0 / 0.8565 GB, free: 4.672 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.099e-05/0.5979, allocations: 3.984 kB / 0.8565 GB, free: 4.668 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003247/0.6012, allocations: 2.032 MB / 0.8585 GB, free: 3.363 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/0.6012, allocations: 0 / 0.8585 GB, free: 3.363 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005771/0.6018, allocations: 156.2 kB / 0.8587 GB, free: 3.328 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004308/0.6022, allocations: 71.77 kB / 0.8587 GB, free: 3.289 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.426e-05/0.6023, allocations: 38.03 kB / 0.8588 GB, free: 3.262 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00199/0.6043, allocations: 1.659 MB / 0.8604 GB, free: 1.637 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.6043, allocations: 0 / 0.8604 GB, free: 1.637 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002017/0.6063, allocations: 1.041 MB / 0.8614 GB, free: 1.055 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000355/0.6067, allocations: 284.4 kB / 0.8617 GB, free: 0.8086 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001309/0.6068, allocations: 17.03 kB / 0.8617 GB, free: 0.7969 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006879/0.6075, allocations: 76.83 kB / 0.8618 GB, free: 0.7539 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001391/0.6077, allocations: 72.33 kB / 0.8618 GB, free: 0.7188 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.863e-05/0.6078, allocations: 40.48 kB / 0.8619 GB, free: 0.707 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0005312/0.6083, allocations: 469.9 kB / 0.8623 GB, free: 452 kB / 0.5762 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6083, allocations: 0 / 0.8623 GB, free: 452 kB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0007511/0.6091, allocations: 308.8 kB / 0.8626 GB, free: 364 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.004068/0.6131, allocations: 2.105 MB / 0.8647 GB, free: 15.06 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.002311/0.6155, allocations: 1.056 MB / 0.8657 GB, free: 14.58 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.6155, allocations: 0 / 0.8657 GB, free: 14.58 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0009336/0.6164, allocations: 0.5369 MB / 0.8662 GB, free: 14.28 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001177/0.6176, allocations: 304.5 kB / 0.8665 GB, free: 14.13 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01085/0.6285, allocations: 6.725 MB / 0.8731 GB, free: 9.867 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006472/0.6291, allocations: 1.029 MB / 0.8741 GB, free: 9.023 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0008051/0.6299, allocations: 272.4 kB / 0.8744 GB, free: 8.887 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005772/0.6305, allocations: 411.6 kB / 0.8747 GB, free: 8.559 MB / 0.5919 GB Notification: Performance of SimCode: time 3.61e-07/0.6305, allocations: 0 / 0.8747 GB, free: 8.559 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05884/0.6894, allocations: 21.65 MB / 0.8959 GB, free: 3.637 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.81/12.5, allocations: 8.359 kB / 0.8959 GB, free: 3.629 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)