Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled,fileNamePrefix="Buildings_8_Buildings_Controls_OBC_OutdoorLights_Validation_DaylightControlled",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled,fileNamePrefix="Buildings_8_Buildings_Controls_OBC_OutdoorLights_Validation_DaylightControlled",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.001301/0.001301, 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.001323/0.001324, allocations: 193.1 kB / 16.53 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.6/1.6, allocations: 205.1 MB / 222.4 MB, free: 4.609 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.764/1.764, allocations: 292.3 MB / 0.5489 GB, free: 12.82 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001415/0.001415, allocations: 65.39 kB / 0.6716 GB, free: 26.43 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2329/0.2343, allocations: 114.6 MB / 0.7835 GB, free: 13.41 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled): time 0.002216/0.2366, allocations: 0.7427 MB / 0.7842 GB, free: 12.67 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.002118/0.2387, allocations: 1.565 MB / 0.7857 GB, free: 11.08 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.226e-05/0.2388, allocations: 0 / 0.7857 GB, free: 11.08 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 3.349e-05/0.2388, allocations: 3.938 kB / 0.7857 GB, free: 11.08 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001839/0.2391, allocations: 27.78 kB / 0.7858 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004797/0.2395, allocations: 155.5 kB / 0.7859 GB, free: 10.9 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001561/0.2397, allocations: 119.6 kB / 0.786 GB, free: 10.78 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001239/0.2398, allocations: 12 kB / 0.786 GB, free: 10.77 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001319/0.24, allocations: 51.89 kB / 0.7861 GB, free: 10.72 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001394/0.2401, allocations: 51.81 kB / 0.7861 GB, free: 10.67 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.988e-05/0.2402, allocations: 15.94 kB / 0.7861 GB, free: 10.65 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002239/0.2404, allocations: 87.95 kB / 0.7862 GB, free: 10.57 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 3.869e-05/0.2404, allocations: 19.98 kB / 0.7862 GB, free: 10.55 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 6.824e-05/0.2405, allocations: 47.78 kB / 0.7863 GB, free: 10.5 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0003492/0.2409, allocations: 195.8 kB / 0.7865 GB, free: 10.31 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.2409, allocations: 0 / 0.7865 GB, free: 10.31 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.034e-06/0.2409, allocations: 0 / 0.7865 GB, free: 10.31 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 7.213e-06/0.2409, allocations: 0 / 0.7865 GB, free: 10.31 MB / 0.6075 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.000867/0.2418, allocations: 427.1 kB / 0.7869 GB, free: 9.844 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.601e-05/0.2418, allocations: 15.91 kB / 0.7869 GB, free: 9.828 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.287e-05/0.2419, allocations: 38.75 kB / 0.7869 GB, free: 9.781 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.098e-05/0.242, allocations: 8.844 kB / 0.7869 GB, free: 9.773 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002069/0.2422, allocations: 176.2 kB / 0.7871 GB, free: 9.562 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001058/0.2423, allocations: 34.27 kB / 0.7871 GB, free: 9.523 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.414e-05/0.2423, allocations: 8.375 kB / 0.7872 GB, free: 9.516 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002525/0.2426, allocations: 108.1 kB / 0.7873 GB, free: 9.395 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.257e-05/0.2426, allocations: 4 kB / 0.7873 GB, free: 9.391 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.767e-05/0.2426, allocations: 4 kB / 0.7873 GB, free: 9.387 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.023e-06/0.2426, allocations: 0 / 0.7873 GB, free: 9.387 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000129/0.2428, allocations: 43.97 kB / 0.7873 GB, free: 9.344 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008837/0.2437, allocations: 0.5126 MB / 0.7878 GB, free: 8.773 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005687/0.2443, allocations: 139.7 kB / 0.7879 GB, free: 8.609 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001014/0.2444, allocations: 50.64 kB / 0.788 GB, free: 8.551 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 3.024e-05/0.2444, allocations: 0 / 0.788 GB, free: 8.551 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003875/0.2448, allocations: 117.8 kB / 0.7881 GB, free: 8.414 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=11): time 2.175e-06/0.2448, allocations: 0 / 0.7881 GB, free: 8.414 MB / 0.6075 GB Notification: Performance of matching and sorting (n=11): time 0.0004136/0.2452, allocations: 145.5 kB / 0.7882 GB, free: 8.266 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.635e-05/0.2453, allocations: 106.8 kB / 0.7883 GB, free: 8.137 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001264/0.2454, allocations: 125.8 kB / 0.7885 GB, free: 8.004 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.882e-05/0.2455, allocations: 37.64 kB / 0.7885 GB, free: 7.961 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 6.476e-05/0.2456, allocations: 92.47 kB / 0.7886 GB, free: 7.867 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 3.375e-05/0.2456, allocations: 31.56 kB / 0.7886 GB, free: 7.836 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.381e-05/0.2457, allocations: 41.75 kB / 0.7887 GB, free: 7.789 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001396/0.2458, allocations: 322.8 kB / 0.789 GB, free: 7.465 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001067/0.2459, allocations: 31.98 kB / 0.789 GB, free: 7.434 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.384e-05/0.246, allocations: 39.97 kB / 0.789 GB, free: 7.395 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001807/0.2462, allocations: 83.73 kB / 0.7891 GB, free: 7.312 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/0.2462, allocations: 0 / 0.7891 GB, free: 7.312 MB / 0.6075 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002575/0.2465, allocations: 125.5 kB / 0.7892 GB, free: 7.184 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.493e-05/0.2465, allocations: 8 kB / 0.7892 GB, free: 7.176 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.115e-06/0.2466, allocations: 7.984 kB / 0.7892 GB, free: 7.168 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.036e-05/0.2466, allocations: 0 / 0.7892 GB, free: 7.168 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001253/0.2467, allocations: 20.23 kB / 0.7893 GB, free: 7.148 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.935e-06/0.2467, allocations: 0 / 0.7893 GB, free: 7.148 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.877e-05/0.2468, allocations: 23.78 kB / 0.7893 GB, free: 7.125 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.457e-05/0.2469, allocations: 4 kB / 0.7893 GB, free: 7.121 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 7 (dayCon.not1.y,dayCon.sunRiseSet.nextSunSet,$PRE.dayCon.sunRiseSet.nextSunSet,dayCon.sunRiseSet.nextSunRise,$PRE.dayCon.sunRiseSet.nextSunRise,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000108/0.247, allocations: 129.3 kB / 0.7894 GB, free: 6.988 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.285e-05/0.247, allocations: 7.906 kB / 0.7894 GB, free: 6.98 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002363/0.2472, allocations: 114 kB / 0.7895 GB, free: 6.863 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.26e-06/0.2473, allocations: 3.984 kB / 0.7895 GB, free: 6.859 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.46e-06/0.2473, allocations: 0 / 0.7895 GB, free: 6.859 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.314e-06/0.2473, allocations: 7.938 kB / 0.7895 GB, free: 6.852 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001924/0.2475, allocations: 217.5 kB / 0.7898 GB, free: 6.59 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.2475, allocations: 0 / 0.7898 GB, free: 6.59 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.403e-05/0.2476, allocations: 19.98 kB / 0.7898 GB, free: 6.57 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.487e-06/0.2476, allocations: 4 kB / 0.7898 GB, free: 6.566 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.669e-05/0.2476, allocations: 8 kB / 0.7898 GB, free: 6.559 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.015e-06/0.2476, allocations: 0 / 0.7898 GB, free: 6.559 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.2476, allocations: 0 / 0.7898 GB, free: 6.559 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002822/0.2479, allocations: 182.7 kB / 0.79 GB, free: 6.355 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 8.096e-05/0.248, allocations: 100.9 kB / 0.7901 GB, free: 6.238 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.766e-05/0.2481, allocations: 8 kB / 0.7901 GB, free: 6.23 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.226e-05/0.2481, allocations: 11.98 kB / 0.7901 GB, free: 6.219 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.993e-05/0.2482, allocations: 19.86 kB / 0.7901 GB, free: 6.199 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.174e-05/0.2482, allocations: 4 kB / 0.7901 GB, free: 6.195 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 7.067e-05/0.2483, allocations: 99.27 kB / 0.7902 GB, free: 6.098 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2483, allocations: 0 / 0.7902 GB, free: 6.098 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003029/0.2486, allocations: 55.94 kB / 0.7902 GB, free: 6.043 MB / 0.6075 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition2,$whenCondition1,dayCon.sunRiseSet.nextSunRise,dayCon.sunRiseSet.nextSunSet,dayCon.not1.y) * Number of discrete states: 2 (dayCon.sunRiseSet.nextSunRise,dayCon.sunRiseSet.nextSunSet) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007117/0.2493, allocations: 0.7655 MB / 0.791 GB, free: 5.246 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002635/0.2496, allocations: 103.8 kB / 0.7911 GB, free: 5.145 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.2496, allocations: 0 / 0.7911 GB, free: 5.145 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001219/0.2498, allocations: 56.05 kB / 0.7911 GB, free: 5.09 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002562/0.25, allocations: 30.7 kB / 0.7912 GB, free: 5.062 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001936/0.252, allocations: 1.54 MB / 0.7927 GB, free: 3.43 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003513/0.2523, allocations: 0.7002 MB / 0.7934 GB, free: 2.703 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 8.199e-05/0.2524, allocations: 12.55 kB / 0.7934 GB, free: 2.691 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.365e-05/0.2525, allocations: 35.42 kB / 0.7934 GB, free: 2.656 MB / 0.6075 GB Notification: Performance of SimCode: time 8.92e-07/0.2525, allocations: 0 / 0.7934 GB, free: 2.656 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02039/0.2729, allocations: 2.929 MB / 0.7963 GB, free: 15.83 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.594/7.867, allocations: 13.27 kB / 0.7963 GB, free: 15.82 MB / 0.6231 GB (rm -f Buildings_8_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled.sim & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled_res.csv --start-time 0 --stop-time 604800 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Controls_OBC_OutdoorLights_Validation_DaylightControlled.fmu > Buildings_8_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled.pipe 2>&1)