Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light,fileNamePrefix="Buildings_9_Buildings_Occupants_Office_Lighting_Validation_Gunay2016Light",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light,fileNamePrefix="Buildings_9_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 9.1.1-maint.9.1.x/package.mo): time 2.233/2.233, allocations: 390.3 MB / 405.3 MB, free: 13.51 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.001287/0.001287, allocations: 169.1 kB / 498.1 MB, free: 5.746 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.472/1.472, allocations: 223.1 MB / 0.7948 GB, free: 17.88 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.001024/0.001024, allocations: 102.3 kB / 0.9346 GB, free: 6.172 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003351/0.0003351, allocations: 10.69 kB / 1.084 GB, free: 221.5 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.237/0.2374, allocations: 142.3 MB / 1.223 GB, free: 114.1 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1904/0.4278, allocations: 151.5 MB / 1.371 GB, free: 10.41 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002317/0.4281, allocations: 83.94 kB / 1.371 GB, free: 10.33 MB / 0.8698 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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.0102/0.4383, allocations: 3.31 MB / 1.374 GB, free: 7.012 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.833e-06/0.4384, allocations: 0 / 1.374 GB, free: 7.012 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 9.478e-06/0.4384, allocations: 4 kB / 1.374 GB, free: 7.008 MB / 0.8698 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.0007212/0.4391, allocations: 0.4922 MB / 1.375 GB, free: 6.449 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.994e-05/0.4392, allocations: 8.031 kB / 1.375 GB, free: 6.441 MB / 0.8698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.33e-05/0.4392, allocations: 42.5 kB / 1.375 GB, free: 6.391 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.787e-05/0.4393, allocations: 11.86 kB / 1.375 GB, free: 6.379 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001684/0.4394, allocations: 179 kB / 1.375 GB, free: 6.164 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.549e-05/0.4395, allocations: 4 kB / 1.375 GB, free: 6.16 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.085e-05/0.4395, allocations: 8 kB / 1.375 GB, free: 6.152 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002274/0.4397, allocations: 81.64 kB / 1.375 GB, free: 6.066 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.085e-05/0.4397, allocations: 0 / 1.375 GB, free: 6.066 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.35e-05/0.4398, allocations: 3.938 kB / 1.375 GB, free: 6.062 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.907e-06/0.4398, allocations: 4 kB / 1.375 GB, free: 6.059 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001585/0.4399, allocations: 51.97 kB / 1.375 GB, free: 6.008 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005914/0.4405, allocations: 332.7 kB / 1.375 GB, free: 5.633 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002087/0.4408, allocations: 90.7 kB / 1.375 GB, free: 5.535 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.045e-05/0.4408, allocations: 0 / 1.375 GB, free: 5.535 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000224/0.441, allocations: 99.3 kB / 1.376 GB, free: 5.426 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=11): time 1.854e-06/0.441, allocations: 3.938 kB / 1.376 GB, free: 5.422 MB / 0.8698 GB Notification: Performance of matching and sorting (n=11): time 0.0005218/0.4416, allocations: 185.4 kB / 1.376 GB, free: 5.234 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.132e-05/0.4416, allocations: 51.41 kB / 1.376 GB, free: 5.172 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000142/0.4418, allocations: 127.8 kB / 1.376 GB, free: 5.039 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 2.553e-05/0.4418, allocations: 25.7 kB / 1.376 GB, free: 5.008 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 6.669e-05/0.4419, allocations: 100.2 kB / 1.376 GB, free: 4.906 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 3.27e-05/0.4419, allocations: 31.62 kB / 1.376 GB, free: 4.875 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.235e-06/0.4419, allocations: 4 kB / 1.376 GB, free: 4.871 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001402/0.4421, allocations: 322.8 kB / 1.376 GB, free: 4.547 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.82e-05/0.4422, allocations: 27.98 kB / 1.376 GB, free: 4.52 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001027/0.4423, allocations: 77.12 kB / 1.376 GB, free: 4.426 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.669e-05/0.4424, allocations: 33 kB / 1.377 GB, free: 4.395 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.178e-06/0.4424, allocations: 3.938 kB / 1.377 GB, free: 4.391 MB / 0.8698 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002793/0.4427, allocations: 145.4 kB / 1.377 GB, free: 4.242 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 2.082e-05/0.4427, allocations: 8 kB / 1.377 GB, free: 4.234 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.905e-06/0.4427, allocations: 0 / 1.377 GB, free: 4.234 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.005e-05/0.4428, allocations: 4 kB / 1.377 GB, free: 4.23 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00013/0.4429, allocations: 19.94 kB / 1.377 GB, free: 4.211 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.456e-06/0.4429, allocations: 0 / 1.377 GB, free: 4.211 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001092/0.443, allocations: 15.98 kB / 1.377 GB, free: 4.195 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.871e-05/0.443, allocations: 8 kB / 1.377 GB, free: 4.188 MB / 0.8698 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.0001179/0.4432, allocations: 133.9 kB / 1.377 GB, free: 4.047 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.244e-05/0.4432, allocations: 11.89 kB / 1.377 GB, free: 4.035 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003637/0.4436, allocations: 166.2 kB / 1.377 GB, free: 3.863 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.316e-06/0.4436, allocations: 0 / 1.377 GB, free: 3.863 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.044e-06/0.4436, allocations: 3.953 kB / 1.377 GB, free: 3.859 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.958e-06/0.4436, allocations: 0 / 1.377 GB, free: 3.859 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006265/0.4442, allocations: 458.4 kB / 1.377 GB, free: 3.355 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.4443, allocations: 0 / 1.377 GB, free: 3.355 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.537e-05/0.4443, allocations: 19.94 kB / 1.377 GB, free: 3.336 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.358e-06/0.4444, allocations: 0 / 1.377 GB, free: 3.336 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.822e-05/0.4444, allocations: 7.938 kB / 1.377 GB, free: 3.328 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.804e-06/0.4444, allocations: 8 kB / 1.377 GB, free: 3.32 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.61e-07/0.4444, allocations: 0 / 1.377 GB, free: 3.32 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003136/0.4447, allocations: 235.4 kB / 1.378 GB, free: 3.074 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 4.746e-05/0.4448, allocations: 88.92 kB / 1.378 GB, free: 2.969 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.456e-05/0.4448, allocations: 0 / 1.378 GB, free: 2.969 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001251/0.4449, allocations: 23.94 kB / 1.378 GB, free: 2.945 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.478e-05/0.445, allocations: 11.98 kB / 1.378 GB, free: 2.934 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.542e-05/0.445, allocations: 7.984 kB / 1.378 GB, free: 2.926 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 6.487e-05/0.4451, allocations: 101.7 kB / 1.378 GB, free: 2.828 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4451, allocations: 3.938 kB / 1.378 GB, free: 2.824 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0003841/0.4455, allocations: 55.88 kB / 1.378 GB, free: 2.77 MB / 0.8698 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.0008649/0.4464, allocations: 0.8577 MB / 1.379 GB, free: 1.906 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0002642/0.4466, allocations: 95.89 kB / 1.379 GB, free: 1.812 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.4467, allocations: 0 / 1.379 GB, free: 1.812 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0001255/0.4468, allocations: 55.92 kB / 1.379 GB, free: 1.758 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002442/0.447, allocations: 15.94 kB / 1.379 GB, free: 1.742 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001249/0.4483, allocations: 1.249 MB / 1.38 GB, free: 432 kB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003389/0.4487, allocations: 0.7043 MB / 1.381 GB, free: 15.69 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 6.056e-05/0.4487, allocations: 12.42 kB / 1.381 GB, free: 15.68 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.917e-05/0.4488, allocations: 31.42 kB / 1.381 GB, free: 15.65 MB / 0.8855 GB Notification: Performance of SimCode: time 5.42e-06/0.4488, allocations: 0 / 1.381 GB, free: 15.65 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01437/0.4632, allocations: 3.09 MB / 1.384 GB, free: 12.71 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001757/0.4634, allocations: 240.7 kB / 1.384 GB, free: 12.46 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.557/2.02, allocations: 0 / 1.384 GB, free: 12.46 MB / 0.8855 GB (rm -f Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light_res.mat --tempDir=temp_Buildings_9_Buildings_Occupants_Office_Lighting_Validation_Gunay2016Light_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Occupants_Office_Lighting_Validation_Gunay2016Light.fmu > Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light_res.mat does not exist to compare? outputFormat=mat