Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.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.Reinhart2003Light,fileNamePrefix="Buildings_latest_Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light,fileNamePrefix="Buildings_latest_Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light",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.541/2.541, allocations: 393.5 MB / 408.4 MB, free: 11.04 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.00115/0.00115, allocations: 187.5 kB / 0.4901 GB, free: 2.246 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.539/1.539, allocations: 223.1 MB / 0.7992 GB, free: 14.82 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.001037/0.001036, allocations: 98.52 kB / 0.9396 GB, free: 1.957 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004575/0.0004574, allocations: 8.625 kB / 1.09 GB, free: 216.4 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3746/0.375, allocations: 143 MB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1992/0.5743, allocations: 152.3 MB / 1.378 GB, free: 1.191 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003361/0.5747, allocations: 79.95 kB / 1.378 GB, free: 1.113 MB / 0.8698 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.01433/0.589, allocations: 3.388 MB / 1.381 GB, free: 13.72 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.575e-06/0.5891, allocations: 0 / 1.381 GB, free: 13.72 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 1.349e-05/0.5891, allocations: 4 kB / 1.381 GB, free: 13.71 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.0009509/0.59, allocations: 0.508 MB / 1.382 GB, free: 13.14 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 5.102e-05/0.5901, allocations: 12.5 kB / 1.382 GB, free: 13.13 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.329e-05/0.5902, allocations: 38.56 kB / 1.382 GB, free: 13.08 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.435e-05/0.5903, allocations: 11.86 kB / 1.382 GB, free: 13.07 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002393/0.5905, allocations: 183.5 kB / 1.382 GB, free: 12.85 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.804e-05/0.5905, allocations: 0 / 1.382 GB, free: 12.85 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.139e-05/0.5906, allocations: 8 kB / 1.382 GB, free: 12.84 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002722/0.5909, allocations: 77.64 kB / 1.382 GB, free: 12.76 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.012e-05/0.5909, allocations: 4 kB / 1.382 GB, free: 12.76 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.638e-05/0.5909, allocations: 0 / 1.382 GB, free: 12.76 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.055e-05/0.5909, allocations: 7.953 kB / 1.382 GB, free: 12.75 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002296/0.5912, allocations: 59.89 kB / 1.382 GB, free: 12.69 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007653/0.592, allocations: 328.8 kB / 1.383 GB, free: 12.32 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003135/0.5923, allocations: 86.69 kB / 1.383 GB, free: 12.23 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 2.729e-05/0.5923, allocations: 0 / 1.383 GB, free: 12.23 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002814/0.5926, allocations: 99.31 kB / 1.383 GB, free: 12.12 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=11): time 1.883e-06/0.5926, allocations: 4 kB / 1.383 GB, free: 12.11 MB / 0.8855 GB Notification: Performance of matching and sorting (n=11): time 0.0006312/0.5933, allocations: 185.4 kB / 1.383 GB, free: 11.93 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.439e-05/0.5933, allocations: 55.34 kB / 1.383 GB, free: 11.86 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001631/0.5935, allocations: 134.6 kB / 1.383 GB, free: 11.72 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 2.904e-05/0.5936, allocations: 29.7 kB / 1.383 GB, free: 11.69 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 8.255e-05/0.5937, allocations: 96.08 kB / 1.383 GB, free: 11.59 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 4.962e-05/0.5937, allocations: 35.78 kB / 1.383 GB, free: 11.55 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.088e-05/0.5937, allocations: 4 kB / 1.383 GB, free: 11.55 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001646/0.5939, allocations: 322.8 kB / 1.384 GB, free: 11.23 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001183/0.594, allocations: 27.98 kB / 1.384 GB, free: 11.2 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001603/0.5942, allocations: 73.12 kB / 1.384 GB, free: 11.11 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001501/0.5944, allocations: 35.98 kB / 1.384 GB, free: 11.07 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.945e-06/0.5944, allocations: 0 / 1.384 GB, free: 11.07 MB / 0.8855 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004009/0.5948, allocations: 141.3 kB / 1.384 GB, free: 10.93 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 2.297e-05/0.5948, allocations: 13.92 kB / 1.384 GB, free: 10.92 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.239e-05/0.5949, allocations: 8 kB / 1.384 GB, free: 10.91 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.818e-05/0.5949, allocations: 144 / 1.384 GB, free: 10.91 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001612/0.5951, allocations: 23.92 kB / 1.384 GB, free: 10.89 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.756e-06/0.5951, allocations: 0 / 1.384 GB, free: 10.89 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001579/0.5953, allocations: 19.98 kB / 1.384 GB, free: 10.87 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.085e-05/0.5953, allocations: 7.984 kB / 1.384 GB, free: 10.86 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.0001325/0.5954, allocations: 125.8 kB / 1.384 GB, free: 10.73 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.014e-05/0.5955, allocations: 11.91 kB / 1.384 GB, free: 10.71 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005139/0.596, allocations: 170.2 kB / 1.384 GB, free: 10.54 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.017e-06/0.596, allocations: 0 / 1.384 GB, free: 10.54 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.641e-06/0.596, allocations: 3.938 kB / 1.384 GB, free: 10.54 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.342e-06/0.596, allocations: 7.984 kB / 1.384 GB, free: 10.53 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008765/0.5969, allocations: 470.3 kB / 1.385 GB, free: 10.02 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.055e-06/0.5969, allocations: 0 / 1.385 GB, free: 10.02 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001119/0.5971, allocations: 12 kB / 1.385 GB, free: 10 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.428e-06/0.5971, allocations: 0 / 1.385 GB, free: 10 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.523e-05/0.5971, allocations: 11.98 kB / 1.385 GB, free: 9.992 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.442e-06/0.5971, allocations: 7.938 kB / 1.385 GB, free: 9.984 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.5971, allocations: 0 / 1.385 GB, free: 9.984 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004676/0.5976, allocations: 251.3 kB / 1.385 GB, free: 9.723 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 6.585e-05/0.5977, allocations: 88.97 kB / 1.385 GB, free: 9.617 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.442e-05/0.5977, allocations: 4 kB / 1.385 GB, free: 9.613 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001876/0.5979, allocations: 19.98 kB / 1.385 GB, free: 9.594 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.834e-05/0.598, allocations: 7.984 kB / 1.385 GB, free: 9.586 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.213e-05/0.598, allocations: 7.984 kB / 1.385 GB, free: 9.578 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.0001003/0.5981, allocations: 105.7 kB / 1.385 GB, free: 9.477 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.51e-07/0.5981, allocations: 0 / 1.385 GB, free: 9.477 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0005925/0.5987, allocations: 59.92 kB / 1.385 GB, free: 9.418 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 (14): * Single equations (assignments): 11 * 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.00128/0.6, allocations: 0.854 MB / 1.386 GB, free: 8.555 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0003846/0.6004, allocations: 100.1 kB / 1.386 GB, free: 8.457 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 5.029e-06/0.6005, allocations: 0 / 1.386 GB, free: 8.457 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0001854/0.6007, allocations: 59.84 kB / 1.386 GB, free: 8.398 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003317/0.601, allocations: 20.08 kB / 1.386 GB, free: 8.379 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001635/0.6026, allocations: 1.272 MB / 1.388 GB, free: 7.031 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003535/0.603, allocations: 0.7043 MB / 1.388 GB, free: 6.301 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 8.567e-05/0.6031, allocations: 12.55 kB / 1.388 GB, free: 6.289 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.281e-05/0.6032, allocations: 31.42 kB / 1.388 GB, free: 6.258 MB / 0.8855 GB Notification: Performance of SimCode: time 4.91e-06/0.6032, allocations: 0 / 1.388 GB, free: 6.258 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02012/0.6234, allocations: 3.249 MB / 1.391 GB, free: 3.191 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003163/0.6237, allocations: 237.5 kB / 1.392 GB, free: 2.949 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.601/2.225, allocations: 2.109 kB / 1.392 GB, free: 2.949 MB / 0.8855 GB (rm -f Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light_res.mat --tempDir=temp_Buildings_latest_Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light.fmu > Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light_res.mat does not exist to compare? outputFormat=mat