Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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_10_Buildings_Controls_OBC_OutdoorLights_Validation_DaylightControlled",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled,fileNamePrefix="Buildings_10_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.001457/0.001457, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.00171/0.00171, allocations: 193 kB / 16.14 MB, free: 6.711 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.262/1.262, allocations: 222.9 MB / 239.8 MB, free: 4.633 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.362/2.362, allocations: 437 MB / 0.7099 GB, free: 5.336 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001358/0.001358, allocations: 71.89 kB / 0.8687 GB, free: 5.129 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5766/0.5779, allocations: 151.6 MB / 1.017 GB, free: 2.832 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled): time 0.001663/0.5796, allocations: 0.7921 MB / 1.017 GB, free: 2.039 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001579/0.5812, allocations: 1.544 MB / 1.019 GB, free: 488 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.488e-05/0.5813, allocations: 0 / 1.019 GB, free: 488 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 3.227e-05/0.5813, allocations: 7.922 kB / 1.019 GB, free: 480 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.0001231/0.5814, allocations: 11.92 kB / 1.019 GB, free: 468 kB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002768/0.5817, allocations: 127.7 kB / 1.019 GB, free: 340 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001169/0.5819, allocations: 115.6 kB / 1.019 GB, free: 224 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 8.614e-05/0.5819, allocations: 31.95 kB / 1.019 GB, free: 192 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 8.676e-05/0.582, allocations: 35.91 kB / 1.019 GB, free: 156 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 8.193e-05/0.5821, allocations: 51.75 kB / 1.019 GB, free: 104 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.803e-05/0.5822, allocations: 4 kB / 1.019 GB, free: 100 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001498/0.5823, allocations: 71.95 kB / 1.019 GB, free: 28 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 2.748e-05/0.5823, allocations: 19.91 kB / 1.019 GB, free: 8 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 6.187e-05/0.5824, allocations: 43.91 kB / 1.019 GB, free: 15.96 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002329/0.5827, allocations: 185.7 kB / 1.02 GB, free: 15.79 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.015e-06/0.5827, allocations: 4 kB / 1.02 GB, free: 15.78 MB / 0.7794 GB Notification: Performance of FrontEnd: time 8.01e-07/0.5827, allocations: 0 / 1.02 GB, free: 15.78 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 3.206e-06/0.5827, allocations: 0 / 1.02 GB, free: 15.78 MB / 0.7794 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.0005722/0.5833, allocations: 423.2 kB / 1.02 GB, free: 15.32 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.074e-05/0.5833, allocations: 8.031 kB / 1.02 GB, free: 15.31 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.345e-05/0.5833, allocations: 42.73 kB / 1.02 GB, free: 15.26 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.49e-05/0.5834, allocations: 16.78 kB / 1.02 GB, free: 15.25 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001019/0.5835, allocations: 176.2 kB / 1.02 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.672e-05/0.5835, allocations: 34.27 kB / 1.02 GB, free: 15 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.93e-05/0.5836, allocations: 8.375 kB / 1.02 GB, free: 14.99 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001592/0.5837, allocations: 96.16 kB / 1.02 GB, free: 14.88 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.881e-06/0.5837, allocations: 7.938 kB / 1.02 GB, free: 14.87 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.213e-05/0.5838, allocations: 4 kB / 1.02 GB, free: 14.87 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.446e-06/0.5838, allocations: 4 kB / 1.02 GB, free: 14.86 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.603e-05/0.5839, allocations: 51.89 kB / 1.021 GB, free: 14.81 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005237/0.5844, allocations: 0.5126 MB / 1.021 GB, free: 14.24 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000424/0.5848, allocations: 135.8 kB / 1.021 GB, free: 14.08 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.627e-05/0.5849, allocations: 46.66 kB / 1.021 GB, free: 14.03 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.723e-05/0.5849, allocations: 4 kB / 1.021 GB, free: 14.02 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000185/0.5851, allocations: 113.9 kB / 1.021 GB, free: 13.89 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=11): time 1.313e-06/0.5851, allocations: 0 / 1.021 GB, free: 13.89 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11): time 0.0002891/0.5854, allocations: 141.5 kB / 1.021 GB, free: 13.75 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.443e-05/0.5855, allocations: 106.9 kB / 1.022 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.99e-05/0.5856, allocations: 133.7 kB / 1.022 GB, free: 13.48 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.032e-05/0.5856, allocations: 33.7 kB / 1.022 GB, free: 13.44 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.443e-05/0.5857, allocations: 92.39 kB / 1.022 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.529e-05/0.5857, allocations: 31.55 kB / 1.022 GB, free: 13.31 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.484e-05/0.5858, allocations: 33.7 kB / 1.022 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.703e-05/0.5859, allocations: 326.8 kB / 1.022 GB, free: 12.94 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.328e-05/0.586, allocations: 35.98 kB / 1.022 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.295e-05/0.5861, allocations: 39.92 kB / 1.022 GB, free: 12.87 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001567/0.5862, allocations: 74.81 kB / 1.022 GB, free: 12.79 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.5862, allocations: 7.938 kB / 1.022 GB, free: 12.79 MB / 0.7794 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002378/0.5865, allocations: 129.8 kB / 1.022 GB, free: 12.65 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.19e-05/0.5865, allocations: 8 kB / 1.022 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.957e-06/0.5865, allocations: 0 / 1.022 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.598e-06/0.5865, allocations: 4 kB / 1.022 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001191/0.5866, allocations: 23.92 kB / 1.022 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.268e-06/0.5867, allocations: 4 kB / 1.022 GB, free: 12.61 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.599e-05/0.5867, allocations: 15.92 kB / 1.022 GB, free: 12.6 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.162e-05/0.5868, allocations: 4 kB / 1.022 GB, free: 12.59 MB / 0.7794 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.25e-05/0.5869, allocations: 121.2 kB / 1.023 GB, free: 12.47 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.117e-05/0.5869, allocations: 8.094 kB / 1.023 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002111/0.5871, allocations: 121.9 kB / 1.023 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.435e-06/0.5871, allocations: 0 / 1.023 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.236e-06/0.5871, allocations: 0 / 1.023 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.252e-06/0.5871, allocations: 7.938 kB / 1.023 GB, free: 12.33 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001701/0.5873, allocations: 221.4 kB / 1.023 GB, free: 12.06 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.352e-06/0.5873, allocations: 3.938 kB / 1.023 GB, free: 12.06 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.339e-05/0.5874, allocations: 23.92 kB / 1.023 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.904e-06/0.5874, allocations: 0 / 1.023 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.38e-05/0.5874, allocations: 8 kB / 1.023 GB, free: 12.03 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/0.5874, allocations: 0 / 1.023 GB, free: 12.03 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.5874, allocations: 4 kB / 1.023 GB, free: 12.02 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002297/0.5877, allocations: 180.4 kB / 1.023 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.795e-05/0.5877, allocations: 93 kB / 1.023 GB, free: 11.71 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.514e-05/0.5878, allocations: 7.984 kB / 1.023 GB, free: 11.71 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.986e-05/0.5879, allocations: 8 kB / 1.023 GB, free: 11.7 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.233e-05/0.5879, allocations: 23.86 kB / 1.023 GB, free: 11.68 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.043e-05/0.5879, allocations: 4 kB / 1.023 GB, free: 11.67 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.613e-05/0.588, allocations: 95.27 kB / 1.023 GB, free: 11.58 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.588, allocations: 0 / 1.023 GB, free: 11.58 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.000252/0.5882, allocations: 63.92 kB / 1.023 GB, free: 11.52 MB / 0.7794 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.0005384/0.5888, allocations: 0.7661 MB / 1.024 GB, free: 10.71 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.000208/0.589, allocations: 96.95 kB / 1.024 GB, free: 10.62 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.363e-06/0.589, allocations: 3.938 kB / 1.024 GB, free: 10.62 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 9.079e-05/0.5891, allocations: 59.91 kB / 1.024 GB, free: 10.56 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001832/0.5893, allocations: 11.94 kB / 1.024 GB, free: 10.55 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001477/0.5908, allocations: 1.554 MB / 1.026 GB, free: 8.902 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002147/0.591, allocations: 0.7044 MB / 1.027 GB, free: 8.172 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 7.311e-05/0.5911, allocations: 20.3 kB / 1.027 GB, free: 8.156 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.217e-05/0.5912, allocations: 31.36 kB / 1.027 GB, free: 8.125 MB / 0.7794 GB Notification: Performance of SimCode: time 1.9e-07/0.5912, allocations: 0 / 1.027 GB, free: 8.125 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01133/0.6025, allocations: 2.759 MB / 1.029 GB, free: 5.512 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002162/0.6028, allocations: 216.8 kB / 1.03 GB, free: 5.262 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.569/2.172, allocations: 2.625 kB / 1.03 GB, free: 5.262 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled_res.mat --tempDir=temp_Buildings_10_Buildings_Controls_OBC_OutdoorLights_Validation_DaylightControlled_fmu --startTime=0 --stopTime=604800 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Controls_OBC_OutdoorLights_Validation_DaylightControlled.fmu > Buildings_10_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled.pipe 2>&1)