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/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.0.0-master/package.mo", uses=false) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009553/0.0009554, allocations: 100.2 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.0009426/0.0009426, allocations: 177.3 kB / 15.94 MB, free: 220 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.524/1.524, allocations: 223.2 MB / 239.9 MB, free: 5.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.525/2.525, allocations: 409.2 MB / 0.6838 GB, free: 0.9922 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0003737/0.0003737, allocations: 12 kB / 0.8375 GB, free: 6.543 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8669/0.8673, allocations: 146.8 MB / 0.9809 GB, free: 6.293 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light): time 0.001777/0.8691, allocations: 1.214 MB / 0.982 GB, free: 5.074 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001282/0.8704, allocations: 0.6979 MB / 0.9827 GB, free: 4.371 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.649e-05/0.8705, allocations: 3.938 kB / 0.9827 GB, free: 4.367 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 2.059e-05/0.8705, allocations: 7.922 kB / 0.9827 GB, free: 4.359 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0001076/0.8706, allocations: 15.97 kB / 0.9828 GB, free: 4.344 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004873/0.8711, allocations: 95.75 kB / 0.9828 GB, free: 4.25 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001088/0.8713, allocations: 59.86 kB / 0.9829 GB, free: 4.191 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001089/0.8714, allocations: 19.92 kB / 0.9829 GB, free: 4.172 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001014/0.8715, allocations: 43.83 kB / 0.983 GB, free: 4.129 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 7.66e-05/0.8716, allocations: 35.83 kB / 0.983 GB, free: 4.094 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.601e-05/0.8716, allocations: 4 kB / 0.983 GB, free: 4.09 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001811/0.8718, allocations: 75.86 kB / 0.9831 GB, free: 4.016 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 3.042e-05/0.8718, allocations: 23.91 kB / 0.9831 GB, free: 3.992 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 5.247e-05/0.8719, allocations: 37.7 kB / 0.9831 GB, free: 3.949 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001859/0.8721, allocations: 102.1 kB / 0.9832 GB, free: 3.852 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.527e-06/0.8721, allocations: 0 / 0.9832 GB, free: 3.852 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.865e-06/0.8721, allocations: 0 / 0.9832 GB, free: 3.852 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 8.246e-06/0.8721, allocations: 0 / 0.9832 GB, free: 3.852 MB / 0.7325 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.0008093/0.8729, allocations: 492.1 kB / 0.9837 GB, free: 3.305 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 5.349e-05/0.873, allocations: 15.95 kB / 0.9837 GB, free: 3.289 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.38e-05/0.8731, allocations: 38.56 kB / 0.9838 GB, free: 3.242 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.742e-05/0.8731, allocations: 7.906 kB / 0.9838 GB, free: 3.234 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001826/0.8733, allocations: 171 kB / 0.9839 GB, free: 3.027 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.219e-05/0.8733, allocations: 11.98 kB / 0.9839 GB, free: 3.016 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.175e-05/0.8733, allocations: 4 kB / 0.9839 GB, free: 3.012 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002205/0.8736, allocations: 89.47 kB / 0.984 GB, free: 2.918 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.446e-06/0.8736, allocations: 0 / 0.984 GB, free: 2.918 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.592e-05/0.8736, allocations: 8 kB / 0.984 GB, free: 2.91 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.743e-06/0.8736, allocations: 3.984 kB / 0.984 GB, free: 2.906 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001589/0.8738, allocations: 51.97 kB / 0.9841 GB, free: 2.855 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005824/0.8744, allocations: 340.7 kB / 0.9844 GB, free: 2.473 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002138/0.8746, allocations: 86.66 kB / 0.9845 GB, free: 2.379 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.661e-05/0.8746, allocations: 0 / 0.9845 GB, free: 2.379 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002696/0.8749, allocations: 99.36 kB / 0.9846 GB, free: 2.27 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=11): time 1.543e-06/0.8749, allocations: 4 kB / 0.9846 GB, free: 2.266 MB / 0.7325 GB Notification: Performance of matching and sorting (n=11): time 0.0004539/0.8754, allocations: 181.4 kB / 0.9848 GB, free: 2.082 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.179e-05/0.8755, allocations: 59.56 kB / 0.9848 GB, free: 2.012 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000113/0.8756, allocations: 135.1 kB / 0.9849 GB, free: 1.867 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.072e-05/0.8756, allocations: 25.7 kB / 0.985 GB, free: 1.836 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 6.268e-05/0.8757, allocations: 100.1 kB / 0.9851 GB, free: 1.734 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.788e-05/0.8757, allocations: 27.66 kB / 0.9851 GB, free: 1.707 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.286e-06/0.8757, allocations: 4 kB / 0.9851 GB, free: 1.703 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001319/0.8759, allocations: 322.8 kB / 0.9854 GB, free: 1.379 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.895e-05/0.8759, allocations: 31.92 kB / 0.9854 GB, free: 1.348 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000101/0.876, allocations: 75.09 kB / 0.9855 GB, free: 1.258 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.881e-05/0.8761, allocations: 39.92 kB / 0.9855 GB, free: 1.219 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.8762, allocations: 0 / 0.9855 GB, free: 1.219 MB / 0.7325 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002491/0.8764, allocations: 145.4 kB / 0.9857 GB, free: 1.07 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.629e-05/0.8764, allocations: 12.09 kB / 0.9857 GB, free: 1.059 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.462e-06/0.8765, allocations: 0 / 0.9857 GB, free: 1.059 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.054e-05/0.8765, allocations: 4 kB / 0.9857 GB, free: 1.055 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001091/0.8766, allocations: 15.98 kB / 0.9857 GB, free: 1.039 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.669e-06/0.8766, allocations: 4 kB / 0.9857 GB, free: 1.035 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000139/0.8768, allocations: 15.89 kB / 0.9857 GB, free: 1.02 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.82e-05/0.8768, allocations: 8 kB / 0.9857 GB, free: 1.012 MB / 0.7325 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.0001212/0.8769, allocations: 127.3 kB / 0.9859 GB, free: 0.8789 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.018e-05/0.8769, allocations: 11.86 kB / 0.9859 GB, free: 0.8672 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003655/0.8773, allocations: 162.3 kB / 0.986 GB, free: 0.6992 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.805e-06/0.8773, allocations: 0 / 0.986 GB, free: 0.6992 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.618e-06/0.8773, allocations: 7.984 kB / 0.986 GB, free: 0.6914 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.8773, allocations: 3.938 kB / 0.986 GB, free: 0.6875 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005824/0.8779, allocations: 461.6 kB / 0.9865 GB, free: 188 kB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.799e-06/0.8779, allocations: 0 / 0.9865 GB, free: 188 kB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.322e-05/0.878, allocations: 23.86 kB / 0.9865 GB, free: 164 kB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.249e-06/0.878, allocations: 3.984 kB / 0.9865 GB, free: 160 kB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.413e-05/0.8781, allocations: 4 kB / 0.9865 GB, free: 156 kB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.8781, allocations: 4 kB / 0.9865 GB, free: 152 kB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.734e-06/0.8781, allocations: 0 / 0.9865 GB, free: 152 kB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003271/0.8784, allocations: 243.4 kB / 0.9867 GB, free: 15.89 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 4.23e-05/0.8785, allocations: 85 kB / 0.9868 GB, free: 15.79 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.491e-05/0.8785, allocations: 4 kB / 0.9868 GB, free: 15.79 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001201/0.8786, allocations: 19.98 kB / 0.9869 GB, free: 15.77 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.11e-05/0.8787, allocations: 7.984 kB / 0.9869 GB, free: 15.76 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.869e-05/0.8787, allocations: 4 kB / 0.9869 GB, free: 15.76 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 6.268e-05/0.8788, allocations: 101 kB / 0.987 GB, free: 15.66 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.4e-07/0.8788, allocations: 0 / 0.987 GB, free: 15.66 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0003263/0.8791, allocations: 47.92 kB / 0.987 GB, free: 15.61 MB / 0.7481 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.0008721/0.88, allocations: 0.8415 MB / 0.9878 GB, free: 14.76 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.000264/0.8803, allocations: 99.95 kB / 0.9879 GB, free: 14.66 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.8803, allocations: 0 / 0.9879 GB, free: 14.66 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0001107/0.8804, allocations: 51.92 kB / 0.988 GB, free: 14.61 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002328/0.8806, allocations: 19.89 kB / 0.988 GB, free: 14.59 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00106/0.8817, allocations: 1.24 MB / 0.9892 GB, free: 13.29 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002738/0.882, allocations: 0.7004 MB / 0.9899 GB, free: 12.56 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 5.372e-05/0.882, allocations: 16.42 kB / 0.9899 GB, free: 12.55 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.012e-05/0.8821, allocations: 27.44 kB / 0.9899 GB, free: 12.52 MB / 0.7481 GB Notification: Performance of SimCode: time 5.41e-07/0.8821, allocations: 0 / 0.9899 GB, free: 12.52 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01377/0.8959, allocations: 2.918 MB / 0.9928 GB, free: 9.762 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001837/0.8961, allocations: 233.2 kB / 0.993 GB, free: 9.523 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.78/2.676, allocations: 0 / 0.993 GB, free: 9.523 MB / 0.7481 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) Environment - environmentSimulation: 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