Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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(Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_OutdoorLights_Validation_DaylightControlled",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled,fileNamePrefix="Buildings_latest_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.004405/0.004406, allocations: 98.42 kB / 15.73 MB, free: 5.605 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.001317/0.001317, allocations: 192.4 kB / 16.67 MB, free: 5.527 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.323/1.323, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.644/2.644, allocations: 482.6 MB / 0.7551 GB, free: 6.637 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001829/0.001829, allocations: 63.25 kB / 1.083 GB, free: 13.81 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2752/0.2771, allocations: 162.3 MB / 1.242 GB, free: 8.953 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled): time 0.001866/0.279, allocations: 0.7334 MB / 1.243 GB, free: 8.223 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001782/0.2808, allocations: 1.514 MB / 1.244 GB, free: 6.691 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.466e-05/0.2808, allocations: 0 / 1.244 GB, free: 6.691 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 2.912e-05/0.2809, allocations: 11.88 kB / 1.244 GB, free: 6.68 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0001421/0.281, allocations: 19.86 kB / 1.244 GB, free: 6.66 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003542/0.2814, allocations: 155.5 kB / 1.244 GB, free: 6.508 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001552/0.2815, allocations: 123.6 kB / 1.244 GB, free: 6.387 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 9.105e-05/0.2816, allocations: 19.97 kB / 1.244 GB, free: 6.367 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001043/0.2818, allocations: 47.84 kB / 1.244 GB, free: 6.32 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001018/0.2819, allocations: 51.77 kB / 1.244 GB, free: 6.27 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.45e-05/0.2819, allocations: 12 kB / 1.244 GB, free: 6.258 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002151/0.2821, allocations: 107.9 kB / 1.245 GB, free: 6.152 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 3.278e-05/0.2822, allocations: 19.98 kB / 1.245 GB, free: 6.133 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 6.066e-05/0.2822, allocations: 47.78 kB / 1.245 GB, free: 6.086 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002893/0.2825, allocations: 199.6 kB / 1.245 GB, free: 5.891 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.2825, allocations: 0 / 1.245 GB, free: 5.891 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.503e-06/0.2825, allocations: 0 / 1.245 GB, free: 5.891 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 4.649e-06/0.2825, allocations: 0 / 1.245 GB, free: 5.891 MB / 0.9669 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.0006787/0.2832, allocations: 434.8 kB / 1.245 GB, free: 5.418 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.387e-05/0.2833, allocations: 12.03 kB / 1.245 GB, free: 5.406 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.995e-05/0.2833, allocations: 34.75 kB / 1.245 GB, free: 5.363 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.901e-05/0.2834, allocations: 12.89 kB / 1.245 GB, free: 5.352 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001316/0.2835, allocations: 180.2 kB / 1.245 GB, free: 5.137 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.408e-05/0.2836, allocations: 34.27 kB / 1.245 GB, free: 5.098 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.547e-05/0.2836, allocations: 4.375 kB / 1.245 GB, free: 5.094 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001746/0.2838, allocations: 112.2 kB / 1.246 GB, free: 4.969 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.394e-06/0.2838, allocations: 0 / 1.246 GB, free: 4.969 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.033e-05/0.2838, allocations: 0 / 1.246 GB, free: 4.969 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.732e-06/0.2838, allocations: 7.938 kB / 1.246 GB, free: 4.961 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.761e-05/0.2839, allocations: 43.91 kB / 1.246 GB, free: 4.918 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006054/0.2845, allocations: 0.5205 MB / 1.246 GB, free: 4.34 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004373/0.285, allocations: 131.7 kB / 1.246 GB, free: 4.184 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.447e-05/0.285, allocations: 50.66 kB / 1.246 GB, free: 4.125 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.88e-05/0.2851, allocations: 0 / 1.246 GB, free: 4.125 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000197/0.2853, allocations: 117.8 kB / 1.246 GB, free: 3.988 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=11): time 1.323e-06/0.2853, allocations: 0 / 1.246 GB, free: 3.988 MB / 0.9669 GB Notification: Performance of matching and sorting (n=11): time 0.0003028/0.2856, allocations: 145.5 kB / 1.247 GB, free: 3.84 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.571e-05/0.2857, allocations: 110.8 kB / 1.247 GB, free: 3.707 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.767e-05/0.2858, allocations: 117.8 kB / 1.247 GB, free: 3.582 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.311e-05/0.2858, allocations: 29.7 kB / 1.247 GB, free: 3.547 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 5.859e-05/0.2859, allocations: 96.44 kB / 1.247 GB, free: 3.445 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.972e-05/0.2859, allocations: 31.73 kB / 1.247 GB, free: 3.414 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.433e-05/0.286, allocations: 41.69 kB / 1.247 GB, free: 3.367 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001207/0.2861, allocations: 318.9 kB / 1.247 GB, free: 3.047 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.921e-05/0.2862, allocations: 39.98 kB / 1.247 GB, free: 3.008 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.509e-05/0.2863, allocations: 48.09 kB / 1.247 GB, free: 2.961 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001648/0.2865, allocations: 74.67 kB / 1.247 GB, free: 2.887 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.567e-06/0.2865, allocations: 4 kB / 1.247 GB, free: 2.883 MB / 0.9669 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002349/0.2867, allocations: 121.6 kB / 1.248 GB, free: 2.758 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.159e-05/0.2867, allocations: 4 kB / 1.248 GB, free: 2.754 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.761e-06/0.2867, allocations: 3.984 kB / 1.248 GB, free: 2.75 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.858e-06/0.2868, allocations: 0 / 1.248 GB, free: 2.75 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001163/0.2869, allocations: 27.92 kB / 1.248 GB, free: 2.723 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.678e-06/0.2869, allocations: 0 / 1.248 GB, free: 2.723 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.455e-05/0.287, allocations: 19.83 kB / 1.248 GB, free: 2.703 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.054e-05/0.287, allocations: 4 kB / 1.248 GB, free: 2.699 MB / 0.9669 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 9.612e-05/0.2871, allocations: 126 kB / 1.248 GB, free: 2.566 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.343e-05/0.2871, allocations: 7.953 kB / 1.248 GB, free: 2.559 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002245/0.2874, allocations: 121.9 kB / 1.248 GB, free: 2.43 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.983e-06/0.2874, allocations: 7.984 kB / 1.248 GB, free: 2.422 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.566e-06/0.2874, allocations: 0 / 1.248 GB, free: 2.422 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.811e-06/0.2874, allocations: 3.938 kB / 1.248 GB, free: 2.418 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001948/0.2876, allocations: 217.5 kB / 1.248 GB, free: 2.156 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.352e-06/0.2876, allocations: 0 / 1.248 GB, free: 2.156 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.059e-05/0.2877, allocations: 27.92 kB / 1.248 GB, free: 2.129 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.924e-06/0.2877, allocations: 0 / 1.248 GB, free: 2.129 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.097e-05/0.2877, allocations: 4 kB / 1.248 GB, free: 2.125 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.2877, allocations: 0 / 1.248 GB, free: 2.125 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.008e-06/0.2877, allocations: 8 kB / 1.248 GB, free: 2.117 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002459/0.288, allocations: 172.7 kB / 1.248 GB, free: 1.926 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 7.653e-05/0.2881, allocations: 104.9 kB / 1.248 GB, free: 1.805 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.243e-05/0.2881, allocations: 7.938 kB / 1.248 GB, free: 1.797 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.49e-05/0.2882, allocations: 7.984 kB / 1.248 GB, free: 1.789 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.785e-05/0.2882, allocations: 23.92 kB / 1.248 GB, free: 1.766 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.236e-05/0.2883, allocations: 4 kB / 1.248 GB, free: 1.762 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 6.343e-05/0.2883, allocations: 102.5 kB / 1.249 GB, free: 1.664 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2883, allocations: 0 / 1.249 GB, free: 1.664 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002469/0.2886, allocations: 59.77 kB / 1.249 GB, free: 1.605 MB / 0.9669 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.0006429/0.2892, allocations: 0.7628 MB / 1.249 GB, free: 0.8086 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.000218/0.2895, allocations: 95.89 kB / 1.249 GB, free: 0.7148 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.2895, allocations: 0 / 1.249 GB, free: 0.7148 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 9.072e-05/0.2896, allocations: 51.92 kB / 1.249 GB, free: 0.6641 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001883/0.2898, allocations: 23.19 kB / 1.249 GB, free: 0.6445 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001655/0.2914, allocations: 1.549 MB / 1.251 GB, free: 15 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00028/0.2917, allocations: 0.704 MB / 1.252 GB, free: 14.27 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 6.354e-05/0.2918, allocations: 20.62 kB / 1.252 GB, free: 14.25 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.553e-05/0.2919, allocations: 35.42 kB / 1.252 GB, free: 14.21 MB / 0.9825 GB Notification: Performance of SimCode: time 2.3e-07/0.2919, allocations: 0 / 1.252 GB, free: 14.21 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9464/1.238, allocations: 2.984 MB / 1.255 GB, free: 11.38 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.59/12.83, allocations: 6.672 kB / 1.255 GB, free: 11.38 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_OutdoorLights_Validation_DaylightControlled_fmu --startTime=0 --stopTime=604800 --timeout=400 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_OutdoorLights_Validation_DaylightControlled.fmu > Buildings_latest_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled.pipe 2>&1)