Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.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.Reinhart2003Light,fileNamePrefix="Buildings_9_Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light,fileNamePrefix="Buildings_9_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 9.1.1-maint.9.1.x/package.mo): time 2.143/2.143, allocations: 390.3 MB / 405.3 MB, free: 13.41 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.001041/0.001041, allocations: 174 kB / 498.1 MB, free: 5.684 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.436/1.436, allocations: 223.1 MB / 0.7948 GB, free: 18.84 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.0009797/0.0009798, allocations: 93.06 kB / 0.9346 GB, free: 7.137 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003714/0.0003714, allocations: 13.25 kB / 1.084 GB, free: 212.6 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2825/0.2829, allocations: 142.3 MB / 1.223 GB, free: 89.45 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1892/0.4721, allocations: 151.6 MB / 1.371 GB, free: 1.703 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002578/0.4724, allocations: 79.95 kB / 1.371 GB, free: 1.625 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.01013/0.4825, allocations: 3.387 MB / 1.374 GB, free: 14.23 MB / 0.8855 GB Notification: Performance of FrontEnd: time 1.974e-06/0.4826, allocations: 0 / 1.374 GB, free: 14.23 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 8.315e-06/0.4826, allocations: 4 kB / 1.374 GB, free: 14.23 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.0006801/0.4833, allocations: 0.5044 MB / 1.375 GB, free: 13.66 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.235e-05/0.4833, allocations: 8.031 kB / 1.375 GB, free: 13.65 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.26e-05/0.4834, allocations: 42.56 kB / 1.375 GB, free: 13.6 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.601e-05/0.4834, allocations: 11.86 kB / 1.375 GB, free: 13.59 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001546/0.4836, allocations: 186.8 kB / 1.375 GB, free: 13.36 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.394e-05/0.4836, allocations: 0 / 1.375 GB, free: 13.36 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.104e-05/0.4836, allocations: 8 kB / 1.375 GB, free: 13.36 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001877/0.4838, allocations: 81.58 kB / 1.375 GB, free: 13.27 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.628e-06/0.4838, allocations: 3.938 kB / 1.375 GB, free: 13.27 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.414e-05/0.4839, allocations: 3.984 kB / 1.375 GB, free: 13.26 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.005e-05/0.4839, allocations: 7.953 kB / 1.375 GB, free: 13.25 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001452/0.484, allocations: 55.91 kB / 1.375 GB, free: 13.2 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000549/0.4846, allocations: 332.7 kB / 1.376 GB, free: 12.82 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002134/0.4848, allocations: 86.7 kB / 1.376 GB, free: 12.73 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 2.325e-05/0.4848, allocations: 0 / 1.376 GB, free: 12.73 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000212/0.4851, allocations: 107.3 kB / 1.376 GB, free: 12.61 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=11): time 1.593e-06/0.4851, allocations: 0 / 1.376 GB, free: 12.61 MB / 0.8855 GB Notification: Performance of matching and sorting (n=11): time 0.000449/0.4855, allocations: 181.5 kB / 1.376 GB, free: 12.43 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.625e-05/0.4856, allocations: 51.41 kB / 1.376 GB, free: 12.37 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001135/0.4857, allocations: 143.5 kB / 1.376 GB, free: 12.22 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 2.094e-05/0.4857, allocations: 29.7 kB / 1.376 GB, free: 12.19 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 6.152e-05/0.4858, allocations: 100.2 kB / 1.376 GB, free: 12.09 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 6.552e-05/0.4859, allocations: 23.7 kB / 1.376 GB, free: 12.06 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.202e-06/0.4859, allocations: 0 / 1.376 GB, free: 12.06 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001117/0.486, allocations: 330.8 kB / 1.377 GB, free: 11.73 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.324e-05/0.4861, allocations: 23.98 kB / 1.377 GB, free: 11.71 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.702e-05/0.4862, allocations: 75.38 kB / 1.377 GB, free: 11.62 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.212e-05/0.4863, allocations: 43.97 kB / 1.377 GB, free: 11.57 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/0.4863, allocations: 0 / 1.377 GB, free: 11.57 MB / 0.8855 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002366/0.4865, allocations: 137.4 kB / 1.377 GB, free: 11.43 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.792e-05/0.4866, allocations: 7.953 kB / 1.377 GB, free: 11.43 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.935e-06/0.4866, allocations: 4 kB / 1.377 GB, free: 11.42 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.659e-05/0.4866, allocations: 4.094 kB / 1.377 GB, free: 11.42 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001143/0.4867, allocations: 23.92 kB / 1.377 GB, free: 11.39 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.043e-06/0.4867, allocations: 0 / 1.377 GB, free: 11.39 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001072/0.4868, allocations: 23.83 kB / 1.377 GB, free: 11.37 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.891e-05/0.4869, allocations: 8 kB / 1.377 GB, free: 11.36 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.0001024/0.487, allocations: 117.8 kB / 1.377 GB, free: 11.24 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.194e-05/0.487, allocations: 15.89 kB / 1.377 GB, free: 11.22 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003662/0.4874, allocations: 170.3 kB / 1.377 GB, free: 11.05 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.706e-06/0.4874, allocations: 0 / 1.377 GB, free: 11.05 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.065e-06/0.4874, allocations: 7.984 kB / 1.377 GB, free: 11.04 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.067e-06/0.4874, allocations: 4 kB / 1.377 GB, free: 11.04 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006259/0.4881, allocations: 477.8 kB / 1.378 GB, free: 10.52 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.973e-06/0.4881, allocations: 0 / 1.378 GB, free: 10.52 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.348e-05/0.4882, allocations: 15.98 kB / 1.378 GB, free: 10.5 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.398e-06/0.4882, allocations: 0 / 1.378 GB, free: 10.5 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.513e-05/0.4882, allocations: 11.88 kB / 1.378 GB, free: 10.49 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.4882, allocations: 0 / 1.378 GB, free: 10.49 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.4882, allocations: 0 / 1.378 GB, free: 10.49 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003135/0.4885, allocations: 251.3 kB / 1.378 GB, free: 10.23 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 4.808e-05/0.4886, allocations: 88.97 kB / 1.378 GB, free: 10.12 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.737e-05/0.4886, allocations: 7.984 kB / 1.378 GB, free: 10.12 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001186/0.4887, allocations: 8 kB / 1.378 GB, free: 10.11 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.139e-05/0.4888, allocations: 15.97 kB / 1.378 GB, free: 10.09 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.235e-05/0.4888, allocations: 8 kB / 1.378 GB, free: 10.09 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 6.392e-05/0.4889, allocations: 104.5 kB / 1.378 GB, free: 9.984 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4889, allocations: 0 / 1.378 GB, free: 9.984 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0003701/0.4893, allocations: 55.92 kB / 1.378 GB, free: 9.93 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.000934/0.4902, allocations: 0.8704 MB / 1.379 GB, free: 9.051 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0002545/0.4905, allocations: 99.88 kB / 1.379 GB, free: 8.953 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.4905, allocations: 192 / 1.379 GB, free: 8.953 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0001128/0.4906, allocations: 55.92 kB / 1.379 GB, free: 8.898 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000233/0.4908, allocations: 19.92 kB / 1.379 GB, free: 8.879 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001077/0.4919, allocations: 1.264 MB / 1.38 GB, free: 7.535 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002486/0.4922, allocations: 0.7004 MB / 1.381 GB, free: 6.809 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 5.75e-05/0.4923, allocations: 20.48 kB / 1.381 GB, free: 6.789 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.753e-05/0.4923, allocations: 31.42 kB / 1.381 GB, free: 6.758 MB / 0.8855 GB Notification: Performance of SimCode: time 5.81e-07/0.4923, allocations: 4 kB / 1.381 GB, free: 6.754 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01613/0.5085, allocations: 3.233 MB / 1.384 GB, free: 3.676 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002467/0.5088, allocations: 226.4 kB / 1.385 GB, free: 3.441 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.572/2.081, allocations: 0 / 1.385 GB, free: 3.441 MB / 0.8855 GB (rm -f Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light_res.mat --tempDir=temp_Buildings_9_Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light.fmu > Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light_res.mat does not exist to compare? outputFormat=mat