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.001215/0.001215, allocations: 99 kB / 15.05 MB, free: 1.105 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.001444/0.001444, allocations: 177.3 kB / 15.94 MB, free: 228 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.497/1.497, allocations: 223.2 MB / 239.9 MB, free: 5.441 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.501/2.501, allocations: 390.3 MB / 0.6653 GB, free: 2.992 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004007/0.000401, allocations: 8 kB / 0.8146 GB, free: 14.21 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7426/0.743, allocations: 142.3 MB / 0.9536 GB, free: 8.117 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.OutdoorLights.Validation.DaylightControlled): time 0.0007803/0.7438, allocations: 440.7 kB / 0.954 GB, free: 7.789 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.00155/0.7454, allocations: 1.465 MB / 0.9554 GB, free: 6.621 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.726e-05/0.7454, allocations: 0 / 0.9554 GB, free: 6.621 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.525e-05/0.7455, allocations: 0 / 0.9554 GB, free: 6.621 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001616/0.7456, allocations: 24.45 kB / 0.9555 GB, free: 6.602 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000311/0.7459, allocations: 127.9 kB / 0.9556 GB, free: 6.512 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001146/0.7461, allocations: 69.27 kB / 0.9557 GB, free: 6.465 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001084/0.7462, allocations: 15.08 kB / 0.9557 GB, free: 6.457 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001396/0.7463, allocations: 41.22 kB / 0.9557 GB, free: 6.438 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001039/0.7464, allocations: 38.92 kB / 0.9557 GB, free: 6.414 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.12e-05/0.7465, allocations: 7.891 kB / 0.9557 GB, free: 6.41 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001686/0.7466, allocations: 70.86 kB / 0.9558 GB, free: 6.387 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.248e-05/0.7467, allocations: 15.83 kB / 0.9558 GB, free: 6.375 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.823e-05/0.7467, allocations: 41.27 kB / 0.9559 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001922/0.7469, allocations: 143 kB / 0.956 GB, free: 6.246 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.375e-06/0.7469, allocations: 3.938 kB / 0.956 GB, free: 6.242 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.683e-06/0.7469, allocations: 3.938 kB / 0.956 GB, free: 6.238 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.609e-06/0.7469, allocations: 0 / 0.956 GB, free: 6.238 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.0005937/0.7475, allocations: 416.5 kB / 0.9564 GB, free: 5.824 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.987e-05/0.7476, allocations: 9.25 kB / 0.9564 GB, free: 5.824 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.954e-05/0.7476, allocations: 41.39 kB / 0.9565 GB, free: 5.777 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.448e-05/0.7477, allocations: 11.8 kB / 0.9565 GB, free: 5.77 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.915e-05/0.7478, allocations: 175.7 kB / 0.9566 GB, free: 5.562 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.854e-05/0.7478, allocations: 39.12 kB / 0.9567 GB, free: 5.523 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.724e-05/0.7479, allocations: 4.438 kB / 0.9567 GB, free: 5.523 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001524/0.748, allocations: 97.77 kB / 0.9568 GB, free: 5.438 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.094e-06/0.748, allocations: 4 kB / 0.9568 GB, free: 5.434 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.404e-05/0.7481, allocations: 5.125 kB / 0.9568 GB, free: 5.43 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.883e-06/0.7481, allocations: 5.141 kB / 0.9568 GB, free: 5.426 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.261e-05/0.7482, allocations: 49.58 kB / 0.9568 GB, free: 5.398 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005332/0.7487, allocations: 0.5234 MB / 0.9573 GB, free: 4.863 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005687/0.7493, allocations: 138 kB / 0.9575 GB, free: 4.75 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.477e-05/0.7493, allocations: 1.281 kB / 0.9575 GB, free: 4.75 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000246/0.7496, allocations: 114.1 kB / 0.9576 GB, free: 4.641 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=11): time 1.953e-06/0.7496, allocations: 0 / 0.9576 GB, free: 4.641 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11): time 0.0004466/0.7501, allocations: 145.6 kB / 0.9577 GB, free: 4.551 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.349e-05/0.7501, allocations: 113 kB / 0.9578 GB, free: 4.418 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001088/0.7502, allocations: 127.9 kB / 0.958 GB, free: 4.301 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.091e-05/0.7503, allocations: 29.7 kB / 0.958 GB, free: 4.266 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.065e-05/0.7503, allocations: 99.31 kB / 0.9581 GB, free: 4.164 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.105e-05/0.7504, allocations: 19.34 kB / 0.9581 GB, free: 4.148 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.227e-05/0.7504, allocations: 6.656 kB / 0.9581 GB, free: 4.145 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.903e-05/0.7505, allocations: 318.8 kB / 0.9584 GB, free: 3.824 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001212/0.7506, allocations: 41.52 kB / 0.9584 GB, free: 3.801 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001197/0.7507, allocations: 34.36 kB / 0.9585 GB, free: 3.785 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001326/0.7509, allocations: 40.8 kB / 0.9585 GB, free: 3.766 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.235e-06/0.7509, allocations: 3.938 kB / 0.9585 GB, free: 3.762 MB / 0.7169 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003393/0.7512, allocations: 124.8 kB / 0.9586 GB, free: 3.688 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.712e-05/0.7512, allocations: 7.703 kB / 0.9586 GB, free: 3.684 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.923e-06/0.7513, allocations: 5.984 kB / 0.9587 GB, free: 3.68 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.464e-05/0.7513, allocations: 0 / 0.9587 GB, free: 3.68 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001723/0.7515, allocations: 27.34 kB / 0.9587 GB, free: 3.668 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.543e-06/0.7515, allocations: 4 kB / 0.9587 GB, free: 3.664 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001306/0.7516, allocations: 14.69 kB / 0.9587 GB, free: 3.656 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.915e-05/0.7517, allocations: 3.594 kB / 0.9587 GB, free: 3.656 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 9.51e-05/0.7518, allocations: 124.4 kB / 0.9588 GB, free: 3.531 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.743e-05/0.7518, allocations: 7.844 kB / 0.9588 GB, free: 3.527 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002966/0.7521, allocations: 117.9 kB / 0.9589 GB, free: 3.441 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.402e-06/0.7521, allocations: 7 kB / 0.9589 GB, free: 3.438 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.905e-06/0.7521, allocations: 1.375 kB / 0.9589 GB, free: 3.438 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.724e-06/0.7521, allocations: 4.219 kB / 0.959 GB, free: 3.434 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002136/0.7524, allocations: 217.8 kB / 0.9592 GB, free: 3.195 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.7524, allocations: 1.531 kB / 0.9592 GB, free: 3.195 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001416/0.7525, allocations: 23.09 kB / 0.9592 GB, free: 3.188 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.414e-06/0.7526, allocations: 5.609 kB / 0.9592 GB, free: 3.184 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.019e-05/0.7526, allocations: 5.453 kB / 0.9592 GB, free: 3.18 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.751e-06/0.7526, allocations: 9.641 kB / 0.9592 GB, free: 3.172 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/0.7526, allocations: 1.719 kB / 0.9592 GB, free: 3.172 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003633/0.753, allocations: 197 kB / 0.9594 GB, free: 3.004 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 8.773e-05/0.7531, allocations: 102.3 kB / 0.9595 GB, free: 2.891 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.979e-05/0.7531, allocations: 11.59 kB / 0.9595 GB, free: 2.883 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001219/0.7533, allocations: 13.39 kB / 0.9595 GB, free: 2.875 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.952e-05/0.7534, allocations: 10.42 kB / 0.9595 GB, free: 2.871 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.727e-05/0.7534, allocations: 3.312 kB / 0.9595 GB, free: 2.871 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 7.989e-05/0.7535, allocations: 98.98 kB / 0.9596 GB, free: 2.785 MB / 0.7169 GB Notification: Performance of sort global known variables: time 2.61e-07/0.7535, allocations: 0 / 0.9596 GB, free: 2.785 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0005947/0.7541, allocations: 62.73 kB / 0.9597 GB, free: 2.762 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.000912/0.755, allocations: 0.918 MB / 0.9606 GB, free: 1.902 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003387/0.7554, allocations: 99.06 kB / 0.9607 GB, free: 1.859 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.7554, allocations: 9.312 kB / 0.9607 GB, free: 1.852 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001427/0.7555, allocations: 50.17 kB / 0.9607 GB, free: 1.832 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002476/0.7558, allocations: 12.11 kB / 0.9607 GB, free: 1.824 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009536/0.7567, allocations: 0.49 MB / 0.9612 GB, free: 1.355 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001672/0.7569, allocations: 0.702 MB / 0.9619 GB, free: 0.6484 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0001116/0.7571, allocations: 16.77 kB / 0.9619 GB, free: 0.6406 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001035/0.7572, allocations: 30.95 kB / 0.962 GB, free: 0.6172 MB / 0.7169 GB Notification: Performance of SimCode: time 3.7e-07/0.7572, allocations: 0 / 0.962 GB, free: 0.6172 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01716/0.7743, allocations: 2.714 MB / 0.9646 GB, free: 15.34 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002952/0.7747, allocations: 193.3 kB / 0.9648 GB, free: 15.11 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.692/2.467, allocations: 3.938 kB / 0.9648 GB, free: 15.11 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