Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.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.Reinhart2003Light,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.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_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.237/2.237, allocations: 390.3 MB / 405.3 MB, free: 13.42 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.001097/0.001097, allocations: 183.4 kB / 498.1 MB, free: 5.672 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.717/1.717, allocations: 223.2 MB / 0.7948 GB, free: 17.82 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.0009571/0.0009572, allocations: 92.33 kB / 0.9346 GB, free: 6.125 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003614/0.0003614, allocations: 8.406 kB / 1.084 GB, free: 221.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.318/0.3184, allocations: 142.3 MB / 1.223 GB, free: 114.2 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2007/0.5191, allocations: 151.5 MB / 1.371 GB, free: 10.48 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000266/0.5194, allocations: 87.94 kB / 1.371 GB, free: 10.4 MB / 0.8698 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.01061/0.5301, allocations: 3.4 MB / 1.374 GB, free: 6.992 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.963e-06/0.5301, allocations: 0 / 1.374 GB, free: 6.992 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 6.682e-06/0.5301, allocations: 0 / 1.374 GB, free: 6.992 MB / 0.8698 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.0007097/0.5308, allocations: 0.508 MB / 1.375 GB, free: 6.418 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.403e-05/0.5309, allocations: 12.03 kB / 1.375 GB, free: 6.406 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.732e-05/0.5309, allocations: 11.86 kB / 1.375 GB, free: 6.395 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001587/0.5311, allocations: 176.5 kB / 1.375 GB, free: 6.184 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.072e-05/0.5311, allocations: 0 / 1.375 GB, free: 6.184 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.876e-05/0.5312, allocations: 8 kB / 1.375 GB, free: 6.176 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002105/0.5314, allocations: 85.56 kB / 1.375 GB, free: 6.086 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.726e-06/0.5314, allocations: 0 / 1.375 GB, free: 6.086 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.454e-05/0.5314, allocations: 0 / 1.375 GB, free: 6.086 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.444e-06/0.5314, allocations: 4 kB / 1.375 GB, free: 6.082 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001516/0.5316, allocations: 59.92 kB / 1.375 GB, free: 6.023 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006058/0.5322, allocations: 332.7 kB / 1.375 GB, free: 5.648 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002125/0.5324, allocations: 82.67 kB / 1.375 GB, free: 5.559 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.015e-05/0.5325, allocations: 0 / 1.375 GB, free: 5.559 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002308/0.5327, allocations: 103.3 kB / 1.376 GB, free: 5.445 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=11): time 4.768e-06/0.5327, allocations: 7.922 kB / 1.376 GB, free: 5.438 MB / 0.8698 GB Notification: Performance of matching and sorting (n=11): time 0.0004472/0.5332, allocations: 189.4 kB / 1.376 GB, free: 5.246 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.971e-05/0.5332, allocations: 51.41 kB / 1.376 GB, free: 5.184 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001251/0.5334, allocations: 134.3 kB / 1.376 GB, free: 5.047 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 2.568e-05/0.5334, allocations: 29.7 kB / 1.376 GB, free: 5.012 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 7.732e-05/0.5335, allocations: 96.12 kB / 1.376 GB, free: 4.914 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 3.559e-05/0.5335, allocations: 31.7 kB / 1.376 GB, free: 4.883 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.987e-06/0.5335, allocations: 4 kB / 1.376 GB, free: 4.879 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001657/0.5337, allocations: 326.8 kB / 1.376 GB, free: 4.551 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.004e-05/0.5338, allocations: 27.98 kB / 1.376 GB, free: 4.523 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001137/0.5339, allocations: 73.06 kB / 1.377 GB, free: 4.434 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.309e-05/0.534, allocations: 39.98 kB / 1.377 GB, free: 4.395 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.534, allocations: 0 / 1.377 GB, free: 4.395 MB / 0.8698 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002524/0.5343, allocations: 137.4 kB / 1.377 GB, free: 4.254 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.973e-05/0.5343, allocations: 7.953 kB / 1.377 GB, free: 4.246 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.314e-06/0.5343, allocations: 4 kB / 1.377 GB, free: 4.242 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.473e-05/0.5343, allocations: 0 / 1.377 GB, free: 4.242 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001134/0.5345, allocations: 28.02 kB / 1.377 GB, free: 4.215 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.179e-05/0.5345, allocations: 7.938 kB / 1.377 GB, free: 4.207 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001046/0.5346, allocations: 23.92 kB / 1.377 GB, free: 4.184 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.429e-05/0.5346, allocations: 4 kB / 1.377 GB, free: 4.18 MB / 0.8698 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.0001192/0.5348, allocations: 121.8 kB / 1.377 GB, free: 4.051 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.368e-05/0.5348, allocations: 19.81 kB / 1.377 GB, free: 4.031 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003705/0.5352, allocations: 174.2 kB / 1.377 GB, free: 3.855 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.464e-06/0.5352, allocations: 0 / 1.377 GB, free: 3.855 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.5352, allocations: 0 / 1.377 GB, free: 3.855 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.5352, allocations: 4 kB / 1.377 GB, free: 3.852 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007059/0.5359, allocations: 462.4 kB / 1.377 GB, free: 3.344 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.879e-06/0.5359, allocations: 3.953 kB / 1.378 GB, free: 3.34 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.064e-05/0.536, allocations: 15.98 kB / 1.378 GB, free: 3.324 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.983e-06/0.536, allocations: 0 / 1.378 GB, free: 3.324 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.6e-05/0.536, allocations: 4 kB / 1.378 GB, free: 3.32 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.536, allocations: 0 / 1.378 GB, free: 3.32 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.22e-07/0.536, allocations: 0 / 1.378 GB, free: 3.32 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003472/0.5364, allocations: 256 kB / 1.378 GB, free: 3.059 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 5.831e-05/0.5365, allocations: 92.95 kB / 1.378 GB, free: 2.949 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.712e-05/0.5365, allocations: 7.938 kB / 1.378 GB, free: 2.941 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001249/0.5366, allocations: 15.98 kB / 1.378 GB, free: 2.926 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.554e-05/0.5367, allocations: 8.125 kB / 1.378 GB, free: 2.918 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.347e-05/0.5367, allocations: 4 kB / 1.378 GB, free: 2.914 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 7.654e-05/0.5368, allocations: 112.3 kB / 1.378 GB, free: 2.805 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1.41e-07/0.5368, allocations: 0 / 1.378 GB, free: 2.805 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0003325/0.5371, allocations: 59.88 kB / 1.378 GB, free: 2.746 MB / 0.8698 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.0004021/0.5375, allocations: 172.7 kB / 1.378 GB, free: 2.582 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0002575/0.5378, allocations: 111.6 kB / 1.378 GB, free: 2.477 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.5378, allocations: 0 / 1.378 GB, free: 2.477 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0001325/0.538, allocations: 59.91 kB / 1.378 GB, free: 2.418 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002255/0.5382, allocations: 21.05 kB / 1.378 GB, free: 2.398 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005495/0.5388, allocations: 267.3 kB / 1.379 GB, free: 2.105 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003835/0.5392, allocations: 0.7082 MB / 1.379 GB, free: 1.371 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 5.878e-05/0.5392, allocations: 12.55 kB / 1.379 GB, free: 1.355 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.175e-05/0.5393, allocations: 11.44 kB / 1.379 GB, free: 1.344 MB / 0.8698 GB Notification: Performance of SimCode: time 2.51e-07/0.5393, allocations: 0 / 1.379 GB, free: 1.344 MB / 0.8698 GB Notification: Performance of Templates: time 0.004952/0.5442, allocations: 1.981 MB / 1.381 GB, free: 15.37 MB / 0.8855 GB make -j1 -f Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.makefile (rm -f Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.sim & ./Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light.csv","../files/Buildings_9_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