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.397/1.397, allocations: 249.5 MB / 257 MB, free: 6.988 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.0009417/0.0009416, allocations: 188.8 kB / 316.3 MB, free: 3.227 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.56/1.56, allocations: 205.3 MB / 0.5671 GB, free: 15.82 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.0008378/0.0008378, allocations: 86.34 kB / 0.6714 GB, free: 4.93 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.811e-05/1.812e-05, allocations: 4 kB / 0.7815 GB, free: 102.6 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.214/0.214, allocations: 106.3 MB / 0.8853 GB, free: 12.16 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.752/0.9661, allocations: 134.3 MB / 1.016 GB, free: 3.207 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000257/0.9664, allocations: 76.33 kB / 1.017 GB, free: 3.164 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.009842/0.9763, allocations: 3.302 MB / 1.02 GB, free: 380 kB / 0.6355 GB Notification: Performance of FrontEnd: time 1.282e-06/0.9763, allocations: 0 / 1.02 GB, free: 380 kB / 0.6355 GB Notification: Performance of Transformations before backend: time 8.846e-06/0.9763, allocations: 7.938 kB / 1.02 GB, free: 372 kB / 0.6355 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.0006883/0.977, allocations: 497.2 kB / 1.02 GB, free: 15.82 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 5.051e-05/0.9771, allocations: 16.03 kB / 1.02 GB, free: 15.81 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.282e-05/0.9771, allocations: 7.906 kB / 1.02 GB, free: 15.8 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001836/0.9773, allocations: 184.9 kB / 1.02 GB, free: 15.58 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.177e-05/0.9774, allocations: 0 / 1.02 GB, free: 15.58 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.474e-05/0.9774, allocations: 4 kB / 1.02 GB, free: 15.58 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001281/0.9775, allocations: 41.73 kB / 1.02 GB, free: 15.55 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001356/0.9777, allocations: 69.03 kB / 1.021 GB, free: 15.49 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.016e-05/0.9777, allocations: 0 / 1.021 GB, free: 15.49 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.582e-05/0.9777, allocations: 0 / 1.021 GB, free: 15.49 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.518e-06/0.9777, allocations: 0 / 1.021 GB, free: 15.49 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006082/0.9783, allocations: 314.1 kB / 1.021 GB, free: 15.17 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001634/0.9785, allocations: 76.58 kB / 1.021 GB, free: 15.11 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.731e-05/0.9786, allocations: 31.8 kB / 1.021 GB, free: 15.08 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 2.519e-05/0.9786, allocations: 4 kB / 1.021 GB, free: 15.08 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001652/0.9788, allocations: 90.39 kB / 1.021 GB, free: 14.99 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=11): time 1.803e-06/0.9788, allocations: 0 / 1.021 GB, free: 14.99 MB / 0.6511 GB Notification: Performance of matching and sorting (n=11): time 0.000342/0.9792, allocations: 135 kB / 1.021 GB, free: 14.88 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.653e-05/0.9792, allocations: 51.41 kB / 1.021 GB, free: 14.81 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001174/0.9793, allocations: 123.8 kB / 1.021 GB, free: 14.7 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 2.334e-05/0.9794, allocations: 29.7 kB / 1.021 GB, free: 14.66 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 5.494e-05/0.9794, allocations: 99.06 kB / 1.021 GB, free: 14.57 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 3.271e-05/0.9795, allocations: 31.23 kB / 1.021 GB, free: 14.54 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.414e-06/0.9795, allocations: 0 / 1.021 GB, free: 14.54 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001205/0.9796, allocations: 318.5 kB / 1.022 GB, free: 14.23 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.466e-05/0.9797, allocations: 23.3 kB / 1.022 GB, free: 14.21 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.144e-05/0.9797, allocations: 55.84 kB / 1.022 GB, free: 14.15 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.716e-05/0.9798, allocations: 35.28 kB / 1.022 GB, free: 14.12 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.9798, allocations: 0 / 1.022 GB, free: 14.12 MB / 0.6511 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000185/0.98, allocations: 112 kB / 1.022 GB, free: 14.02 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.619e-05/0.98, allocations: 4 kB / 1.022 GB, free: 14.02 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.98, allocations: 0 / 1.022 GB, free: 14.02 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.469e-05/0.9801, allocations: 4 kB / 1.022 GB, free: 14.01 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001282/0.9802, allocations: 31.66 kB / 1.022 GB, free: 13.98 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.685e-06/0.9802, allocations: 4 kB / 1.022 GB, free: 13.98 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001058/0.9803, allocations: 12.86 kB / 1.022 GB, free: 13.97 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.524e-05/0.9803, allocations: 4 kB / 1.022 GB, free: 13.96 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 8.985e-05/0.9804, allocations: 108.9 kB / 1.022 GB, free: 13.85 MB / 0.6511 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002191/0.9807, allocations: 134.6 kB / 1.022 GB, free: 13.74 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.638e-05/0.9807, allocations: 7.906 kB / 1.022 GB, free: 13.73 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000291/0.981, allocations: 166.3 kB / 1.022 GB, free: 13.59 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.026e-06/0.981, allocations: 0 / 1.022 GB, free: 13.59 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.54e-06/0.981, allocations: 0 / 1.022 GB, free: 13.59 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.981, allocations: 0 / 1.022 GB, free: 13.59 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005426/0.9816, allocations: 417.7 kB / 1.023 GB, free: 13.18 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/0.9816, allocations: 0 / 1.023 GB, free: 13.18 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.662e-05/0.9817, allocations: 19.95 kB / 1.023 GB, free: 13.16 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.482e-06/0.9817, allocations: 3.984 kB / 1.023 GB, free: 13.16 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.6e-05/0.9817, allocations: 7.562 kB / 1.023 GB, free: 13.16 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.014e-06/0.9817, allocations: 0 / 1.023 GB, free: 13.16 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.9817, allocations: 0 / 1.023 GB, free: 13.16 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002666/0.982, allocations: 226.1 kB / 1.023 GB, free: 12.95 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 4.545e-05/0.9821, allocations: 92.91 kB / 1.023 GB, free: 12.84 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.662e-05/0.9821, allocations: 15.44 kB / 1.023 GB, free: 12.82 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001203/0.9822, allocations: 15.94 kB / 1.023 GB, free: 12.81 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.069e-05/0.9823, allocations: 11.97 kB / 1.023 GB, free: 12.8 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.268e-05/0.9823, allocations: 4 kB / 1.023 GB, free: 12.79 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 6.473e-05/0.9824, allocations: 105.9 kB / 1.023 GB, free: 12.7 MB / 0.6511 GB Notification: Performance of sort global known variables: time 3.11e-07/0.9824, allocations: 0 / 1.023 GB, free: 12.7 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0003518/0.9828, allocations: 48 kB / 1.023 GB, free: 12.66 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.0008826/0.9836, allocations: 0.8392 MB / 1.024 GB, free: 11.84 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0001695/0.9838, allocations: 78.73 kB / 1.024 GB, free: 11.78 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 3.938e-06/0.9838, allocations: 4.188 kB / 1.024 GB, free: 11.77 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 7.851e-05/0.9839, allocations: 44.31 kB / 1.024 GB, free: 11.74 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002392/0.9842, allocations: 17.48 kB / 1.024 GB, free: 11.73 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005721/0.9848, allocations: 192 kB / 1.025 GB, free: 11.53 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002554/0.985, allocations: 0.708 MB / 1.025 GB, free: 10.79 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 6.046e-05/0.9851, allocations: 12.55 kB / 1.025 GB, free: 10.78 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.752e-05/0.9852, allocations: 34.98 kB / 1.025 GB, free: 10.76 MB / 0.6511 GB Notification: Performance of SimCode: time 4.11e-07/0.9852, allocations: 0 / 1.025 GB, free: 10.76 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02262/1.008, allocations: 2.943 MB / 1.028 GB, free: 7.828 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002742/1.008, allocations: 188.5 kB / 1.028 GB, free: 7.641 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.552/2.561, allocations: 2.875 kB / 1.028 GB, free: 7.641 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)