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.108/2.108, allocations: 390.3 MB / 402.8 MB, free: 6.684 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.0009908/0.0009908, allocations: 176.8 kB / 496.1 MB, free: 12.86 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.359/1.359, allocations: 221.3 MB / 0.7915 GB, free: 5.398 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.0008291/0.0008291, allocations: 95.61 kB / 0.9318 GB, free: 5.707 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.842e-05/2.853e-05, allocations: 4 kB / 1.079 GB, free: 140.4 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2514/0.2514, allocations: 143 MB / 1.219 GB, free: 13.44 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.831/1.082, allocations: 152.3 MB / 1.368 GB, free: 1.848 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002509/1.083, allocations: 82.44 kB / 1.368 GB, free: 1.801 MB / 0.823 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.01008/1.093, allocations: 3.293 MB / 1.371 GB, free: 14.97 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.533e-06/1.093, allocations: 0 / 1.371 GB, free: 14.97 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 8.456e-06/1.093, allocations: 4 kB / 1.371 GB, free: 14.97 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.0006341/1.094, allocations: 494.5 kB / 1.371 GB, free: 14.43 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.517e-05/1.094, allocations: 12.03 kB / 1.371 GB, free: 14.42 MB / 0.8386 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.631e-05/1.094, allocations: 33.88 kB / 1.371 GB, free: 14.38 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.913e-05/1.094, allocations: 11.86 kB / 1.371 GB, free: 14.37 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001492/1.094, allocations: 175.9 kB / 1.372 GB, free: 14.16 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.782e-05/1.094, allocations: 4 kB / 1.372 GB, free: 14.15 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.285e-05/1.094, allocations: 11.42 kB / 1.372 GB, free: 14.14 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001598/1.094, allocations: 79.72 kB / 1.372 GB, free: 14.07 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.095e-06/1.094, allocations: 0 / 1.372 GB, free: 14.07 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.222e-05/1.094, allocations: 0 / 1.372 GB, free: 14.07 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.478e-06/1.094, allocations: 0 / 1.372 GB, free: 14.07 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001/1.094, allocations: 42.23 kB / 1.372 GB, free: 14.05 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005336/1.095, allocations: 328.8 kB / 1.372 GB, free: 13.7 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001645/1.095, allocations: 77.38 kB / 1.372 GB, free: 13.64 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.336e-05/1.095, allocations: 35.59 kB / 1.372 GB, free: 13.61 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.367e-05/1.095, allocations: 4.141 kB / 1.372 GB, free: 13.61 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001665/1.095, allocations: 104.4 kB / 1.372 GB, free: 13.52 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=11): time 1.603e-06/1.095, allocations: 0 / 1.372 GB, free: 13.52 MB / 0.8386 GB Notification: Performance of matching and sorting (n=11): time 0.0002874/1.096, allocations: 128.5 kB / 1.372 GB, free: 13.41 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.112e-05/1.096, allocations: 59.34 kB / 1.372 GB, free: 13.34 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.158e-05/1.096, allocations: 126.1 kB / 1.372 GB, free: 13.21 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.73e-05/1.096, allocations: 29.52 kB / 1.372 GB, free: 13.18 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 5.555e-05/1.096, allocations: 98.94 kB / 1.373 GB, free: 13.09 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.426e-05/1.096, allocations: 18.84 kB / 1.373 GB, free: 13.07 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.344e-06/1.096, allocations: 7.312 kB / 1.373 GB, free: 13.07 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 9.828e-05/1.096, allocations: 322 kB / 1.373 GB, free: 12.75 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.961e-05/1.096, allocations: 22.56 kB / 1.373 GB, free: 12.73 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.416e-05/1.096, allocations: 65.95 kB / 1.373 GB, free: 12.66 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.466e-05/1.096, allocations: 41.09 kB / 1.373 GB, free: 12.63 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/1.096, allocations: 0 / 1.373 GB, free: 12.63 MB / 0.8386 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001903/1.096, allocations: 123.9 kB / 1.373 GB, free: 12.53 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.521e-05/1.096, allocations: 8 kB / 1.373 GB, free: 12.52 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.561e-06/1.096, allocations: 0 / 1.373 GB, free: 12.52 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.613e-05/1.096, allocations: 7.953 kB / 1.373 GB, free: 12.51 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001117/1.097, allocations: 15.98 kB / 1.373 GB, free: 12.5 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.047e-05/1.097, allocations: 7.938 kB / 1.373 GB, free: 12.49 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001038/1.097, allocations: 31.23 kB / 1.373 GB, free: 12.46 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.469e-05/1.097, allocations: 4 kB / 1.373 GB, free: 12.46 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 7.443e-05/1.097, allocations: 110.3 kB / 1.373 GB, free: 12.35 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.973e-05/1.097, allocations: 7.906 kB / 1.373 GB, free: 12.34 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002716/1.097, allocations: 154.6 kB / 1.373 GB, free: 12.22 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.368e-06/1.097, allocations: 7.938 kB / 1.374 GB, free: 12.21 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.11e-06/1.097, allocations: 7.953 kB / 1.374 GB, free: 12.2 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.567e-06/1.097, allocations: 0 / 1.374 GB, free: 12.2 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005228/1.098, allocations: 441.2 kB / 1.374 GB, free: 11.76 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/1.098, allocations: 0 / 1.374 GB, free: 11.76 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.364e-05/1.098, allocations: 15.98 kB / 1.374 GB, free: 11.75 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.719e-06/1.098, allocations: 3.953 kB / 1.374 GB, free: 11.74 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.291e-05/1.098, allocations: 3.125 kB / 1.374 GB, free: 11.74 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.755e-06/1.098, allocations: 8 kB / 1.374 GB, free: 11.73 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/1.098, allocations: 0 / 1.374 GB, free: 11.73 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002396/1.098, allocations: 224 kB / 1.374 GB, free: 11.53 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 4.444e-05/1.098, allocations: 85 kB / 1.374 GB, free: 11.43 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.457e-05/1.098, allocations: 7.953 kB / 1.374 GB, free: 11.42 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001165/1.098, allocations: 15.42 kB / 1.374 GB, free: 11.41 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.655e-05/1.098, allocations: 15.92 kB / 1.374 GB, free: 11.39 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.359e-05/1.098, allocations: 4 kB / 1.374 GB, free: 11.39 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 5.636e-05/1.098, allocations: 100.4 kB / 1.374 GB, free: 11.3 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.6e-07/1.098, allocations: 0 / 1.374 GB, free: 11.3 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003173/1.099, allocations: 63.19 kB / 1.374 GB, free: 11.24 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.000727/1.099, allocations: 0.8428 MB / 1.375 GB, free: 10.42 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001761/1.1, allocations: 78.05 kB / 1.375 GB, free: 10.36 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/1.1, allocations: 0 / 1.375 GB, free: 10.36 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 8.071e-05/1.1, allocations: 47.31 kB / 1.375 GB, free: 10.33 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002125/1.1, allocations: 23.62 kB / 1.375 GB, free: 10.31 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000516/1.1, allocations: 197.3 kB / 1.376 GB, free: 10.1 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002222/1.101, allocations: 0.6965 MB / 1.376 GB, free: 9.379 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 5.569e-05/1.101, allocations: 12.42 kB / 1.376 GB, free: 9.367 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.534e-05/1.101, allocations: 29.31 kB / 1.376 GB, free: 9.352 MB / 0.8386 GB Notification: Performance of SimCode: time 4.21e-07/1.101, allocations: 4 kB / 1.376 GB, free: 9.348 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01389/1.115, allocations: 3.129 MB / 1.379 GB, free: 6.379 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001909/1.115, allocations: 205.5 kB / 1.38 GB, free: 6.156 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.602/2.717, allocations: 5.656 kB / 1.38 GB, free: 6.152 MB / 0.8386 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