Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.BoundaryConditions.SolarGeometry.BaseClasses.Examples.IncidenceAngle.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.IncidenceAngle,fileNamePrefix="BuildingSystems_BuildingSystems_BoundaryConditions_SolarGeometry_BaseClasses_Examples_IncidenceAngle",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.BoundaryConditions.SolarGeometry.BaseClasses.Examples.IncidenceAngle,fileNamePrefix="BuildingSystems_BuildingSystems_BoundaryConditions_SolarGeometry_BaseClasses_Examples_IncidenceAngle",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.005357/0.005357, allocations: 99.83 kB / 15.73 MB, free: 6.012 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.001257/0.001257, allocations: 193.5 kB / 16.67 MB, free: 5.93 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.211/1.211, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002015/0.002015, allocations: 283.9 kB / 290.8 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8789/0.8789, allocations: 169.3 MB / 0.4983 GB, free: 4.43 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00174/0.00174, allocations: 95.84 kB / 0.681 GB, free: 7.488 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3476/0.3494, allocations: 86.97 MB / 0.7659 GB, free: 3.871 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.BoundaryConditions.SolarGeometry.BaseClasses.Examples.IncidenceAngle): time 0.005445/0.3549, allocations: 4.47 MB / 0.7703 GB, free: 15.38 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.1376/0.4925, allocations: 150.8 MB / 0.9175 GB, free: 8.016 MB / 0.6856 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007412/0.4933, allocations: 19.88 kB / 0.9175 GB, free: 7.996 MB / 0.6856 GB Notification: Performance of NFTyping.typeComponents: time 0.0005499/0.4939, allocations: 178.3 kB / 0.9177 GB, free: 7.82 MB / 0.6856 GB Notification: Performance of NFTyping.typeBindings: time 0.001554/0.4955, allocations: 0.5303 MB / 0.9182 GB, free: 7.289 MB / 0.6856 GB Notification: Performance of NFTyping.typeClassSections: time 0.001781/0.4973, allocations: 0.8392 MB / 0.919 GB, free: 6.457 MB / 0.6856 GB Notification: Performance of NFFlatten.flatten: time 0.001274/0.4986, allocations: 1.386 MB / 0.9204 GB, free: 5.062 MB / 0.6856 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007777/0.4993, allocations: 0.6276 MB / 0.921 GB, free: 4.414 MB / 0.6856 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006013/0.5, allocations: 0.5021 MB / 0.9215 GB, free: 3.91 MB / 0.6856 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005372/0.5005, allocations: 0.5172 MB / 0.922 GB, free: 3.391 MB / 0.6856 GB Notification: Performance of NFPackage.collectConstants: time 0.0001438/0.5007, allocations: 124 kB / 0.9221 GB, free: 3.27 MB / 0.6856 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000774/0.5014, allocations: 495.6 kB / 0.9226 GB, free: 2.785 MB / 0.6856 GB Notification: Performance of NFScalarize.scalarize: time 0.0002683/0.5017, allocations: 307 kB / 0.9229 GB, free: 2.484 MB / 0.6856 GB Notification: Performance of NFVerifyModel.verify: time 0.0004688/0.5022, allocations: 0.5635 MB / 0.9234 GB, free: 1.918 MB / 0.6856 GB Notification: Performance of NFConvertDAE.convert: time 0.001684/0.5039, allocations: 1.671 MB / 0.925 GB, free: 252 kB / 0.6856 GB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.5039, allocations: 0 / 0.925 GB, free: 252 kB / 0.6856 GB Notification: Performance of FrontEnd: time 1.413e-06/0.5039, allocations: 0 / 0.925 GB, free: 252 kB / 0.6856 GB Notification: Performance of Transformations before backend: time 1.95e-05/0.5039, allocations: 0 / 0.925 GB, free: 252 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: 223 * Number of variables: 223 Notification: Performance of Generate backend data structure: time 0.002486/0.5064, allocations: 1.505 MB / 0.9265 GB, free: 14.68 MB / 0.7012 GB Notification: Performance of prepare preOptimizeDAE: time 3.517e-05/0.5065, allocations: 12.03 kB / 0.9265 GB, free: 14.67 MB / 0.7012 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001529/0.5066, allocations: 135.7 kB / 0.9267 GB, free: 14.53 MB / 0.7012 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008813/0.5075, allocations: 204 kB / 0.9268 GB, free: 14.33 MB / 0.7012 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001108/0.5086, allocations: 0.7862 MB / 0.9276 GB, free: 13.5 MB / 0.7012 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.421e-05/0.5087, allocations: 70 kB / 0.9277 GB, free: 13.43 MB / 0.7012 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001108/0.5088, allocations: 87.98 kB / 0.9278 GB, free: 13.34 MB / 0.7012 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00152/0.5104, allocations: 0.9729 MB / 0.9287 GB, free: 12.33 MB / 0.7012 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.002e-05/0.5104, allocations: 0 / 0.9287 GB, free: 12.33 MB / 0.7012 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.164e-05/0.5105, allocations: 36 kB / 0.9288 GB, free: 12.3 MB / 0.7012 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.211e-05/0.5105, allocations: 24 kB / 0.9288 GB, free: 12.27 MB / 0.7012 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001697/0.5122, allocations: 1.159 MB / 0.9299 GB, free: 11.11 MB / 0.7012 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003837/0.516, allocations: 2.652 MB / 0.9325 GB, free: 8.391 MB / 0.7012 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001454/0.5175, allocations: 0.8408 MB / 0.9333 GB, free: 7.551 MB / 0.7012 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005624/0.5181, allocations: 330.7 kB / 0.9336 GB, free: 7.223 MB / 0.7012 GB Notification: Performance of preOpt evalFunc (simulation): time 7.303e-05/0.5182, allocations: 40.58 kB / 0.9337 GB, free: 7.184 MB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008655/0.5191, allocations: 0.5279 MB / 0.9342 GB, free: 6.637 MB / 0.7012 GB Notification: Performance of pre-optimization done (n=88): time 2.384e-06/0.5191, allocations: 0 / 0.9342 GB, free: 6.637 MB / 0.7012 GB Notification: Performance of matching and sorting (n=88): time 0.003073/0.5221, allocations: 1.29 MB / 0.9354 GB, free: 5.324 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.534e-05/0.5223, allocations: 192.9 kB / 0.9356 GB, free: 5.09 MB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007522/0.523, allocations: 0.6567 MB / 0.9363 GB, free: 4.426 MB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 6.991e-05/0.5231, allocations: 49.64 kB / 0.9363 GB, free: 4.371 MB / 0.7012 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002885/0.5234, allocations: 409.1 kB / 0.9367 GB, free: 3.965 MB / 0.7012 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002154/0.5236, allocations: 301.4 kB / 0.937 GB, free: 3.668 MB / 0.7012 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002242/0.5238, allocations: 170.5 kB / 0.9372 GB, free: 3.496 MB / 0.7012 GB Notification: Performance of setup shared object (initialization): time 0.0001521/0.524, allocations: 382.8 kB / 0.9375 GB, free: 3.113 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005099/0.5245, allocations: 273.8 kB / 0.9378 GB, free: 2.848 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000616/0.5251, allocations: 386.5 kB / 0.9382 GB, free: 2.441 MB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001114/0.5263, allocations: 0.632 MB / 0.9388 GB, free: 1.801 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.387e-06/0.5263, allocations: 0 / 0.9388 GB, free: 1.801 MB / 0.7012 GB Notification: Performance of matching and sorting (n=99) (initialization): time 0.001891/0.5282, allocations: 0.8842 MB / 0.9396 GB, free: 0.9023 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 1.738e-05/0.5282, allocations: 6.5 kB / 0.9396 GB, free: 0.8984 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.873e-06/0.5282, allocations: 0 / 0.9396 GB, free: 0.8984 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005544/0.5288, allocations: 80.84 kB / 0.9397 GB, free: 0.8164 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006745/0.5295, allocations: 171.7 kB / 0.9399 GB, free: 0.6484 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002014/0.5315, allocations: 1.623 MB / 0.9415 GB, free: 14.88 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007093/0.5322, allocations: 95.44 kB / 0.9416 GB, free: 14.79 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.227e-05/0.5323, allocations: 39.97 kB / 0.9416 GB, free: 14.75 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: 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 (97): * Single equations (assignments): 96 * 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.0004036/0.5327, allocations: 273.2 kB / 0.9419 GB, free: 14.48 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001619/0.5329, allocations: 87.44 kB / 0.9419 GB, free: 14.39 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00243/0.5353, allocations: 1.175 MB / 0.9431 GB, free: 13.2 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.011e-05/0.5353, allocations: 12 kB / 0.9431 GB, free: 13.19 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.645e-06/0.5353, allocations: 0 / 0.9431 GB, free: 13.19 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.548e-06/0.5353, allocations: 3.984 kB / 0.9431 GB, free: 13.18 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001004/0.5364, allocations: 0.9349 MB / 0.944 GB, free: 12.2 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.819e-06/0.5364, allocations: 0 / 0.944 GB, free: 12.2 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006081/0.537, allocations: 159.7 kB / 0.9442 GB, free: 12.04 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004161/0.5374, allocations: 76.72 kB / 0.9442 GB, free: 11.96 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.676e-05/0.5375, allocations: 31.97 kB / 0.9443 GB, free: 11.93 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001754/0.5392, allocations: 1.654 MB / 0.9459 GB, free: 10.14 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.5392, allocations: 0 / 0.9459 GB, free: 10.14 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001962/0.5412, allocations: 1.01 MB / 0.9469 GB, free: 9.102 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003914/0.5416, allocations: 284.2 kB / 0.9471 GB, free: 8.805 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001312/0.5418, allocations: 31.83 kB / 0.9472 GB, free: 8.773 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006534/0.5424, allocations: 71.16 kB / 0.9472 GB, free: 8.707 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000146/0.5426, allocations: 72.95 kB / 0.9473 GB, free: 8.637 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.803e-05/0.5427, allocations: 55.84 kB / 0.9474 GB, free: 8.582 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.000558/0.5432, allocations: 479 kB / 0.9478 GB, free: 8.117 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.51e-07/0.5432, allocations: 0 / 0.9478 GB, free: 8.117 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0007641/0.544, allocations: 327.2 kB / 0.9481 GB, free: 7.797 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: 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.conTimMin.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (100): * Single equations (assignments): 93 * 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.00332/0.5473, allocations: 2.056 MB / 0.9501 GB, free: 5.895 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.001643/0.549, allocations: 0.8624 MB / 0.951 GB, free: 5.02 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.549, allocations: 0 / 0.951 GB, free: 5.02 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0009122/0.5499, allocations: 0.5395 MB / 0.9515 GB, free: 4.469 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001155/0.5511, allocations: 290.2 kB / 0.9518 GB, free: 4.207 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2813/0.8324, allocations: 6.62 MB / 0.9583 GB, free: 186.9 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005752/0.833, allocations: 1.043 MB / 0.9593 GB, free: 186.2 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0008022/0.8338, allocations: 274.7 kB / 0.9595 GB, free: 186.2 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005128/0.8343, allocations: 410.7 kB / 0.9599 GB, free: 185.9 MB / 0.7169 GB Notification: Performance of SimCode: time 6.61e-07/0.8343, allocations: 0 / 0.9599 GB, free: 185.9 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04105/0.8754, allocations: 22.35 MB / 0.9818 GB, free: 171.4 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.5/12.38, allocations: 4.281 kB / 0.9818 GB, free: 171.4 MB / 0.7169 GB (rm -f BuildingSystems_BuildingSystems.BoundaryConditions.SolarGeometry.BaseClasses.Examples.IncidenceAngle.pipe ; mkfifo BuildingSystems_BuildingSystems.BoundaryConditions.SolarGeometry.BaseClasses.Examples.IncidenceAngle.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.BoundaryConditions.SolarGeometry.BaseClasses.Examples.IncidenceAngle.pipe >> ../files/BuildingSystems_BuildingSystems.BoundaryConditions.SolarGeometry.BaseClasses.Examples.IncidenceAngle.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.BoundaryConditions.SolarGeometry.BaseClasses.Examples.IncidenceAngle_res.csv --start-time 0 --stop-time 86400 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 34.56 BuildingSystems_BuildingSystems_BoundaryConditions_SolarGeometry_BaseClasses_Examples_IncidenceAngle.fmu > BuildingSystems_BuildingSystems.BoundaryConditions.SolarGeometry.BaseClasses.Examples.IncidenceAngle.pipe 2>&1)