Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light,fileNamePrefix="Buildings_maint_7_0_x_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 7.0.3-maint.7.0.x/package.mo): time 1.529/1.529, allocations: 249.3 MB / 261.8 MB, free: 5.965 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001097/0.001097, allocations: 188.8 kB / 321.3 MB, free: 14.63 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.669/1.669, allocations: 205.2 MB / 0.572 GB, free: 10.7 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009986/0.0009983, allocations: 94.45 kB / 0.6764 GB, free: 15.67 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.404e-05/3.423e-05, allocations: 0 / 0.788 GB, free: 97.01 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2451/0.2452, allocations: 106.3 MB / 0.8919 GB, free: 6.582 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7981/1.043, allocations: 134 MB / 1.023 GB, free: 0.75 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002877/1.044, allocations: 80.94 kB / 1.023 GB, free: 0.7031 MB / 0.6355 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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.01034/1.054, allocations: 3.312 MB / 1.026 GB, free: 13.87 MB / 0.6511 GB Notification: Performance of FrontEnd: time 1.683e-06/1.054, allocations: 0 / 1.026 GB, free: 13.87 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 1.221e-05/1.054, allocations: 4 kB / 1.026 GB, free: 13.86 MB / 0.6511 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.000895/1.055, allocations: 492.8 kB / 1.027 GB, free: 13.33 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 5.119e-05/1.055, allocations: 12.03 kB / 1.027 GB, free: 13.32 MB / 0.6511 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.556e-05/1.055, allocations: 38.92 kB / 1.027 GB, free: 13.27 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.019e-05/1.055, allocations: 11.84 kB / 1.027 GB, free: 13.26 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001782/1.055, allocations: 186.8 kB / 1.027 GB, free: 13.04 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.109e-05/1.055, allocations: 7.25 kB / 1.027 GB, free: 13.04 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.361e-05/1.055, allocations: 4 kB / 1.027 GB, free: 13.03 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001781/1.056, allocations: 74.89 kB / 1.027 GB, free: 12.96 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.616e-06/1.056, allocations: 0 / 1.027 GB, free: 12.96 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.398e-05/1.056, allocations: 4 kB / 1.027 GB, free: 12.96 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.38e-06/1.056, allocations: 0 / 1.027 GB, free: 12.96 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001096/1.056, allocations: 48.88 kB / 1.027 GB, free: 12.93 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006891/1.056, allocations: 329.4 kB / 1.027 GB, free: 12.59 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002058/1.057, allocations: 75.7 kB / 1.027 GB, free: 12.52 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.151e-05/1.057, allocations: 35.11 kB / 1.027 GB, free: 12.5 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 2.623e-05/1.057, allocations: 0 / 1.027 GB, free: 12.5 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002225/1.057, allocations: 103 kB / 1.027 GB, free: 12.4 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=11): time 2.024e-06/1.057, allocations: 0 / 1.027 GB, free: 12.4 MB / 0.6511 GB Notification: Performance of matching and sorting (n=11): time 0.0003267/1.057, allocations: 134.7 kB / 1.028 GB, free: 12.29 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.019e-05/1.057, allocations: 55.41 kB / 1.028 GB, free: 12.22 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001232/1.058, allocations: 138.4 kB / 1.028 GB, free: 12.09 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 2.062e-05/1.058, allocations: 29.64 kB / 1.028 GB, free: 12.06 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 5.746e-05/1.058, allocations: 91.27 kB / 1.028 GB, free: 11.97 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 3.963e-05/1.058, allocations: 34.23 kB / 1.028 GB, free: 11.95 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.262e-06/1.058, allocations: 0 / 1.028 GB, free: 11.95 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001321/1.058, allocations: 322.6 kB / 1.028 GB, free: 11.62 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.703e-05/1.058, allocations: 23.75 kB / 1.028 GB, free: 11.61 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.153e-05/1.058, allocations: 65.28 kB / 1.028 GB, free: 11.54 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.68e-05/1.058, allocations: 31.22 kB / 1.028 GB, free: 11.52 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/1.058, allocations: 0 / 1.028 GB, free: 11.52 MB / 0.6511 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002296/1.058, allocations: 126.7 kB / 1.028 GB, free: 11.41 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 2.061e-05/1.058, allocations: 12.05 kB / 1.028 GB, free: 11.39 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.727e-06/1.058, allocations: 4 kB / 1.028 GB, free: 11.39 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.538e-05/1.058, allocations: 3.938 kB / 1.028 GB, free: 11.39 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001164/1.059, allocations: 15.98 kB / 1.028 GB, free: 11.37 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.033e-05/1.059, allocations: 4 kB / 1.028 GB, free: 11.37 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001176/1.059, allocations: 15.86 kB / 1.028 GB, free: 11.36 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.897e-05/1.059, allocations: 15.92 kB / 1.028 GB, free: 11.34 MB / 0.6511 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 0.0001002/1.059, allocations: 120.5 kB / 1.029 GB, free: 11.22 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.693e-05/1.059, allocations: 17.25 kB / 1.029 GB, free: 11.2 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003274/1.059, allocations: 163 kB / 1.029 GB, free: 11.07 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.24e-06/1.059, allocations: 4 kB / 1.029 GB, free: 11.07 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.079e-06/1.059, allocations: 0 / 1.029 GB, free: 11.07 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.917e-06/1.059, allocations: 0 / 1.029 GB, free: 11.07 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005824/1.06, allocations: 457 kB / 1.029 GB, free: 10.62 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.649e-06/1.06, allocations: 7.938 kB / 1.029 GB, free: 10.61 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.273e-05/1.06, allocations: 12 kB / 1.029 GB, free: 10.6 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.608e-06/1.06, allocations: 0 / 1.029 GB, free: 10.6 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.913e-05/1.06, allocations: 7.547 kB / 1.029 GB, free: 10.6 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.018e-06/1.06, allocations: 7.938 kB / 1.029 GB, free: 10.59 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.935e-06/1.06, allocations: 4 kB / 1.029 GB, free: 10.59 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002835/1.06, allocations: 230.7 kB / 1.029 GB, free: 10.37 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 6.156e-05/1.06, allocations: 88.97 kB / 1.03 GB, free: 10.27 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.597e-05/1.06, allocations: 7.312 kB / 1.03 GB, free: 10.26 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001233/1.061, allocations: 11.98 kB / 1.03 GB, free: 10.25 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.239e-05/1.061, allocations: 11.25 kB / 1.03 GB, free: 10.24 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.803e-05/1.061, allocations: 11.97 kB / 1.03 GB, free: 10.23 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 6.654e-05/1.061, allocations: 108.2 kB / 1.03 GB, free: 10.14 MB / 0.6511 GB Notification: Performance of sort global known variables: time 2.3e-07/1.061, allocations: 0 / 1.03 GB, free: 10.14 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0003914/1.061, allocations: 59.88 kB / 1.03 GB, free: 10.08 MB / 0.6511 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.0008396/1.062, allocations: 0.8369 MB / 1.031 GB, free: 9.266 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0001975/1.062, allocations: 93.55 kB / 1.031 GB, free: 9.195 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 3.566e-06/1.062, allocations: 0 / 1.031 GB, free: 9.195 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 8.988e-05/1.062, allocations: 46.75 kB / 1.031 GB, free: 9.16 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002419/1.063, allocations: 17.92 kB / 1.031 GB, free: 9.148 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000625/1.063, allocations: 205.8 kB / 1.031 GB, free: 8.934 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002819/1.063, allocations: 0.7122 MB / 1.032 GB, free: 8.195 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 6.571e-05/1.064, allocations: 12.55 kB / 1.032 GB, free: 8.18 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.083e-05/1.064, allocations: 31.92 kB / 1.032 GB, free: 8.164 MB / 0.6511 GB Notification: Performance of SimCode: time 8.91e-07/1.064, allocations: 7.938 kB / 1.032 GB, free: 8.156 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02079/1.084, allocations: 3.282 MB / 1.035 GB, free: 4.996 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003273/1.085, allocations: 207 kB / 1.035 GB, free: 4.777 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.657/2.742, allocations: 4 kB / 1.035 GB, free: 4.773 MB / 0.6511 GB (rm -f Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light.fmu > Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe 2>&1)