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.506/2.506, allocations: 387.1 MB / 399.7 MB, free: 9.5 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.001732/0.001732, allocations: 184 kB / 492.3 MB, free: 0.5977 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.961/1.961, allocations: 221.3 MB / 0.7871 GB, free: 12.86 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.0009659/0.0009657, allocations: 92.5 kB / 0.9267 GB, free: 13.93 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.284e-05/3.31e-05, allocations: 4 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3743/0.3744, allocations: 142.3 MB / 1.212 GB, free: 38.38 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.355/1.729, allocations: 151.4 MB / 1.36 GB, free: 18.94 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003544/1.73, allocations: 78.42 kB / 1.36 GB, free: 18.94 MB / 0.823 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.01143/1.741, allocations: 3.288 MB / 1.364 GB, free: 34.47 MB / 0.8386 GB Notification: Performance of FrontEnd: time 3.096e-06/1.741, allocations: 3.938 kB / 1.364 GB, free: 34.46 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.192e-05/1.741, allocations: 3.938 kB / 1.364 GB, free: 34.46 MB / 0.8386 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.0007656/1.742, allocations: 489.4 kB / 1.364 GB, free: 33.99 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.597e-05/1.742, allocations: 11.66 kB / 1.364 GB, free: 33.99 MB / 0.8386 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.39e-05/1.742, allocations: 33.52 kB / 1.364 GB, free: 33.95 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.021e-05/1.742, allocations: 11.78 kB / 1.364 GB, free: 33.95 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001749/1.742, allocations: 187.5 kB / 1.364 GB, free: 33.73 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.264e-05/1.742, allocations: 7.844 kB / 1.364 GB, free: 33.73 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.173e-05/1.743, allocations: 7.625 kB / 1.364 GB, free: 33.73 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001883/1.743, allocations: 72.84 kB / 1.364 GB, free: 33.7 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.071e-05/1.743, allocations: 0 / 1.364 GB, free: 33.7 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.664e-05/1.743, allocations: 3.438 kB / 1.364 GB, free: 33.7 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.845e-06/1.743, allocations: 3.844 kB / 1.364 GB, free: 33.7 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001164/1.743, allocations: 40.64 kB / 1.365 GB, free: 33.7 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006905/1.744, allocations: 328.6 kB / 1.365 GB, free: 33.42 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002007/1.744, allocations: 76.84 kB / 1.365 GB, free: 33.4 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.532e-05/1.744, allocations: 38.14 kB / 1.365 GB, free: 33.39 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 3.138e-05/1.744, allocations: 3.75 kB / 1.365 GB, free: 33.39 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001868/1.744, allocations: 97.69 kB / 1.365 GB, free: 33.34 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=11): time 2.264e-06/1.744, allocations: 0 / 1.365 GB, free: 33.34 MB / 0.8386 GB Notification: Performance of matching and sorting (n=11): time 0.0003178/1.744, allocations: 139.4 kB / 1.365 GB, free: 33.29 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.681e-05/1.745, allocations: 55.25 kB / 1.365 GB, free: 33.23 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001439/1.745, allocations: 116.9 kB / 1.365 GB, free: 33.13 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.587e-05/1.745, allocations: 29.33 kB / 1.365 GB, free: 33.1 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 7.642e-05/1.745, allocations: 95.81 kB / 1.365 GB, free: 33.02 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 3.246e-05/1.745, allocations: 26.27 kB / 1.365 GB, free: 33 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.745e-06/1.745, allocations: 2.938 kB / 1.365 GB, free: 33 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001287/1.745, allocations: 321.5 kB / 1.366 GB, free: 32.69 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.361e-05/1.745, allocations: 22.94 kB / 1.366 GB, free: 32.69 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.84e-05/1.745, allocations: 75.84 kB / 1.366 GB, free: 32.63 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.434e-05/1.745, allocations: 31.19 kB / 1.366 GB, free: 32.63 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.846e-06/1.745, allocations: 0 / 1.366 GB, free: 32.63 MB / 0.8386 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002237/1.745, allocations: 127.5 kB / 1.366 GB, free: 32.58 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 2.125e-05/1.745, allocations: 7.5 kB / 1.366 GB, free: 32.58 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.157e-06/1.745, allocations: 144 / 1.366 GB, free: 32.58 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.894e-05/1.746, allocations: 3.812 kB / 1.366 GB, free: 32.58 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001214/1.746, allocations: 25.89 kB / 1.366 GB, free: 32.57 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.338e-05/1.746, allocations: 11.89 kB / 1.366 GB, free: 32.57 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001061/1.746, allocations: 18.73 kB / 1.366 GB, free: 32.56 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.498e-05/1.746, allocations: 3.844 kB / 1.366 GB, free: 32.56 MB / 0.8386 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 () * 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.732e-05/1.746, allocations: 111.2 kB / 1.366 GB, free: 32.46 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.125e-05/1.746, allocations: 7.688 kB / 1.366 GB, free: 32.45 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003024/1.746, allocations: 155.4 kB / 1.366 GB, free: 32.41 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.007e-06/1.746, allocations: 7.969 kB / 1.366 GB, free: 32.41 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/1.746, allocations: 0 / 1.366 GB, free: 32.41 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.526e-06/1.746, allocations: 7.188 kB / 1.366 GB, free: 32.41 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005432/1.747, allocations: 438.6 kB / 1.367 GB, free: 32.11 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/1.747, allocations: 0 / 1.367 GB, free: 32.11 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.569e-05/1.747, allocations: 14.41 kB / 1.367 GB, free: 32.11 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.397e-06/1.747, allocations: 7.938 kB / 1.367 GB, free: 32.1 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.656e-05/1.747, allocations: 10.89 kB / 1.367 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.504e-06/1.747, allocations: 0 / 1.367 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/1.747, allocations: 0 / 1.367 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002766/1.747, allocations: 232.3 kB / 1.367 GB, free: 31.95 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 3.869e-05/1.747, allocations: 87.75 kB / 1.367 GB, free: 31.85 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.676e-05/1.747, allocations: 3.25 kB / 1.367 GB, free: 31.85 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000118/1.747, allocations: 18.7 kB / 1.367 GB, free: 31.84 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.001e-05/1.748, allocations: 13.67 kB / 1.367 GB, free: 31.84 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.477e-05/1.748, allocations: 7.016 kB / 1.367 GB, free: 31.84 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 6.975e-05/1.748, allocations: 96.52 kB / 1.367 GB, free: 31.77 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.6e-07/1.748, allocations: 0 / 1.367 GB, free: 31.77 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003528/1.748, allocations: 56.22 kB / 1.367 GB, free: 31.76 MB / 0.8386 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) * 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.0008595/1.749, allocations: 0.8392 MB / 1.368 GB, free: 31.07 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.000221/1.749, allocations: 79.22 kB / 1.368 GB, free: 31.06 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/1.749, allocations: 0 / 1.368 GB, free: 31.06 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 9.461e-05/1.749, allocations: 54.42 kB / 1.368 GB, free: 31.06 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002398/1.749, allocations: 22.16 kB / 1.368 GB, free: 31.05 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006312/1.75, allocations: 201.4 kB / 1.368 GB, free: 30.91 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003128/1.75, allocations: 0.6989 MB / 1.369 GB, free: 30.22 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 6.24e-05/1.75, allocations: 14.91 kB / 1.369 GB, free: 30.21 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.441e-05/1.751, allocations: 27.67 kB / 1.369 GB, free: 30.21 MB / 0.8386 GB Notification: Performance of SimCode: time 9.92e-07/1.751, allocations: 0 / 1.369 GB, free: 30.21 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01706/1.768, allocations: 3.129 MB / 1.372 GB, free: 29.92 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000198/1.768, allocations: 205.9 kB / 1.372 GB, free: 29.7 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.703/3.471, allocations: 0 / 1.372 GB, free: 29.7 MB / 0.8386 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