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.459/1.459, allocations: 251.9 MB / 266.9 MB, free: 11.01 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00111/0.00111, allocations: 183.8 kB / 326.5 MB, free: 2.219 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.895/1.895, allocations: 205.4 MB / 0.5775 GB, free: 20.26 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.0009318/0.0009318, allocations: 87.75 kB / 0.6821 GB, free: 12.88 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004023/0.0004021, allocations: 10.09 kB / 0.7963 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2829/0.2834, allocations: 106.3 MB / 0.9002 GB, free: 63.8 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1959/0.4793, allocations: 134.1 MB / 1.031 GB, free: 9.562 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003074/0.4797, allocations: 75.95 kB / 1.031 GB, free: 9.488 MB / 0.6823 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.01097/0.4907, allocations: 3.339 MB / 1.034 GB, free: 6.145 MB / 0.6823 GB Notification: Performance of FrontEnd: time 4.258e-06/0.4908, allocations: 0 / 1.034 GB, free: 6.145 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 1.194e-05/0.4908, allocations: 0 / 1.034 GB, free: 6.145 MB / 0.6823 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.0009527/0.4917, allocations: 0.5081 MB / 1.035 GB, free: 5.57 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 6.695e-05/0.4918, allocations: 8.031 kB / 1.035 GB, free: 5.562 MB / 0.6823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.866e-05/0.4919, allocations: 38.55 kB / 1.035 GB, free: 5.516 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.495e-05/0.492, allocations: 11.81 kB / 1.035 GB, free: 5.504 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002124/0.4922, allocations: 178.9 kB / 1.035 GB, free: 5.289 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.117e-05/0.4922, allocations: 4 kB / 1.035 GB, free: 5.285 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.523e-05/0.4923, allocations: 7.984 kB / 1.035 GB, free: 5.277 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002534/0.4925, allocations: 89.58 kB / 1.035 GB, free: 5.184 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.054e-05/0.4925, allocations: 0 / 1.035 GB, free: 5.184 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.94e-05/0.4926, allocations: 3.984 kB / 1.035 GB, free: 5.18 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.145e-06/0.4926, allocations: 4 kB / 1.035 GB, free: 5.176 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001961/0.4928, allocations: 55.86 kB / 1.035 GB, free: 5.121 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008188/0.4936, allocations: 336.7 kB / 1.036 GB, free: 4.742 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002944/0.4939, allocations: 86.69 kB / 1.036 GB, free: 4.648 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.5e-05/0.494, allocations: 0 / 1.036 GB, free: 4.648 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000259/0.4942, allocations: 101.3 kB / 1.036 GB, free: 4.539 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=11): time 2.335e-06/0.4943, allocations: 0 / 1.036 GB, free: 4.539 MB / 0.6823 GB Notification: Performance of matching and sorting (n=11): time 0.0005707/0.4948, allocations: 185.4 kB / 1.036 GB, free: 4.352 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.966e-05/0.4949, allocations: 55.34 kB / 1.036 GB, free: 4.285 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001556/0.4951, allocations: 142.6 kB / 1.036 GB, free: 4.141 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 2.676e-05/0.4951, allocations: 25.7 kB / 1.036 GB, free: 4.109 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 8.679e-05/0.4952, allocations: 100.1 kB / 1.036 GB, free: 4.008 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 5.071e-05/0.4953, allocations: 19.72 kB / 1.036 GB, free: 3.988 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.496e-06/0.4953, allocations: 0 / 1.036 GB, free: 3.988 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001715/0.4955, allocations: 326.8 kB / 1.037 GB, free: 3.66 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.9e-05/0.4956, allocations: 31.91 kB / 1.037 GB, free: 3.629 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001276/0.4957, allocations: 69.14 kB / 1.037 GB, free: 3.543 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001264/0.4958, allocations: 39.98 kB / 1.037 GB, free: 3.504 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.4959, allocations: 0 / 1.037 GB, free: 3.504 MB / 0.6823 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003478/0.4962, allocations: 141.4 kB / 1.037 GB, free: 3.359 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 2.219e-05/0.4962, allocations: 4 kB / 1.037 GB, free: 3.355 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.432e-05/0.4963, allocations: 7.953 kB / 1.037 GB, free: 3.348 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.52e-05/0.4963, allocations: 4 kB / 1.037 GB, free: 3.344 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001511/0.4965, allocations: 19.92 kB / 1.037 GB, free: 3.324 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.309e-05/0.4965, allocations: 7.984 kB / 1.037 GB, free: 3.316 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001365/0.4966, allocations: 16 kB / 1.037 GB, free: 3.301 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.18e-05/0.4967, allocations: 15.98 kB / 1.037 GB, free: 3.285 MB / 0.6823 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.000143/0.4968, allocations: 124.8 kB / 1.037 GB, free: 3.156 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.935e-05/0.4969, allocations: 7.906 kB / 1.037 GB, free: 3.148 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004688/0.4973, allocations: 174.3 kB / 1.037 GB, free: 2.969 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.462e-06/0.4974, allocations: 3.953 kB / 1.037 GB, free: 2.965 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/0.4974, allocations: 4 kB / 1.037 GB, free: 2.961 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.801e-06/0.4974, allocations: 144 / 1.037 GB, free: 2.961 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009073/0.4983, allocations: 479.8 kB / 1.038 GB, free: 2.438 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.4983, allocations: 0 / 1.038 GB, free: 2.438 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000104/0.4984, allocations: 27.88 kB / 1.038 GB, free: 2.41 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.028e-06/0.4984, allocations: 0 / 1.038 GB, free: 2.41 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.653e-05/0.4985, allocations: 0 / 1.038 GB, free: 2.41 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.704e-06/0.4985, allocations: 7.984 kB / 1.038 GB, free: 2.402 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.4985, allocations: 3.938 kB / 1.038 GB, free: 2.398 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003456/0.4988, allocations: 245.5 kB / 1.038 GB, free: 2.145 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 6.605e-05/0.4989, allocations: 96.92 kB / 1.038 GB, free: 2.031 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.983e-05/0.499, allocations: 3.953 kB / 1.038 GB, free: 2.027 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000129/0.4991, allocations: 11.98 kB / 1.038 GB, free: 2.016 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.336e-05/0.4992, allocations: 15.98 kB / 1.038 GB, free: 2 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.405e-05/0.4992, allocations: 4 kB / 1.038 GB, free: 1.996 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 8.871e-05/0.4993, allocations: 109.3 kB / 1.038 GB, free: 1.891 MB / 0.6823 GB Notification: Performance of sort global known variables: time 4.01e-07/0.4993, allocations: 0 / 1.038 GB, free: 1.891 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0004169/0.4997, allocations: 51.94 kB / 1.038 GB, free: 1.84 MB / 0.6823 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.001127/0.5008, allocations: 0.8685 MB / 1.039 GB, free: 0.9609 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0002551/0.5011, allocations: 93.77 kB / 1.039 GB, free: 0.8711 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.5011, allocations: 0 / 1.039 GB, free: 0.8711 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0001339/0.5013, allocations: 59.91 kB / 1.039 GB, free: 0.8125 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002707/0.5015, allocations: 19.5 kB / 1.039 GB, free: 0.7969 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001386/0.5029, allocations: 1.264 MB / 1.041 GB, free: 15.46 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003244/0.5033, allocations: 0.7043 MB / 1.041 GB, free: 14.73 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 6.111e-05/0.5033, allocations: 8.844 kB / 1.041 GB, free: 14.72 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.16e-05/0.5034, allocations: 31.42 kB / 1.041 GB, free: 14.69 MB / 0.698 GB Notification: Performance of SimCode: time 4.8e-07/0.5034, allocations: 0 / 1.041 GB, free: 14.69 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01821/0.5217, allocations: 3.235 MB / 1.044 GB, free: 11.62 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002033/0.5219, allocations: 249.2 kB / 1.045 GB, free: 11.37 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.738/2.26, allocations: 2.344 kB / 1.045 GB, free: 11.37 MB / 0.698 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)