Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light,fileNamePrefix="Buildings_latest_Buildings_Occupants_Office_Lighting_Validation_Gunay2016Light",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light,fileNamePrefix="Buildings_latest_Buildings_Occupants_Office_Lighting_Validation_Gunay2016Light",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.26/2.26, allocations: 393.5 MB / 408.4 MB, free: 10.96 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001242/0.001242, allocations: 187.4 kB / 0.4901 GB, free: 2.223 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.468/1.468, allocations: 223.1 MB / 0.7992 GB, free: 15.7 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008473/0.0008472, allocations: 106.7 kB / 0.9396 GB, free: 2.879 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003561/0.0003562, allocations: 8.656 kB / 1.09 GB, free: 212.8 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.291/0.2914, allocations: 143 MB / 1.229 GB, free: 85.4 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2287/0.5201, allocations: 152.3 MB / 1.378 GB, free: 12.89 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003134/0.5205, allocations: 83.95 kB / 1.378 GB, free: 12.81 MB / 0.8855 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/Occupants/BaseClasses/binaryVariableGeneration.mo:11:3-11:96:writable] Warning: localSeed was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. Notification: Performance of FrontEnd - DAE generated: time 0.0146/0.5351, allocations: 3.309 MB / 1.381 GB, free: 9.496 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.695e-06/0.5352, allocations: 0 / 1.381 GB, free: 9.496 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 7.745e-06/0.5352, allocations: 0 / 1.381 GB, free: 9.496 MB / 0.8855 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0009162/0.5361, allocations: 0.5 MB / 1.382 GB, free: 8.93 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 6.016e-05/0.5362, allocations: 8.562 kB / 1.382 GB, free: 8.922 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.801e-05/0.5363, allocations: 38.5 kB / 1.382 GB, free: 8.875 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.173e-05/0.5363, allocations: 15.86 kB / 1.382 GB, free: 8.859 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001893/0.5365, allocations: 178.9 kB / 1.382 GB, free: 8.645 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.534e-05/0.5366, allocations: 7.984 kB / 1.382 GB, free: 8.637 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.477e-05/0.5366, allocations: 4 kB / 1.382 GB, free: 8.633 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002873/0.5369, allocations: 85.8 kB / 1.382 GB, free: 8.543 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.02e-05/0.5369, allocations: 0 / 1.382 GB, free: 8.543 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.81e-05/0.537, allocations: 0 / 1.382 GB, free: 8.543 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.049e-06/0.537, allocations: 0 / 1.382 GB, free: 8.543 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002503/0.5372, allocations: 63.95 kB / 1.382 GB, free: 8.48 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007905/0.538, allocations: 324.7 kB / 1.382 GB, free: 8.113 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003222/0.5384, allocations: 86.7 kB / 1.383 GB, free: 8.02 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 3.185e-05/0.5384, allocations: 8.094 kB / 1.383 GB, free: 8.012 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000293/0.5387, allocations: 107.3 kB / 1.383 GB, free: 7.895 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=11): time 2.114e-06/0.5387, allocations: 0 / 1.383 GB, free: 7.895 MB / 0.8855 GB Notification: Performance of matching and sorting (n=11): time 0.0006512/0.5394, allocations: 189.4 kB / 1.383 GB, free: 7.703 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.078e-05/0.5395, allocations: 55.39 kB / 1.383 GB, free: 7.637 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001391/0.5396, allocations: 127.2 kB / 1.383 GB, free: 7.504 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 2.537e-05/0.5397, allocations: 25.7 kB / 1.383 GB, free: 7.473 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 6.995e-05/0.5397, allocations: 96.12 kB / 1.383 GB, free: 7.375 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 4.046e-05/0.5398, allocations: 23.62 kB / 1.383 GB, free: 7.352 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.201e-05/0.5398, allocations: 4 kB / 1.383 GB, free: 7.348 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001367/0.54, allocations: 322.8 kB / 1.383 GB, free: 7.023 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001231/0.5401, allocations: 31.98 kB / 1.384 GB, free: 6.992 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001513/0.5403, allocations: 65.12 kB / 1.384 GB, free: 6.91 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001425/0.5404, allocations: 47.92 kB / 1.384 GB, free: 6.863 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.5404, allocations: 0 / 1.384 GB, free: 6.863 MB / 0.8855 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004018/0.5408, allocations: 137.4 kB / 1.384 GB, free: 6.723 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 2.087e-05/0.5409, allocations: 4 kB / 1.384 GB, free: 6.719 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.097e-06/0.5409, allocations: 4 kB / 1.384 GB, free: 6.715 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.789e-05/0.5409, allocations: 0 / 1.384 GB, free: 6.715 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000183/0.5411, allocations: 32.03 kB / 1.384 GB, free: 6.684 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.947e-06/0.5412, allocations: 0 / 1.384 GB, free: 6.684 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001761/0.5413, allocations: 19.92 kB / 1.384 GB, free: 6.664 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.155e-05/0.5414, allocations: 4 kB / 1.384 GB, free: 6.66 MB / 0.8855 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.lig.curSeed,lig.curSeed,$PRE.lig.on,lig.on,$whenCondition3,$whenCondition2,lig.sampleTrigger,$whenCondition1,booleanPulse.y,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart) * 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 0.0001347/0.5415, allocations: 123 kB / 1.384 GB, free: 6.531 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.056e-05/0.5416, allocations: 8.047 kB / 1.384 GB, free: 6.523 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005347/0.5421, allocations: 170.3 kB / 1.384 GB, free: 6.348 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.589e-06/0.5421, allocations: 3.938 kB / 1.384 GB, free: 6.344 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.548e-06/0.5421, allocations: 3.953 kB / 1.384 GB, free: 6.34 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.672e-06/0.5422, allocations: 7.922 kB / 1.384 GB, free: 6.332 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000904/0.5431, allocations: 453.9 kB / 1.385 GB, free: 5.836 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.5431, allocations: 0 / 1.385 GB, free: 5.836 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001211/0.5432, allocations: 23.92 kB / 1.385 GB, free: 5.812 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.917e-06/0.5432, allocations: 0 / 1.385 GB, free: 5.812 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.133e-05/0.5433, allocations: 3.953 kB / 1.385 GB, free: 5.809 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.338e-06/0.5433, allocations: 4 kB / 1.385 GB, free: 5.805 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.412e-06/0.5433, allocations: 4 kB / 1.385 GB, free: 5.801 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000468/0.5438, allocations: 239.4 kB / 1.385 GB, free: 5.551 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 6.463e-05/0.5439, allocations: 85.02 kB / 1.385 GB, free: 5.449 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.91e-05/0.5439, allocations: 3.984 kB / 1.385 GB, free: 5.445 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002048/0.5441, allocations: 15.95 kB / 1.385 GB, free: 5.43 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.682e-05/0.5442, allocations: 11.97 kB / 1.385 GB, free: 5.418 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.729e-05/0.5442, allocations: 4 kB / 1.385 GB, free: 5.414 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 8.907e-05/0.5443, allocations: 109.2 kB / 1.385 GB, free: 5.309 MB / 0.8855 GB Notification: Performance of sort global known variables: time 2.61e-07/0.5443, allocations: 4 kB / 1.385 GB, free: 5.305 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0005878/0.5449, allocations: 59.86 kB / 1.385 GB, free: 5.246 MB / 0.8855 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 8 (booleanPulse.y,lig.sampleTrigger,$whenCondition3,$whenCondition2,$whenCondition1,lig.on,lig.curSeed,booleanPulse.pulseStart) * Number of discrete states: 1 (lig.on) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.00115/0.5461, allocations: 0.8516 MB / 1.386 GB, free: 4.387 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0003592/0.5465, allocations: 91.89 kB / 1.386 GB, free: 4.297 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 7.744e-06/0.5465, allocations: 0 / 1.386 GB, free: 4.297 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0001833/0.5467, allocations: 64.03 kB / 1.386 GB, free: 4.234 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003647/0.5471, allocations: 16.81 kB / 1.386 GB, free: 4.219 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001364/0.5484, allocations: 1.249 MB / 1.387 GB, free: 2.895 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002892/0.5488, allocations: 0.7004 MB / 1.388 GB, free: 2.168 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 8.064e-05/0.5488, allocations: 16.41 kB / 1.388 GB, free: 2.152 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.833e-05/0.5489, allocations: 31.42 kB / 1.388 GB, free: 2.121 MB / 0.8855 GB Notification: Performance of SimCode: time 4.91e-07/0.549, allocations: 0 / 1.388 GB, free: 2.121 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01981/0.5688, allocations: 3.09 MB / 1.391 GB, free: 15.19 MB / 0.9011 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002737/0.5691, allocations: 231.9 kB / 1.391 GB, free: 14.95 MB / 0.9011 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.724/2.293, allocations: 4 kB / 1.391 GB, free: 14.95 MB / 0.9011 GB (rm -f Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light_res.mat --tempDir=temp_Buildings_latest_Buildings_Occupants_Office_Lighting_Validation_Gunay2016Light_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Occupants_Office_Lighting_Validation_Gunay2016Light.fmu > Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light_res.mat does not exist to compare? outputFormat=mat