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.1-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-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.001045/0.001045, allocations: 86.56 kB / 15.06 MB, free: 1.09 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.001354/0.001354, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.42/1.42, allocations: 223.2 MB / 240 MB, free: 5.281 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.49/2.49, allocations: 390.4 MB / 0.6655 GB, free: 2.863 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.000351/0.0003512, allocations: 8 kB / 0.8149 GB, free: 14.08 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7374/0.7378, allocations: 142.3 MB / 0.9538 GB, free: 8.098 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled): time 0.0008337/0.7387, allocations: 442.4 kB / 0.9543 GB, free: 7.766 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001525/0.7402, allocations: 1.474 MB / 0.9557 GB, free: 6.578 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.749e-05/0.7403, allocations: 1.5 kB / 0.9557 GB, free: 6.578 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.651e-05/0.7403, allocations: 0 / 0.9557 GB, free: 6.578 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.00017/0.7405, allocations: 18.84 kB / 0.9557 GB, free: 6.562 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003023/0.7408, allocations: 123.8 kB / 0.9558 GB, free: 6.477 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001239/0.7409, allocations: 102.8 kB / 0.9559 GB, free: 6.414 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.398e-05/0.741, allocations: 17.03 kB / 0.956 GB, free: 6.406 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001056/0.7411, allocations: 38.66 kB / 0.956 GB, free: 6.387 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 9.261e-05/0.7412, allocations: 43.11 kB / 0.956 GB, free: 6.359 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.844e-05/0.7413, allocations: 4.031 kB / 0.956 GB, free: 6.359 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001615/0.7414, allocations: 76.62 kB / 0.9561 GB, free: 6.328 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.525e-05/0.7415, allocations: 15.48 kB / 0.9561 GB, free: 6.316 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.582e-05/0.7415, allocations: 45.39 kB / 0.9562 GB, free: 6.273 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001808/0.7417, allocations: 147.5 kB / 0.9563 GB, free: 6.18 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.13e-06/0.7417, allocations: 0 / 0.9563 GB, free: 6.18 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.074e-06/0.7417, allocations: 0 / 0.9563 GB, free: 6.18 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.158e-06/0.7417, allocations: 0 / 0.9563 GB, free: 6.18 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.0005603/0.7423, allocations: 414 kB / 0.9567 GB, free: 5.77 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.513e-05/0.7423, allocations: 7.938 kB / 0.9567 GB, free: 5.77 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.022e-05/0.7424, allocations: 40.02 kB / 0.9568 GB, free: 5.723 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.867e-05/0.7424, allocations: 13.05 kB / 0.9568 GB, free: 5.715 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.467e-05/0.7425, allocations: 175.7 kB / 0.9569 GB, free: 5.508 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.904e-05/0.7426, allocations: 33.69 kB / 0.957 GB, free: 5.473 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.967e-05/0.7426, allocations: 9.219 kB / 0.957 GB, free: 5.469 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001524/0.7428, allocations: 99.45 kB / 0.9571 GB, free: 5.379 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.095e-06/0.7428, allocations: 0 / 0.9571 GB, free: 5.379 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.264e-05/0.7428, allocations: 4.844 kB / 0.9571 GB, free: 5.375 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.827e-06/0.7428, allocations: 5.922 kB / 0.9571 GB, free: 5.371 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.43e-05/0.7429, allocations: 45.25 kB / 0.9571 GB, free: 5.348 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005291/0.7435, allocations: 0.5188 MB / 0.9576 GB, free: 4.816 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004096/0.7439, allocations: 138.3 kB / 0.9578 GB, free: 4.703 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.492e-05/0.744, allocations: 45.11 kB / 0.9578 GB, free: 4.664 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.334e-05/0.744, allocations: 9.062 kB / 0.9578 GB, free: 4.656 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002146/0.7442, allocations: 111.8 kB / 0.9579 GB, free: 4.551 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=11): time 1.502e-06/0.7442, allocations: 0 / 0.9579 GB, free: 4.551 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11): time 0.0003092/0.7445, allocations: 140.6 kB / 0.9581 GB, free: 4.465 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.677e-05/0.7446, allocations: 106.1 kB / 0.9582 GB, free: 4.34 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.732e-05/0.7447, allocations: 133.9 kB / 0.9583 GB, free: 4.215 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.55e-05/0.7447, allocations: 30.73 kB / 0.9583 GB, free: 4.18 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.179e-05/0.7447, allocations: 94.8 kB / 0.9584 GB, free: 4.082 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.66e-05/0.7448, allocations: 28.27 kB / 0.9584 GB, free: 4.059 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.306e-06/0.7448, allocations: 1.031 kB / 0.9584 GB, free: 4.059 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.811e-05/0.7448, allocations: 321.1 kB / 0.9587 GB, free: 3.738 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.411e-05/0.7449, allocations: 36.73 kB / 0.9588 GB, free: 3.719 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.311e-05/0.745, allocations: 37.17 kB / 0.9588 GB, free: 3.703 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.611e-05/0.7451, allocations: 38.58 kB / 0.9588 GB, free: 3.684 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.7451, allocations: 0 / 0.9588 GB, free: 3.684 MB / 0.7169 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002188/0.7453, allocations: 147.1 kB / 0.959 GB, free: 3.59 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.51e-05/0.7453, allocations: 5.781 kB / 0.959 GB, free: 3.59 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.119e-06/0.7454, allocations: 0 / 0.959 GB, free: 3.59 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.303e-05/0.7454, allocations: 1.969 kB / 0.959 GB, free: 3.59 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000113/0.7455, allocations: 19.23 kB / 0.959 GB, free: 3.586 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.32e-06/0.7455, allocations: 256 / 0.959 GB, free: 3.586 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.999e-05/0.7456, allocations: 17.52 kB / 0.959 GB, free: 3.574 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.239e-05/0.7456, allocations: 11.31 kB / 0.959 GB, free: 3.566 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 ($whenCondition2,$whenCondition1,$PRE.dayCon.sunRiseSet.nextSunRise,dayCon.sunRiseSet.nextSunRise,$PRE.dayCon.sunRiseSet.nextSunSet,dayCon.sunRiseSet.nextSunSet,dayCon.not1.y) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.702e-05/0.7457, allocations: 130.6 kB / 0.9592 GB, free: 3.438 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.933e-05/0.7457, allocations: 16.09 kB / 0.9592 GB, free: 3.426 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002078/0.7459, allocations: 109.5 kB / 0.9593 GB, free: 3.348 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.799e-06/0.7459, allocations: 3.344 kB / 0.9593 GB, free: 3.348 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.746, allocations: 0 / 0.9593 GB, free: 3.348 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.601e-06/0.746, allocations: 5.234 kB / 0.9593 GB, free: 3.344 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001403/0.7461, allocations: 225.5 kB / 0.9595 GB, free: 3.098 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.414e-06/0.7461, allocations: 1.25 kB / 0.9595 GB, free: 3.098 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.847e-05/0.7462, allocations: 15.62 kB / 0.9595 GB, free: 3.098 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.336e-06/0.7462, allocations: 1.094 kB / 0.9595 GB, free: 3.098 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.657e-05/0.7462, allocations: 14.19 kB / 0.9595 GB, free: 3.086 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.716e-06/0.7463, allocations: 1.219 kB / 0.9595 GB, free: 3.086 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.7463, allocations: 1.469 kB / 0.9595 GB, free: 3.086 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002019/0.7465, allocations: 170.9 kB / 0.9597 GB, free: 2.953 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 4.656e-05/0.7465, allocations: 104.2 kB / 0.9598 GB, free: 2.84 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.297e-05/0.7465, allocations: 1.781 kB / 0.9598 GB, free: 2.84 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.343e-05/0.7466, allocations: 13.33 kB / 0.9598 GB, free: 2.832 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.456e-05/0.7467, allocations: 15.28 kB / 0.9598 GB, free: 2.824 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.174e-05/0.7467, allocations: 8.406 kB / 0.9598 GB, free: 2.82 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.091e-05/0.7467, allocations: 100.4 kB / 0.9599 GB, free: 2.734 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7467, allocations: 4 kB / 0.9599 GB, free: 2.73 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002723/0.747, allocations: 54.78 kB / 0.96 GB, free: 2.715 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004517/0.7475, allocations: 0.7558 MB / 0.9607 GB, free: 2.027 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002035/0.7477, allocations: 101.5 kB / 0.9608 GB, free: 1.98 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.7477, allocations: 1.375 kB / 0.9608 GB, free: 1.98 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 8.397e-05/0.7478, allocations: 54.11 kB / 0.9609 GB, free: 1.957 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002027/0.748, allocations: 12.08 kB / 0.9609 GB, free: 1.949 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009683/0.749, allocations: 0.6923 MB / 0.9616 GB, free: 1.383 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001547/0.7491, allocations: 0.7004 MB / 0.9622 GB, free: 0.6758 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 8.157e-05/0.7492, allocations: 16.58 kB / 0.9623 GB, free: 0.668 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.892e-05/0.7493, allocations: 31.61 kB / 0.9623 GB, free: 0.6445 MB / 0.7169 GB Notification: Performance of SimCode: time 2.1e-07/0.7493, allocations: 0 / 0.9623 GB, free: 0.6445 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01284/0.7622, allocations: 2.763 MB / 0.965 GB, free: 15.35 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001997/0.7624, allocations: 213 kB / 0.9652 GB, free: 15.1 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.734/2.496, allocations: 0 / 0.9652 GB, free: 15.1 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/linux/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) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled_res.mat does not exist to compare? outputFormat=mat