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.001079/0.001079, allocations: 105.4 kB / 15.7 MB, free: 28 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.001229/0.001229, allocations: 194.3 kB / 16.64 MB, free: 6.48 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.401/1.401, allocations: 205.1 MB / 222.5 MB, free: 4.543 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.675/1.675, allocations: 292.3 MB / 0.549 GB, free: 12.78 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.001394/0.001394, allocations: 69.75 kB / 0.6718 GB, free: 26.18 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2188/0.2202, allocations: 114.6 MB / 0.7836 GB, free: 13.29 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled): time 0.001947/0.2222, allocations: 0.7439 MB / 0.7844 GB, free: 12.55 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001752/0.224, allocations: 1.558 MB / 0.7859 GB, free: 10.97 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.762e-05/0.2241, allocations: 4 kB / 0.7859 GB, free: 10.96 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 3.576e-05/0.2241, allocations: 7.875 kB / 0.7859 GB, free: 10.96 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.000152/0.2243, allocations: 19.86 kB / 0.7859 GB, free: 10.94 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003901/0.2247, allocations: 147.5 kB / 0.7861 GB, free: 10.79 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001455/0.2248, allocations: 131.6 kB / 0.7862 GB, free: 10.66 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001059/0.2249, allocations: 15.98 kB / 0.7862 GB, free: 10.65 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001142/0.2251, allocations: 51.83 kB / 0.7862 GB, free: 10.6 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000111/0.2252, allocations: 51.77 kB / 0.7863 GB, free: 10.55 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.485e-05/0.2252, allocations: 12 kB / 0.7863 GB, free: 10.54 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000192/0.2254, allocations: 99.92 kB / 0.7864 GB, free: 10.44 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 3.084e-05/0.2255, allocations: 23.97 kB / 0.7864 GB, free: 10.41 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 5.955e-05/0.2255, allocations: 55.72 kB / 0.7865 GB, free: 10.36 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002808/0.2258, allocations: 195.7 kB / 0.7867 GB, free: 10.17 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 6.923e-06/0.2258, allocations: 8 kB / 0.7867 GB, free: 10.16 MB / 0.6075 GB Notification: Performance of FrontEnd: time 9.11e-07/0.2258, allocations: 0 / 0.7867 GB, free: 10.16 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.42e-06/0.2258, allocations: 0 / 0.7867 GB, free: 10.16 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.0006882/0.2265, allocations: 419.1 kB / 0.7871 GB, free: 9.703 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.988e-05/0.2266, allocations: 8.031 kB / 0.7871 GB, free: 9.695 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.36e-05/0.2266, allocations: 46.73 kB / 0.7871 GB, free: 9.641 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.092e-05/0.2267, allocations: 8.844 kB / 0.7871 GB, free: 9.633 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001312/0.2268, allocations: 176.2 kB / 0.7873 GB, free: 9.422 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.345e-05/0.2269, allocations: 34.27 kB / 0.7873 GB, free: 9.383 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.074e-05/0.2269, allocations: 4.375 kB / 0.7873 GB, free: 9.379 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001859/0.2271, allocations: 105.9 kB / 0.7874 GB, free: 9.262 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.365e-06/0.2271, allocations: 0 / 0.7874 GB, free: 9.262 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.099e-05/0.2271, allocations: 4 kB / 0.7874 GB, free: 9.258 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.472e-06/0.2272, allocations: 4 kB / 0.7874 GB, free: 9.254 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001138/0.2273, allocations: 51.89 kB / 0.7875 GB, free: 9.203 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006284/0.2279, allocations: 0.5165 MB / 0.788 GB, free: 8.629 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000441/0.2284, allocations: 127.8 kB / 0.7881 GB, free: 8.477 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.24e-05/0.2285, allocations: 46.66 kB / 0.7882 GB, free: 8.422 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.033e-05/0.2285, allocations: 8 kB / 0.7882 GB, free: 8.414 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002249/0.2287, allocations: 117.8 kB / 0.7883 GB, free: 8.277 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=11): time 1.213e-06/0.2287, allocations: 0 / 0.7883 GB, free: 8.277 MB / 0.6075 GB Notification: Performance of matching and sorting (n=11): time 0.0003132/0.2291, allocations: 137.7 kB / 0.7884 GB, free: 8.137 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.355e-05/0.2291, allocations: 114.9 kB / 0.7885 GB, free: 8 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.26e-05/0.2292, allocations: 129.7 kB / 0.7887 GB, free: 7.863 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.149e-05/0.2293, allocations: 29.7 kB / 0.7887 GB, free: 7.828 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 5.698e-05/0.2293, allocations: 92.48 kB / 0.7888 GB, free: 7.734 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.968e-05/0.2293, allocations: 31.55 kB / 0.7888 GB, free: 7.703 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.746e-05/0.2294, allocations: 37.7 kB / 0.7888 GB, free: 7.66 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001095/0.2295, allocations: 322.8 kB / 0.7891 GB, free: 7.336 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.344e-05/0.2296, allocations: 40.05 kB / 0.7892 GB, free: 7.297 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.762e-05/0.2297, allocations: 43.92 kB / 0.7892 GB, free: 7.254 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001547/0.2299, allocations: 79.88 kB / 0.7893 GB, free: 7.176 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.2299, allocations: 0 / 0.7893 GB, free: 7.176 MB / 0.6075 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002443/0.2301, allocations: 125.6 kB / 0.7894 GB, free: 7.047 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.586e-05/0.2302, allocations: 4 kB / 0.7894 GB, free: 7.043 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.819e-06/0.2302, allocations: 0 / 0.7894 GB, free: 7.043 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.561e-05/0.2302, allocations: 192 / 0.7894 GB, free: 7.043 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001254/0.2303, allocations: 27.92 kB / 0.7894 GB, free: 7.016 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.255e-06/0.2303, allocations: 3.984 kB / 0.7895 GB, free: 7.012 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.236e-05/0.2304, allocations: 31.7 kB / 0.7895 GB, free: 6.98 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.334e-05/0.2305, allocations: 3.984 kB / 0.7895 GB, free: 6.977 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.0001074/0.2306, allocations: 121.8 kB / 0.7896 GB, free: 6.848 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.271e-05/0.2306, allocations: 7.906 kB / 0.7896 GB, free: 6.84 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002472/0.2309, allocations: 114 kB / 0.7897 GB, free: 6.723 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.801e-06/0.2309, allocations: 11.94 kB / 0.7897 GB, free: 6.711 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/0.2309, allocations: 0 / 0.7897 GB, free: 6.711 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.281e-06/0.2309, allocations: 3.938 kB / 0.7897 GB, free: 6.707 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002083/0.2311, allocations: 217.5 kB / 0.7899 GB, free: 6.445 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.422e-06/0.2311, allocations: 0 / 0.7899 GB, free: 6.445 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001082/0.2312, allocations: 23.92 kB / 0.79 GB, free: 6.422 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.68e-06/0.2313, allocations: 4 kB / 0.79 GB, free: 6.418 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.247e-05/0.2313, allocations: 0 / 0.79 GB, free: 6.418 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.356e-06/0.2313, allocations: 4 kB / 0.79 GB, free: 6.414 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.11e-07/0.2313, allocations: 0 / 0.79 GB, free: 6.414 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002402/0.2315, allocations: 178.6 kB / 0.7901 GB, free: 6.215 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 7.349e-05/0.2316, allocations: 100.9 kB / 0.7902 GB, free: 6.098 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.112e-05/0.2316, allocations: 11.92 kB / 0.7902 GB, free: 6.086 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.305e-05/0.2317, allocations: 4.062 kB / 0.7903 GB, free: 6.082 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.093e-05/0.2318, allocations: 23.92 kB / 0.7903 GB, free: 6.059 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.088e-05/0.2318, allocations: 8 kB / 0.7903 GB, free: 6.051 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 5.698e-05/0.2319, allocations: 99.27 kB / 0.7904 GB, free: 5.953 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2319, allocations: 0 / 0.7904 GB, free: 5.953 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002648/0.2321, allocations: 59.92 kB / 0.7904 GB, free: 5.895 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.0005906/0.2327, allocations: 0.7614 MB / 0.7912 GB, free: 5.102 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002247/0.233, allocations: 99.28 kB / 0.7913 GB, free: 5.008 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.233, allocations: 0 / 0.7913 GB, free: 5.008 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 8.977e-05/0.2331, allocations: 51.91 kB / 0.7913 GB, free: 4.957 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002143/0.2333, allocations: 20.08 kB / 0.7913 GB, free: 4.938 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00162/0.2349, allocations: 1.544 MB / 0.7929 GB, free: 3.293 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002289/0.2352, allocations: 0.7039 MB / 0.7935 GB, free: 2.562 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 7.862e-05/0.2353, allocations: 16.55 kB / 0.7936 GB, free: 2.547 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.695e-05/0.2353, allocations: 39.36 kB / 0.7936 GB, free: 2.508 MB / 0.6075 GB Notification: Performance of SimCode: time 2.8e-07/0.2353, allocations: 0 / 0.7936 GB, free: 2.508 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01954/0.2549, allocations: 2.949 MB / 0.7965 GB, free: 15.68 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.538/7.793, allocations: 3.125 kB / 0.7965 GB, free: 15.68 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)