Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.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: translateModel(Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|lig.ill|lig.occ|lig.pArriv|lig.on",fileNamePrefix="Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light") translateModel(Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|lig.ill|lig.occ|lig.pArriv|lig.on",fileNamePrefix="Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.375/2.375, allocations: 387.1 MB / 399.7 MB, free: 9.484 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.00164/0.00164, allocations: 184.8 kB / 492.3 MB, free: 0.6211 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.574/1.574, allocations: 221.3 MB / 0.7871 GB, free: 12.93 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.0008236/0.0008236, allocations: 98.75 kB / 0.9267 GB, free: 13.98 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.321e-05/3.326e-05, allocations: 4 kB / 1.073 GB, free: 180.4 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3106/0.3107, allocations: 142.3 MB / 1.212 GB, free: 38.54 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9758/1.287, allocations: 151.4 MB / 1.36 GB, free: 18.98 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002531/1.287, allocations: 86.11 kB / 1.36 GB, free: 18.98 MB / 0.823 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.00985/1.297, allocations: 3.279 MB / 1.364 GB, free: 34.5 MB / 0.8386 GB Notification: Performance of FrontEnd: time 2.034e-06/1.297, allocations: 3.938 kB / 1.364 GB, free: 34.5 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 9.457e-06/1.297, allocations: 3.812 kB / 1.364 GB, free: 34.5 MB / 0.8386 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.0005553/1.297, allocations: 491.3 kB / 1.364 GB, free: 34.03 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.106e-05/1.297, allocations: 7.812 kB / 1.364 GB, free: 34.03 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.355e-05/1.297, allocations: 7.812 kB / 1.364 GB, free: 34.02 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001152/1.298, allocations: 179.6 kB / 1.364 GB, free: 33.82 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.132e-05/1.298, allocations: 9.172 kB / 1.364 GB, free: 33.82 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.18e-05/1.298, allocations: 7.781 kB / 1.364 GB, free: 33.81 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000157/1.298, allocations: 74.41 kB / 1.364 GB, free: 33.78 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.635e-06/1.298, allocations: 4 kB / 1.364 GB, free: 33.77 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.421e-05/1.298, allocations: 0 / 1.364 GB, free: 33.77 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.142e-06/1.298, allocations: 3.844 kB / 1.364 GB, free: 33.77 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.293e-05/1.298, allocations: 40.38 kB / 1.364 GB, free: 33.77 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005199/1.298, allocations: 331.6 kB / 1.365 GB, free: 33.5 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001638/1.299, allocations: 79.09 kB / 1.365 GB, free: 33.48 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.883e-05/1.299, allocations: 39.94 kB / 1.365 GB, free: 33.47 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.528e-05/1.299, allocations: 0 / 1.365 GB, free: 33.47 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001636/1.299, allocations: 94.19 kB / 1.365 GB, free: 33.42 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=11): time 1.293e-06/1.299, allocations: 0 / 1.365 GB, free: 33.42 MB / 0.8386 GB Notification: Performance of matching and sorting (n=11): time 0.0002597/1.299, allocations: 133.2 kB / 1.365 GB, free: 33.38 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.32e-05/1.299, allocations: 63.2 kB / 1.365 GB, free: 33.3 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.066e-05/1.299, allocations: 121 kB / 1.365 GB, free: 33.21 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.454e-05/1.299, allocations: 25.7 kB / 1.365 GB, free: 33.18 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 5.12e-05/1.299, allocations: 99.61 kB / 1.365 GB, free: 33.09 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.482e-05/1.299, allocations: 25.64 kB / 1.365 GB, free: 33.08 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.502e-06/1.299, allocations: 0 / 1.365 GB, free: 33.08 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001494/1.3, allocations: 321.4 kB / 1.366 GB, free: 32.77 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.866e-05/1.3, allocations: 29.38 kB / 1.366 GB, free: 32.77 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.503e-05/1.3, allocations: 70.06 kB / 1.366 GB, free: 32.71 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.142e-05/1.3, allocations: 33.58 kB / 1.366 GB, free: 32.71 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/1.3, allocations: 0 / 1.366 GB, free: 32.71 MB / 0.8386 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002026/1.3, allocations: 132.4 kB / 1.366 GB, free: 32.66 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.528e-05/1.3, allocations: 7.75 kB / 1.366 GB, free: 32.66 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.049e-06/1.3, allocations: 0 / 1.366 GB, free: 32.66 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.483e-05/1.3, allocations: 3.812 kB / 1.366 GB, free: 32.66 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001129/1.3, allocations: 18.11 kB / 1.366 GB, free: 32.66 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.758e-06/1.3, allocations: 7.891 kB / 1.366 GB, free: 32.65 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.271e-05/1.3, allocations: 22.56 kB / 1.366 GB, free: 32.64 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.151e-05/1.3, allocations: 3.844 kB / 1.366 GB, free: 32.64 MB / 0.8386 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 7.177e-05/1.3, allocations: 113.8 kB / 1.366 GB, free: 32.54 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.705e-05/1.3, allocations: 11.78 kB / 1.366 GB, free: 32.53 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002504/1.301, allocations: 150.3 kB / 1.366 GB, free: 32.49 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.896e-06/1.301, allocations: 3.812 kB / 1.366 GB, free: 32.49 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/1.301, allocations: 0 / 1.366 GB, free: 32.49 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.079e-06/1.301, allocations: 3.953 kB / 1.366 GB, free: 32.49 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004656/1.301, allocations: 445.1 kB / 1.367 GB, free: 32.18 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/1.301, allocations: 0 / 1.367 GB, free: 32.18 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.981e-05/1.301, allocations: 14.55 kB / 1.367 GB, free: 32.18 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.947e-06/1.301, allocations: 0 / 1.367 GB, free: 32.18 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.349e-05/1.301, allocations: 10.38 kB / 1.367 GB, free: 32.18 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.504e-06/1.301, allocations: 3.953 kB / 1.367 GB, free: 32.17 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/1.301, allocations: 0.7031 kB / 1.367 GB, free: 32.17 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002181/1.301, allocations: 229.9 kB / 1.367 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 2.65e-05/1.302, allocations: 83.92 kB / 1.367 GB, free: 31.94 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.334e-05/1.302, allocations: 3.844 kB / 1.367 GB, free: 31.94 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001156/1.302, allocations: 13.5 kB / 1.367 GB, free: 31.94 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.941e-05/1.302, allocations: 17.23 kB / 1.367 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.193e-05/1.302, allocations: 3.906 kB / 1.367 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 6.267e-05/1.302, allocations: 105.5 kB / 1.367 GB, free: 31.86 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.3e-07/1.302, allocations: 4 kB / 1.367 GB, free: 31.85 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003299/1.302, allocations: 56.53 kB / 1.367 GB, free: 31.84 MB / 0.8386 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 (13): * Single equations (assignments): 10 * 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.0003528/1.303, allocations: 176 kB / 1.367 GB, free: 31.73 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001605/1.303, allocations: 81.33 kB / 1.367 GB, free: 31.72 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.063e-06/1.303, allocations: 192 / 1.367 GB, free: 31.72 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 7.335e-05/1.303, allocations: 56.02 kB / 1.367 GB, free: 31.71 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002091/1.303, allocations: 14.97 kB / 1.367 GB, free: 31.71 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003084/1.303, allocations: 132.9 kB / 1.368 GB, free: 31.63 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002726/1.304, allocations: 0.6989 MB / 1.368 GB, free: 30.94 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 5.023e-05/1.304, allocations: 18.83 kB / 1.368 GB, free: 30.93 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.592e-05/1.304, allocations: 14.47 kB / 1.368 GB, free: 30.92 MB / 0.8386 GB Notification: Performance of SimCode: time 2.1e-07/1.304, allocations: 0 / 1.368 GB, free: 30.92 MB / 0.8386 GB Notification: Performance of Templates: time 0.004552/1.308, allocations: 1.957 MB / 1.37 GB, free: 30.77 MB / 0.8386 GB make -j1 -f Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.makefile (rm -f Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.sim & ./Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Office_Lighting_Validation_Gunay2016Light.csv","../files/Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,lig.ill,lig.occ,lig.pArriv,lig.on Variables in the result:$whenCondition1,booleanPulse.Twidth,booleanPulse.period,booleanPulse.startTime,booleanPulse.width,ill.amplitude,ill.f,ill.offset,ill.phase,ill.startTime,ill.y,lig.AArriv,lig.AInter,lig.BArriv,lig.BInter,lig.ill,lig.occ,lig.on,lig.pArriv,lig.samplePeriod,lig.seed,lig.t0,time