Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light,fileNamePrefix="Buildings_8_Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light,fileNamePrefix="Buildings_8_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 8.1.4-maint.8.1.x/package.mo): time 1.767/1.767, allocations: 289.9 MB / 297.4 MB, free: 6.395 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001158/0.001158, allocations: 180.8 kB / 366.7 MB, free: 1.645 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.006/2.006, allocations: 205.2 MB / 0.626 GB, free: 7.148 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008507/0.0008509, allocations: 90.61 kB / 0.74 GB, free: 39.57 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.28e-05/2.284e-05, allocations: 4 kB / 0.8598 GB, free: 12.97 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6965/0.6965, allocations: 116.3 MB / 0.9733 GB, free: 76.07 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1915/0.8881, allocations: 140.6 MB / 1.111 GB, free: 9.492 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002403/0.8884, allocations: 80.77 kB / 1.111 GB, free: 9.414 MB / 0.7136 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.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.009854/0.8983, allocations: 3.307 MB / 1.114 GB, free: 6.145 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.503e-06/0.8983, allocations: 0 / 1.114 GB, free: 6.145 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 9.328e-06/0.8983, allocations: 0 / 1.114 GB, free: 6.145 MB / 0.7136 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.0006852/0.899, allocations: 498.1 kB / 1.114 GB, free: 5.598 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.637e-05/0.8991, allocations: 12.02 kB / 1.114 GB, free: 5.586 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.758e-05/0.8991, allocations: 11.81 kB / 1.114 GB, free: 5.574 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001735/0.8993, allocations: 179 kB / 1.115 GB, free: 5.359 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.161e-05/0.8993, allocations: 5.125 kB / 1.115 GB, free: 5.355 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.206e-05/0.8993, allocations: 4.531 kB / 1.115 GB, free: 5.352 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001099/0.8995, allocations: 36.61 kB / 1.115 GB, free: 5.316 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001349/0.8996, allocations: 76.48 kB / 1.115 GB, free: 5.238 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.354e-06/0.8996, allocations: 0 / 1.115 GB, free: 5.238 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.326e-05/0.8996, allocations: 0 / 1.115 GB, free: 5.238 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.032e-06/0.8997, allocations: 4 kB / 1.115 GB, free: 5.234 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005225/0.9002, allocations: 306.6 kB / 1.115 GB, free: 4.898 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001612/0.9004, allocations: 72.88 kB / 1.115 GB, free: 4.824 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.901e-05/0.9004, allocations: 38.22 kB / 1.115 GB, free: 4.785 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 2.105e-05/0.9005, allocations: 0 / 1.115 GB, free: 4.785 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000167/0.9006, allocations: 95.31 kB / 1.115 GB, free: 4.68 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=11): time 1.433e-06/0.9006, allocations: 0 / 1.115 GB, free: 4.68 MB / 0.7136 GB Notification: Performance of matching and sorting (n=11): time 0.0002927/0.9009, allocations: 123.9 kB / 1.115 GB, free: 4.555 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.483e-05/0.901, allocations: 55.39 kB / 1.115 GB, free: 4.488 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001107/0.9011, allocations: 134.9 kB / 1.116 GB, free: 4.352 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 2.666e-05/0.9011, allocations: 25.7 kB / 1.116 GB, free: 4.32 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 5.256e-05/0.9012, allocations: 92.14 kB / 1.116 GB, free: 4.227 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 3.214e-05/0.9012, allocations: 35.72 kB / 1.116 GB, free: 4.191 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.632e-06/0.9012, allocations: 4 kB / 1.116 GB, free: 4.188 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001185/0.9014, allocations: 318.8 kB / 1.116 GB, free: 3.867 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.567e-05/0.9014, allocations: 24 kB / 1.116 GB, free: 3.844 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.865e-05/0.9015, allocations: 65.08 kB / 1.116 GB, free: 3.762 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.958e-05/0.9016, allocations: 31.97 kB / 1.116 GB, free: 3.73 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.9016, allocations: 2.812 kB / 1.116 GB, free: 3.73 MB / 0.7136 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001859/0.9018, allocations: 109.4 kB / 1.116 GB, free: 3.617 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.474e-05/0.9018, allocations: 4 kB / 1.116 GB, free: 3.613 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.135e-06/0.9018, allocations: 4 kB / 1.116 GB, free: 3.609 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.241e-05/0.9018, allocations: 0 / 1.116 GB, free: 3.609 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000119/0.9019, allocations: 23.98 kB / 1.116 GB, free: 3.586 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.548e-06/0.902, allocations: 7.891 kB / 1.116 GB, free: 3.578 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000102/0.9021, allocations: 23.98 kB / 1.116 GB, free: 3.555 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.456e-05/0.9021, allocations: 4 kB / 1.116 GB, free: 3.551 MB / 0.7136 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 8.626e-05/0.9022, allocations: 109 kB / 1.116 GB, free: 3.438 MB / 0.7136 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.000217/0.9024, allocations: 117.6 kB / 1.116 GB, free: 3.316 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.927e-05/0.9024, allocations: 11.91 kB / 1.116 GB, free: 3.305 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002842/0.9027, allocations: 150.1 kB / 1.117 GB, free: 3.156 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.25e-06/0.9027, allocations: 3.953 kB / 1.117 GB, free: 3.152 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/0.9028, allocations: 8 kB / 1.117 GB, free: 3.145 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.771e-06/0.9028, allocations: 0 / 1.117 GB, free: 3.145 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005307/0.9033, allocations: 416 kB / 1.117 GB, free: 2.695 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.482e-06/0.9033, allocations: 0 / 1.117 GB, free: 2.695 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.597e-05/0.9034, allocations: 15.98 kB / 1.117 GB, free: 2.68 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.51e-06/0.9034, allocations: 7.953 kB / 1.117 GB, free: 2.672 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.431e-05/0.9034, allocations: 8 kB / 1.117 GB, free: 2.664 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.312e-06/0.9034, allocations: 0 / 1.117 GB, free: 2.664 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.9035, allocations: 0 / 1.117 GB, free: 2.664 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002593/0.9037, allocations: 233.8 kB / 1.117 GB, free: 2.422 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 4.43e-05/0.9038, allocations: 88.95 kB / 1.117 GB, free: 2.316 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.603e-05/0.9038, allocations: 3.953 kB / 1.117 GB, free: 2.312 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001202/0.9039, allocations: 11.98 kB / 1.117 GB, free: 2.301 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.693e-05/0.904, allocations: 16.8 kB / 1.117 GB, free: 2.285 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.289e-05/0.904, allocations: 4 kB / 1.117 GB, free: 2.281 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 6.844e-05/0.9041, allocations: 105.7 kB / 1.118 GB, free: 2.18 MB / 0.7136 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9041, allocations: 3.656 kB / 1.118 GB, free: 2.18 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0003148/0.9044, allocations: 59.91 kB / 1.118 GB, free: 2.121 MB / 0.7136 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 (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.0008761/0.9053, allocations: 0.8277 MB / 1.118 GB, free: 1.285 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0001613/0.9055, allocations: 81.33 kB / 1.118 GB, free: 1.207 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.9055, allocations: 0 / 1.118 GB, free: 1.207 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 8.075e-05/0.9056, allocations: 47.97 kB / 1.119 GB, free: 1.16 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002266/0.9058, allocations: 20.17 kB / 1.119 GB, free: 1.141 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005256/0.9063, allocations: 202.1 kB / 1.119 GB, free: 0.9062 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002313/0.9066, allocations: 0.7002 MB / 1.119 GB, free: 184 kB / 0.7136 GB Notification: Performance of simCode: alias equations: time 5.351e-05/0.9066, allocations: 16.55 kB / 1.119 GB, free: 168 kB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.139e-05/0.9067, allocations: 31.42 kB / 1.119 GB, free: 136 kB / 0.7136 GB Notification: Performance of SimCode: time 2.61e-07/0.9067, allocations: 0 / 1.119 GB, free: 136 kB / 0.7136 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02372/0.9304, allocations: 2.93 MB / 1.122 GB, free: 13.26 MB / 0.7292 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002046/0.9307, allocations: 186.5 kB / 1.122 GB, free: 13.07 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.629/2.56, allocations: 0 / 1.122 GB, free: 13.07 MB / 0.7292 GB (rm -f Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe ; mkfifo Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe ; head -c 1048576 < Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe >> ../files/Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light.fmu > Buildings_8_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe 2>&1)