Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyClearness.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.SkyClearness,fileNamePrefix="BuildingSystems_BuildingSystems_BoundaryConditions_SolarIrradiation_BaseClasses_Examples_SkyClearness",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyClearness,fileNamePrefix="BuildingSystems_BuildingSystems_BoundaryConditions_SolarIrradiation_BaseClasses_Examples_SkyClearness",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.001069/0.001069, 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.001098/0.001098, 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.301/1.301, 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.002099/0.002099, allocations: 282.8 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.9293/0.9293, allocations: 169.3 MB / 0.4982 GB, free: 13.87 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001711/0.001711, allocations: 92.94 kB / 0.5953 GB, free: 28.05 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1367/0.1384, allocations: 86.98 MB / 0.6803 GB, free: 0.5859 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyClearness): time 0.005954/0.1444, allocations: 4.416 MB / 0.6846 GB, free: 12.16 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.4068/0.5512, allocations: 150.6 MB / 0.8317 GB, free: 1.188 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006359/0.5519, allocations: 15.81 kB / 0.8317 GB, free: 1.184 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0004322/0.5523, allocations: 183.2 kB / 0.8319 GB, free: 1.086 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.001239/0.5536, allocations: 0.5017 MB / 0.8324 GB, free: 0.9453 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.001547/0.5551, allocations: 0.8536 MB / 0.8332 GB, free: 0.8711 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.000939/0.5561, allocations: 1.322 MB / 0.8345 GB, free: 0.6641 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007722/0.5569, allocations: 0.7051 MB / 0.8352 GB, free: 0.5156 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004961/0.5574, allocations: 498.8 kB / 0.8357 GB, free: 432 kB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004517/0.5578, allocations: 0.534 MB / 0.8362 GB, free: 304 kB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0001719/0.558, allocations: 124.7 kB / 0.8363 GB, free: 304 kB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007935/0.5588, allocations: 494.9 kB / 0.8368 GB, free: 288 kB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.000223/0.5591, allocations: 314 kB / 0.8371 GB, free: 240 kB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0003725/0.5594, allocations: 0.5869 MB / 0.8376 GB, free: 52 kB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.001401/0.5608, allocations: 1.665 MB / 0.8393 GB, free: 15.81 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.548e-06/0.5609, allocations: 7.312 kB / 0.8393 GB, free: 15.81 MB / 0.5762 GB Notification: Performance of FrontEnd: time 2.585e-06/0.5609, allocations: 0 / 0.8393 GB, free: 15.81 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.433e-05/0.5609, allocations: 3.938 kB / 0.8393 GB, free: 15.8 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: 241 * Number of variables: 241 Notification: Performance of Generate backend data structure: time 0.002357/0.5633, allocations: 1.486 MB / 0.8407 GB, free: 14.99 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.358e-05/0.5633, allocations: 10.34 kB / 0.8407 GB, free: 14.99 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001525/0.5635, allocations: 151.3 kB / 0.8409 GB, free: 14.95 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001091/0.5645, allocations: 220 kB / 0.8411 GB, free: 14.88 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009579/0.5655, allocations: 0.7634 MB / 0.8418 GB, free: 14.42 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.021e-05/0.5656, allocations: 67.94 kB / 0.8419 GB, free: 14.42 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001082/0.5657, allocations: 92.16 kB / 0.842 GB, free: 14.42 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001569/0.5673, allocations: 1.018 MB / 0.843 GB, free: 14.03 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.137e-05/0.5673, allocations: 5.156 kB / 0.843 GB, free: 14.03 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.354e-05/0.5674, allocations: 41.78 kB / 0.843 GB, free: 14 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.949e-05/0.5674, allocations: 23.38 kB / 0.8431 GB, free: 14 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001823/0.5693, allocations: 1.172 MB / 0.8442 GB, free: 13.44 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003895/0.5732, allocations: 2.71 MB / 0.8468 GB, free: 11.4 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00159/0.5748, allocations: 0.9099 MB / 0.8477 GB, free: 10.89 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005618/0.5753, allocations: 312.8 kB / 0.848 GB, free: 10.74 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006233/0.576, allocations: 472.2 kB / 0.8485 GB, free: 10.23 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008775/0.5769, allocations: 0.498 MB / 0.849 GB, free: 9.914 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=82): time 2.795e-06/0.5769, allocations: 0.9375 kB / 0.849 GB, free: 9.914 MB / 0.5762 GB Notification: Performance of matching and sorting (n=82): time 0.003119/0.58, allocations: 1.222 MB / 0.8502 GB, free: 9.254 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.427e-05/0.5801, allocations: 198.2 kB / 0.8503 GB, free: 9.027 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007104/0.5808, allocations: 0.641 MB / 0.851 GB, free: 8.656 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 6.794e-05/0.5809, allocations: 43.17 kB / 0.851 GB, free: 8.613 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002918/0.5812, allocations: 424.3 kB / 0.8514 GB, free: 8.242 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001882/0.5814, allocations: 259 kB / 0.8517 GB, free: 8.023 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002131/0.5816, allocations: 157.3 kB / 0.8518 GB, free: 7.926 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001563/0.5818, allocations: 384.4 kB / 0.8522 GB, free: 7.559 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005134/0.5823, allocations: 257.5 kB / 0.8524 GB, free: 7.434 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006212/0.5829, allocations: 376.9 kB / 0.8528 GB, free: 7.199 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001087/0.584, allocations: 0.5988 MB / 0.8534 GB, free: 6.879 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.5841, allocations: 0 / 0.8534 GB, free: 6.879 MB / 0.5762 GB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001851/0.5859, allocations: 0.8186 MB / 0.8542 GB, free: 6.457 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.627e-05/0.5859, allocations: 9.266 kB / 0.8542 GB, free: 6.453 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.901e-06/0.5859, allocations: 0 / 0.8542 GB, free: 6.453 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005984/0.5866, allocations: 83.69 kB / 0.8543 GB, free: 6.41 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000626/0.5872, allocations: 158 kB / 0.8544 GB, free: 6.371 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001971/0.5892, allocations: 1.636 MB / 0.856 GB, free: 4.77 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006745/0.5899, allocations: 97.03 kB / 0.8561 GB, free: 4.707 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.686e-05/0.5899, allocations: 28.42 kB / 0.8561 GB, free: 4.699 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.0003864/0.5903, allocations: 273 kB / 0.8564 GB, free: 4.484 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001617/0.5905, allocations: 87.8 kB / 0.8565 GB, free: 4.438 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002365/0.5929, allocations: 1.105 MB / 0.8576 GB, free: 3.82 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.973e-06/0.5929, allocations: 10.06 kB / 0.8576 GB, free: 3.82 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.5929, allocations: 3.984 kB / 0.8576 GB, free: 3.816 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.889e-06/0.5929, allocations: 3.984 kB / 0.8576 GB, free: 3.812 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003152/0.5961, allocations: 2.017 MB / 0.8595 GB, free: 2.508 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.237e-06/0.5961, allocations: 3.938 kB / 0.8595 GB, free: 2.504 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005757/0.5967, allocations: 149.3 kB / 0.8597 GB, free: 2.469 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004325/0.5971, allocations: 74.47 kB / 0.8598 GB, free: 2.43 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.455e-05/0.5972, allocations: 23.8 kB / 0.8598 GB, free: 2.414 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00179/0.599, allocations: 1.658 MB / 0.8614 GB, free: 0.793 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.599, allocations: 0 / 0.8614 GB, free: 0.793 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001974/0.601, allocations: 1.025 MB / 0.8624 GB, free: 220 kB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004055/0.6014, allocations: 275.2 kB / 0.8627 GB, free: 15.97 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001596/0.6015, allocations: 17.31 kB / 0.8627 GB, free: 15.96 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007266/0.6023, allocations: 72.69 kB / 0.8627 GB, free: 15.92 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001766/0.6025, allocations: 73.36 kB / 0.8628 GB, free: 15.88 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.523e-05/0.6026, allocations: 33.52 kB / 0.8629 GB, free: 15.88 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0006551/0.6032, allocations: 474 kB / 0.8633 GB, free: 15.6 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.7e-07/0.6032, allocations: 3.938 kB / 0.8633 GB, free: 15.6 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.001024/0.6043, allocations: 335.8 kB / 0.8636 GB, free: 15.49 MB / 0.5919 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 (93): * Single equations (assignments): 87 * 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.003641/0.6079, allocations: 2.074 MB / 0.8657 GB, free: 14.21 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.002307/0.6102, allocations: 1.028 MB / 0.8667 GB, free: 13.74 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.6102, allocations: 0 / 0.8667 GB, free: 13.74 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0009762/0.6112, allocations: 0.5351 MB / 0.8672 GB, free: 13.44 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001254/0.6125, allocations: 290.6 kB / 0.8675 GB, free: 13.3 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01132/0.6238, allocations: 6.76 MB / 0.8741 GB, free: 9.023 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000597/0.6245, allocations: 1.045 MB / 0.8751 GB, free: 8.168 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0008707/0.6253, allocations: 270.5 kB / 0.8753 GB, free: 8.031 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005363/0.6259, allocations: 406.1 kB / 0.8757 GB, free: 7.707 MB / 0.5919 GB Notification: Performance of SimCode: time 4.7e-07/0.6259, allocations: 0 / 0.8757 GB, free: 7.707 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04632/0.6722, allocations: 21.71 MB / 0.8969 GB, free: 2.559 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.75/11.43, allocations: 11.55 kB / 0.8969 GB, free: 2.551 MB / 0.6075 GB (rm -f BuildingSystems_BuildingSystems.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyClearness.pipe ; mkfifo BuildingSystems_BuildingSystems.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyClearness.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyClearness.pipe >> ../files/BuildingSystems_BuildingSystems.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyClearness.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyClearness_res.csv --start-time 100000 --stop-time 3e+06 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1160 BuildingSystems_BuildingSystems_BoundaryConditions_SolarIrradiation_BaseClasses_Examples_SkyClearness.fmu > BuildingSystems_BuildingSystems.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyClearness.pipe 2>&1)