Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.BoundaryConditions.SolarGeometry.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.Examples.ZenithAngle,fileNamePrefix="BuildingSystems_BuildingSystems_BoundaryConditions_SolarGeometry_Examples_ZenithAngle",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.BoundaryConditions.SolarGeometry.Examples.ZenithAngle,fileNamePrefix="BuildingSystems_BuildingSystems_BoundaryConditions_SolarGeometry_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.00115/0.00115, 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.00112/0.00112, allocations: 191.8 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.373/1.373, 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.002263/0.002263, allocations: 286.9 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 1.058/1.058, allocations: 169.3 MB / 0.4982 GB, free: 13.94 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001879/0.001879, allocations: 92.56 kB / 0.5953 GB, free: 28.1 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2675/0.2694, allocations: 86.98 MB / 0.6803 GB, free: 0.6016 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.BoundaryConditions.SolarGeometry.Examples.ZenithAngle): time 0.009088/0.2786, allocations: 4.299 MB / 0.6845 GB, free: 12.29 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.544/0.8227, allocations: 150.5 MB / 0.8315 GB, free: 1.18 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008066/0.8236, allocations: 15.62 kB / 0.8315 GB, free: 1.176 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0005117/0.8241, allocations: 179 kB / 0.8317 GB, free: 1.082 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.00155/0.8257, allocations: 0.5012 MB / 0.8322 GB, free: 0.9375 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.001842/0.8275, allocations: 0.8188 MB / 0.833 GB, free: 0.8711 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.001335/0.8289, allocations: 1.295 MB / 0.8342 GB, free: 0.668 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008512/0.8297, allocations: 0.6261 MB / 0.8348 GB, free: 0.5352 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006881/0.8304, allocations: 473.7 kB / 0.8353 GB, free: 452 kB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005225/0.831, allocations: 498.4 kB / 0.8358 GB, free: 340 kB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0001786/0.8311, allocations: 117.2 kB / 0.8359 GB, free: 340 kB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009721/0.8321, allocations: 463.6 kB / 0.8363 GB, free: 328 kB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0002472/0.8324, allocations: 291.2 kB / 0.8366 GB, free: 284 kB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0004358/0.8328, allocations: 0.544 MB / 0.8371 GB, free: 112 kB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.001837/0.8347, allocations: 1.572 MB / 0.8387 GB, free: 15.89 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.8347, allocations: 4 kB / 0.8387 GB, free: 15.88 MB / 0.5762 GB Notification: Performance of FrontEnd: time 3.416e-06/0.8347, allocations: 1.906 kB / 0.8387 GB, free: 15.88 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.698e-05/0.8347, allocations: 3.938 kB / 0.8387 GB, free: 15.88 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: 211 * Number of variables: 211 Notification: Performance of Generate backend data structure: time 0.002551/0.8373, allocations: 1.406 MB / 0.8401 GB, free: 15.1 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.356e-05/0.8373, allocations: 9.625 kB / 0.8401 GB, free: 15.1 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001424/0.8375, allocations: 132.7 kB / 0.8402 GB, free: 15.06 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009148/0.8384, allocations: 188.5 kB / 0.8404 GB, free: 15 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001044/0.8395, allocations: 0.7454 MB / 0.8411 GB, free: 14.64 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.287e-05/0.8395, allocations: 64.22 kB / 0.8412 GB, free: 14.64 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001105/0.8397, allocations: 81.61 kB / 0.8412 GB, free: 14.64 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001563/0.8412, allocations: 0.9181 MB / 0.8421 GB, free: 14.32 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.133e-05/0.8413, allocations: 0 / 0.8421 GB, free: 14.32 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.475e-05/0.8413, allocations: 39.5 kB / 0.8422 GB, free: 14.31 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.184e-05/0.8414, allocations: 20.62 kB / 0.8422 GB, free: 14.31 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001752/0.8431, allocations: 1.113 MB / 0.8433 GB, free: 13.92 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003742/0.8469, allocations: 2.536 MB / 0.8458 GB, free: 12 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001486/0.8484, allocations: 0.8806 MB / 0.8466 GB, free: 11.51 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005049/0.8489, allocations: 312.9 kB / 0.8469 GB, free: 11.35 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 7.601e-05/0.849, allocations: 38.11 kB / 0.8469 GB, free: 11.34 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008423/0.8498, allocations: 491.7 kB / 0.8474 GB, free: 11.02 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=79): time 2.254e-06/0.8499, allocations: 0 / 0.8474 GB, free: 11.02 MB / 0.5762 GB Notification: Performance of matching and sorting (n=79): time 0.003008/0.8529, allocations: 1.19 MB / 0.8486 GB, free: 10.38 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.831e-05/0.853, allocations: 193.7 kB / 0.8488 GB, free: 10.15 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007277/0.8537, allocations: 0.6237 MB / 0.8494 GB, free: 9.789 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 6.616e-05/0.8538, allocations: 42.58 kB / 0.8494 GB, free: 9.746 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002726/0.8541, allocations: 396.3 kB / 0.8498 GB, free: 9.398 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001833/0.8543, allocations: 254 kB / 0.85 GB, free: 9.188 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002016/0.8545, allocations: 143 kB / 0.8502 GB, free: 9.102 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001461/0.8546, allocations: 388.1 kB / 0.8505 GB, free: 8.73 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004507/0.8551, allocations: 245.8 kB / 0.8508 GB, free: 8.613 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005799/0.8557, allocations: 365.3 kB / 0.8511 GB, free: 8.375 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009934/0.8567, allocations: 0.5844 MB / 0.8517 GB, free: 8.062 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/0.8567, allocations: 0 / 0.8517 GB, free: 8.062 MB / 0.5762 GB Notification: Performance of matching and sorting (n=87) (initialization): time 0.00177/0.8585, allocations: 0.7949 MB / 0.8525 GB, free: 7.652 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.033e-05/0.8585, allocations: 5.531 kB / 0.8525 GB, free: 7.652 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.296e-06/0.8585, allocations: 0 / 0.8525 GB, free: 7.652 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00059/0.8591, allocations: 92.14 kB / 0.8526 GB, free: 7.605 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005765/0.8597, allocations: 150.8 kB / 0.8527 GB, free: 7.566 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002105/0.8618, allocations: 1.642 MB / 0.8543 GB, free: 5.953 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007182/0.8625, allocations: 90.06 kB / 0.8544 GB, free: 5.895 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.67e-05/0.8626, allocations: 32.55 kB / 0.8544 GB, free: 5.883 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 (85): * Single equations (assignments): 84 * 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.0004662/0.8631, allocations: 274.1 kB / 0.8547 GB, free: 5.664 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001737/0.8633, allocations: 82.62 kB / 0.8548 GB, free: 5.621 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002274/0.8655, allocations: 1.061 MB / 0.8558 GB, free: 5.031 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.005e-06/0.8656, allocations: 10.19 kB / 0.8558 GB, free: 5.031 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.189e-06/0.8656, allocations: 4 kB / 0.8558 GB, free: 5.027 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.248e-05/0.8656, allocations: 7.984 kB / 0.8558 GB, free: 5.02 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003107/0.8687, allocations: 1.958 MB / 0.8577 GB, free: 3.73 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.458e-06/0.8687, allocations: 0 / 0.8577 GB, free: 3.73 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005457/0.8693, allocations: 144.5 kB / 0.8579 GB, free: 3.695 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004427/0.8697, allocations: 74.16 kB / 0.8579 GB, free: 3.656 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.83e-05/0.8698, allocations: 23.3 kB / 0.858 GB, free: 3.641 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001949/0.8718, allocations: 1.674 MB / 0.8596 GB, free: 2.016 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.983e-06/0.8718, allocations: 0 / 0.8596 GB, free: 2.016 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00213/0.8739, allocations: 0.9965 MB / 0.8606 GB, free: 1.449 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003607/0.8743, allocations: 275.7 kB / 0.8608 GB, free: 1.207 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001195/0.8744, allocations: 20.88 kB / 0.8609 GB, free: 1.191 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006193/0.875, allocations: 62.97 kB / 0.8609 GB, free: 1.16 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001475/0.8752, allocations: 69.55 kB / 0.861 GB, free: 1.125 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.464e-05/0.8753, allocations: 34.2 kB / 0.861 GB, free: 1.113 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0005604/0.8758, allocations: 456.6 kB / 0.8615 GB, free: 0.8516 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.31e-07/0.8758, allocations: 0 / 0.8615 GB, free: 0.8516 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0009931/0.8768, allocations: 306.8 kB / 0.8617 GB, free: 0.7578 MB / 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 (90): * Single equations (assignments): 84 * 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.00338/0.8802, allocations: 2.039 MB / 0.8637 GB, free: 15.49 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.002201/0.8824, allocations: 1.003 MB / 0.8647 GB, free: 15.02 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 4.058e-06/0.8825, allocations: 0 / 0.8647 GB, free: 15.02 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0009341/0.8834, allocations: 0.516 MB / 0.8652 GB, free: 14.73 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001364/0.8848, allocations: 300.5 kB / 0.8655 GB, free: 14.58 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01026/0.895, allocations: 6.509 MB / 0.8719 GB, free: 10.48 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000592/0.8957, allocations: 1.014 MB / 0.8729 GB, free: 9.641 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0008542/0.8965, allocations: 268.1 kB / 0.8731 GB, free: 9.504 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005369/0.8971, allocations: 369.5 kB / 0.8735 GB, free: 9.211 MB / 0.5919 GB Notification: Performance of SimCode: time 7.42e-07/0.8971, allocations: 0 / 0.8735 GB, free: 9.211 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05066/0.9478, allocations: 20.92 MB / 0.8939 GB, free: 5.621 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.01/11.96, allocations: 2 kB / 0.8939 GB, free: 5.621 MB / 0.6075 GB (rm -f BuildingSystems_BuildingSystems.BoundaryConditions.SolarGeometry.Examples.ZenithAngle.pipe ; mkfifo BuildingSystems_BuildingSystems.BoundaryConditions.SolarGeometry.Examples.ZenithAngle.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.BoundaryConditions.SolarGeometry.Examples.ZenithAngle.pipe >> ../files/BuildingSystems_BuildingSystems.BoundaryConditions.SolarGeometry.Examples.ZenithAngle.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.BoundaryConditions.SolarGeometry.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_Examples_ZenithAngle.fmu > BuildingSystems_BuildingSystems.BoundaryConditions.SolarGeometry.Examples.ZenithAngle.pipe 2>&1)