Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|lig.ill|lig.occ|lig.pArriv|lig.on",fileNamePrefix="Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light") translateModel(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|lig.ill|lig.occ|lig.pArriv|lig.on",fileNamePrefix="Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.528/2.528, allocations: 390.5 MB / 398 MB, free: 10.97 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.00142/0.001419, allocations: 179.6 kB / 491.2 MB, free: 1.598 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.709/1.709, allocations: 221.5 MB / 0.7868 GB, free: 13.26 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.0009903/0.0009903, allocations: 91.94 kB / 0.9269 GB, free: 13.76 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.196e-05/2.215e-05, allocations: 4 kB / 1.073 GB, free: 182 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3045/0.3046, allocations: 143 MB / 1.212 GB, free: 39.52 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.917/1.222, allocations: 151.6 MB / 1.36 GB, free: 17.4 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002813/1.222, allocations: 83.33 kB / 1.36 GB, free: 17.4 MB / 0.823 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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.009685/1.232, allocations: 3.356 MB / 1.364 GB, free: 32.91 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.754e-06/1.232, allocations: 0 / 1.364 GB, free: 32.91 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 6.903e-06/1.232, allocations: 0 / 1.364 GB, free: 32.91 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.0005155/1.232, allocations: 0.4899 MB / 1.364 GB, free: 32.43 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.918e-05/1.232, allocations: 6.656 kB / 1.364 GB, free: 32.43 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.136e-05/1.232, allocations: 14.55 kB / 1.364 GB, free: 32.42 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001123/1.232, allocations: 179.1 kB / 1.364 GB, free: 32.22 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.179e-05/1.232, allocations: 0 / 1.364 GB, free: 32.22 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.315e-05/1.233, allocations: 10.62 kB / 1.364 GB, free: 32.21 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001162/1.233, allocations: 37.83 kB / 1.364 GB, free: 32.21 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001201/1.233, allocations: 66.77 kB / 1.364 GB, free: 32.18 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.017e-05/1.233, allocations: 0 / 1.364 GB, free: 32.18 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.365e-05/1.233, allocations: 4 kB / 1.365 GB, free: 32.18 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.35e-06/1.233, allocations: 3.953 kB / 1.365 GB, free: 32.18 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000497/1.233, allocations: 309.9 kB / 1.365 GB, free: 31.94 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001351/1.233, allocations: 72.95 kB / 1.365 GB, free: 31.91 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.731e-05/1.234, allocations: 33.23 kB / 1.365 GB, free: 31.9 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.227e-05/1.234, allocations: 3.469 kB / 1.365 GB, free: 31.9 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001563/1.234, allocations: 87.61 kB / 1.365 GB, free: 31.86 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=11): time 1.654e-06/1.234, allocations: 0 / 1.365 GB, free: 31.86 MB / 0.8386 GB Notification: Performance of matching and sorting (n=11): time 0.0002813/1.234, allocations: 130.8 kB / 1.365 GB, free: 31.81 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.322e-05/1.234, allocations: 56.03 kB / 1.365 GB, free: 31.75 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.191e-05/1.234, allocations: 130.6 kB / 1.365 GB, free: 31.65 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.327e-05/1.234, allocations: 29.42 kB / 1.365 GB, free: 31.62 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 5.307e-05/1.234, allocations: 98.75 kB / 1.365 GB, free: 31.53 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.451e-05/1.234, allocations: 27.77 kB / 1.365 GB, free: 31.51 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.133e-06/1.234, allocations: 0 / 1.365 GB, free: 31.51 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 8.993e-05/1.234, allocations: 320.7 kB / 1.366 GB, free: 31.2 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.937e-05/1.234, allocations: 23.27 kB / 1.366 GB, free: 31.2 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.27e-05/1.234, allocations: 61.47 kB / 1.366 GB, free: 31.15 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.855e-05/1.235, allocations: 33.19 kB / 1.366 GB, free: 31.14 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/1.235, allocations: 0 / 1.366 GB, free: 31.14 MB / 0.8386 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001531/1.235, allocations: 112.5 kB / 1.366 GB, free: 31.1 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.193e-05/1.235, allocations: 5.281 kB / 1.366 GB, free: 31.1 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.7e-06/1.235, allocations: 3.875 kB / 1.366 GB, free: 31.1 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.656e-05/1.235, allocations: 9.266 kB / 1.366 GB, free: 31.09 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001092/1.235, allocations: 22.41 kB / 1.366 GB, free: 31.09 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.28e-06/1.235, allocations: 1.172 kB / 1.366 GB, free: 31.09 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.486e-05/1.235, allocations: 18.19 kB / 1.366 GB, free: 31.09 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.257e-05/1.235, allocations: 5.422 kB / 1.366 GB, free: 31.09 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.105e-05/1.235, allocations: 116.8 kB / 1.366 GB, free: 30.97 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.64e-05/1.235, allocations: 11.72 kB / 1.366 GB, free: 30.96 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002567/1.235, allocations: 143.2 kB / 1.366 GB, free: 30.93 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.256e-06/1.235, allocations: 7.734 kB / 1.366 GB, free: 30.93 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/1.235, allocations: 2 kB / 1.366 GB, free: 30.93 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.399e-06/1.235, allocations: 5.25 kB / 1.366 GB, free: 30.93 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004359/1.236, allocations: 417.5 kB / 1.367 GB, free: 30.65 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/1.236, allocations: 4 kB / 1.367 GB, free: 30.65 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.627e-05/1.236, allocations: 14.14 kB / 1.367 GB, free: 30.65 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.286e-06/1.236, allocations: 3.844 kB / 1.367 GB, free: 30.65 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.3e-05/1.236, allocations: 5.406 kB / 1.367 GB, free: 30.64 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/1.236, allocations: 0 / 1.367 GB, free: 30.64 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/1.236, allocations: 1.359 kB / 1.367 GB, free: 30.64 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002091/1.236, allocations: 231 kB / 1.367 GB, free: 30.5 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 2.66e-05/1.236, allocations: 94.19 kB / 1.367 GB, free: 30.4 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.622e-05/1.236, allocations: 5.234 kB / 1.367 GB, free: 30.4 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001171/1.236, allocations: 13.56 kB / 1.367 GB, free: 30.39 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.448e-05/1.236, allocations: 8.359 kB / 1.367 GB, free: 30.39 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.224e-05/1.236, allocations: 6.312 kB / 1.367 GB, free: 30.39 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 5.374e-05/1.237, allocations: 107.8 kB / 1.367 GB, free: 30.32 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.5e-07/1.237, allocations: 0 / 1.367 GB, free: 30.32 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002924/1.237, allocations: 51.39 kB / 1.367 GB, free: 30.31 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 (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.0003579/1.237, allocations: 175 kB / 1.367 GB, free: 30.19 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001495/1.237, allocations: 78.73 kB / 1.367 GB, free: 30.18 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/1.237, allocations: 0 / 1.367 GB, free: 30.18 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 7.296e-05/1.237, allocations: 56.34 kB / 1.368 GB, free: 30.18 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002228/1.238, allocations: 15.28 kB / 1.368 GB, free: 30.18 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003205/1.238, allocations: 139.4 kB / 1.368 GB, free: 30.09 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002436/1.238, allocations: 0.7088 MB / 1.368 GB, free: 29.39 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 5.11e-05/1.238, allocations: 14.95 kB / 1.368 GB, free: 29.39 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.731e-05/1.238, allocations: 17.45 kB / 1.368 GB, free: 29.38 MB / 0.8386 GB Notification: Performance of SimCode: time 2.3e-07/1.238, allocations: 0 / 1.368 GB, free: 29.38 MB / 0.8386 GB Notification: Performance of Templates: time 0.004006/1.242, allocations: 1.939 MB / 1.37 GB, free: 29.21 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.makefile (rm -f Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.sim & ./Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light.csv","../files/Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.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.CArriv,lig.CInter,lig.MArriv,lig.MInter,lig.ill,lig.occ,lig.on,lig.pArriv,lig.samplePeriod,lig.seed,lig.t0,time