Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/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_9_Buildings_Controls_OBC_OutdoorLights_Validation_DaylightControlled",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled,fileNamePrefix="Buildings_9_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.0007667/0.0007667, allocations: 91.45 kB / 15.36 MB, free: 0.7383 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.004874/0.004874, allocations: 171.8 kB / 16.26 MB, free: 6.613 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.365/1.365, allocations: 223.3 MB / 240.3 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.292/2.292, allocations: 390.9 MB / 0.6664 GB, free: 2.355 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003304/0.0003304, allocations: 8 kB / 0.8161 GB, free: 13.16 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7374/0.7377, allocations: 142.4 MB / 0.9552 GB, free: 7.688 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled): time 0.001015/0.7388, allocations: 456.9 kB / 0.9556 GB, free: 7.344 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001659/0.7405, allocations: 1.517 MB / 0.9571 GB, free: 6.129 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.106e-05/0.7405, allocations: 1.125 kB / 0.9571 GB, free: 6.129 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.212e-05/0.7406, allocations: 3.938 kB / 0.9571 GB, free: 6.125 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001651/0.7407, allocations: 18.72 kB / 0.9571 GB, free: 6.109 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003067/0.741, allocations: 128.1 kB / 0.9572 GB, free: 6.02 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001378/0.7412, allocations: 117.7 kB / 0.9573 GB, free: 5.949 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001032/0.7413, allocations: 12.22 kB / 0.9574 GB, free: 5.945 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000114/0.7414, allocations: 43.28 kB / 0.9574 GB, free: 5.922 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001017/0.7415, allocations: 39.77 kB / 0.9574 GB, free: 5.898 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.942e-05/0.7416, allocations: 8.25 kB / 0.9574 GB, free: 5.895 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001634/0.7417, allocations: 83.73 kB / 0.9575 GB, free: 5.855 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.512e-05/0.7418, allocations: 13.36 kB / 0.9575 GB, free: 5.848 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.033e-05/0.7418, allocations: 69 kB / 0.9576 GB, free: 5.785 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.00024/0.7421, allocations: 184.2 kB / 0.9578 GB, free: 5.668 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.7421, allocations: 0 / 0.9578 GB, free: 5.668 MB / 0.7169 GB Notification: Performance of FrontEnd: time 3.417e-06/0.7421, allocations: 0 / 0.9578 GB, free: 5.668 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.539e-06/0.7421, allocations: 5.094 kB / 0.9578 GB, free: 5.664 MB / 0.7169 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.0005832/0.7427, allocations: 415.7 kB / 0.9582 GB, free: 5.25 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.472e-05/0.7427, allocations: 8.656 kB / 0.9582 GB, free: 5.25 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.17e-05/0.7428, allocations: 40.86 kB / 0.9582 GB, free: 5.203 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.468e-05/0.7428, allocations: 9.219 kB / 0.9582 GB, free: 5.199 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.461e-05/0.7429, allocations: 173.6 kB / 0.9584 GB, free: 4.996 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.437e-05/0.743, allocations: 38.62 kB / 0.9584 GB, free: 4.957 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.066e-05/0.743, allocations: 9.844 kB / 0.9585 GB, free: 4.953 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001605/0.7432, allocations: 103.7 kB / 0.9585 GB, free: 4.859 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.596e-06/0.7432, allocations: 0 / 0.9585 GB, free: 4.859 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.346e-05/0.7432, allocations: 1.438 kB / 0.9586 GB, free: 4.859 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.172e-06/0.7432, allocations: 1.25 kB / 0.9586 GB, free: 4.859 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.732e-05/0.7434, allocations: 49.8 kB / 0.9586 GB, free: 4.832 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005194/0.7439, allocations: 0.5226 MB / 0.9591 GB, free: 4.297 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004185/0.7443, allocations: 137.6 kB / 0.9592 GB, free: 4.184 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.427e-05/0.7444, allocations: 43.08 kB / 0.9593 GB, free: 4.148 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.134e-05/0.7444, allocations: 9.547 kB / 0.9593 GB, free: 4.141 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001982/0.7446, allocations: 110.6 kB / 0.9594 GB, free: 4.035 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=11): time 1.373e-06/0.7446, allocations: 0 / 0.9594 GB, free: 4.035 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11): time 0.0002986/0.7449, allocations: 142.9 kB / 0.9595 GB, free: 3.949 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.703e-05/0.745, allocations: 108.6 kB / 0.9596 GB, free: 3.82 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.213e-05/0.7451, allocations: 130.1 kB / 0.9598 GB, free: 3.699 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.597e-05/0.7451, allocations: 36.7 kB / 0.9598 GB, free: 3.66 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.764e-05/0.7451, allocations: 90.11 kB / 0.9599 GB, free: 3.566 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.688e-05/0.7452, allocations: 35.14 kB / 0.9599 GB, free: 3.535 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.017e-05/0.7452, allocations: 23.17 kB / 0.9599 GB, free: 3.512 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.957e-05/0.7452, allocations: 320.6 kB / 0.9602 GB, free: 3.191 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.531e-05/0.7453, allocations: 39.09 kB / 0.9603 GB, free: 3.172 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.827e-05/0.7454, allocations: 41.34 kB / 0.9603 GB, free: 3.152 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000158/0.7456, allocations: 72.59 kB / 0.9604 GB, free: 3.113 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.7456, allocations: 5.375 kB / 0.9604 GB, free: 3.109 MB / 0.7169 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000228/0.7458, allocations: 129.9 kB / 0.9605 GB, free: 3.031 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.792e-05/0.7459, allocations: 9.484 kB / 0.9605 GB, free: 3.027 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.549e-06/0.7459, allocations: 0 / 0.9605 GB, free: 3.027 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.457e-05/0.7459, allocations: 1.375 kB / 0.9605 GB, free: 3.027 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001125/0.746, allocations: 17.73 kB / 0.9605 GB, free: 3.023 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.24e-06/0.746, allocations: 5.312 kB / 0.9605 GB, free: 3.02 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.558e-05/0.7461, allocations: 14.81 kB / 0.9606 GB, free: 3.012 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.376e-05/0.7461, allocations: 6.734 kB / 0.9606 GB, free: 3.008 MB / 0.7169 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 8.605e-05/0.7462, allocations: 128.9 kB / 0.9607 GB, free: 2.879 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.814e-05/0.7462, allocations: 8.031 kB / 0.9607 GB, free: 2.875 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002169/0.7465, allocations: 117.6 kB / 0.9608 GB, free: 2.789 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.419e-06/0.7465, allocations: 2.984 kB / 0.9608 GB, free: 2.789 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.312e-06/0.7465, allocations: 5.375 kB / 0.9608 GB, free: 2.785 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.111e-06/0.7465, allocations: 7.922 kB / 0.9608 GB, free: 2.777 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000154/0.7467, allocations: 218.3 kB / 0.961 GB, free: 2.539 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.354e-06/0.7467, allocations: 1.375 kB / 0.961 GB, free: 2.539 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.82e-05/0.7468, allocations: 23.11 kB / 0.9611 GB, free: 2.531 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.885e-06/0.7468, allocations: 1.375 kB / 0.9611 GB, free: 2.531 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.19e-05/0.7468, allocations: 1.375 kB / 0.9611 GB, free: 2.531 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.414e-06/0.7468, allocations: 5.312 kB / 0.9611 GB, free: 2.527 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.7468, allocations: 1.375 kB / 0.9611 GB, free: 2.527 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002228/0.747, allocations: 184.4 kB / 0.9612 GB, free: 2.383 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 4.901e-05/0.7471, allocations: 98.41 kB / 0.9613 GB, free: 2.273 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.353e-05/0.7471, allocations: 6.75 kB / 0.9613 GB, free: 2.27 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.706e-05/0.7472, allocations: 9.484 kB / 0.9614 GB, free: 2.266 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.124e-05/0.7473, allocations: 18.8 kB / 0.9614 GB, free: 2.254 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.1e-05/0.7473, allocations: 4.125 kB / 0.9614 GB, free: 2.254 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.406e-05/0.7473, allocations: 102.3 kB / 0.9615 GB, free: 2.164 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7473, allocations: 1.375 kB / 0.9615 GB, free: 2.164 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002647/0.7476, allocations: 58.33 kB / 0.9615 GB, free: 2.145 MB / 0.7169 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.0004794/0.7481, allocations: 0.758 MB / 0.9623 GB, free: 1.457 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002095/0.7483, allocations: 94.09 kB / 0.9624 GB, free: 1.418 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.7483, allocations: 1.156 kB / 0.9624 GB, free: 1.418 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 8.777e-05/0.7484, allocations: 50.14 kB / 0.9624 GB, free: 1.398 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002092/0.7486, allocations: 18.23 kB / 0.9624 GB, free: 1.387 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001401/0.75, allocations: 1.576 MB / 0.964 GB, free: 15.97 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002564/0.7503, allocations: 0.7009 MB / 0.9647 GB, free: 15.26 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 6.952e-05/0.7504, allocations: 16.11 kB / 0.9647 GB, free: 15.25 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.692e-05/0.7504, allocations: 30.98 kB / 0.9647 GB, free: 15.23 MB / 0.7325 GB Notification: Performance of SimCode: time 2.41e-07/0.7505, allocations: 0.75 kB / 0.9647 GB, free: 15.23 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01385/0.7643, allocations: 2.674 MB / 0.9673 GB, free: 13.97 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002909/0.7646, allocations: 214.1 kB / 0.9675 GB, free: 13.72 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.686/2.451, allocations: 5.938 kB / 0.9675 GB, free: 13.71 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_OutdoorLights_Validation_DaylightControlled_fmu --startTime=0 --stopTime=604800 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_OutdoorLights_Validation_DaylightControlled.fmu > Buildings_9_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled.pipe 2>&1)