Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.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.Hunt1979Light,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.Hunt1979Light") translateModel(Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light,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.Hunt1979Light") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.36/2.36, allocations: 390.3 MB / 405.3 MB, free: 13.52 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.001214/0.001214, allocations: 173.2 kB / 498.1 MB, free: 5.754 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.622/1.622, allocations: 223.2 MB / 0.7948 GB, free: 17.96 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.001231/0.001232, allocations: 96.38 kB / 0.9346 GB, free: 6.297 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004441/0.0004444, allocations: 10.94 kB / 1.084 GB, free: 221.2 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3323/0.3328, allocations: 142.3 MB / 1.223 GB, free: 114.4 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2036/0.5365, allocations: 151.4 MB / 1.371 GB, free: 10.78 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002633/0.5368, allocations: 83.94 kB / 1.371 GB, free: 10.7 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.01087/0.5477, allocations: 3.197 MB / 1.374 GB, free: 7.496 MB / 0.8698 GB Notification: Performance of FrontEnd: time 3.025e-06/0.5477, allocations: 3.938 kB / 1.374 GB, free: 7.492 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 1.209e-05/0.5477, allocations: 0 / 1.374 GB, free: 7.492 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.000857/0.5486, allocations: 474.3 kB / 1.374 GB, free: 6.969 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 6.219e-05/0.5487, allocations: 15.97 kB / 1.374 GB, free: 6.953 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.025e-05/0.5488, allocations: 15.86 kB / 1.374 GB, free: 6.938 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001878/0.549, allocations: 182.8 kB / 1.375 GB, free: 6.719 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.401e-05/0.5491, allocations: 37.7 kB / 1.375 GB, free: 6.676 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.504e-05/0.5491, allocations: 7.984 kB / 1.375 GB, free: 6.668 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00023/0.5493, allocations: 73.66 kB / 1.375 GB, free: 6.59 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.246e-05/0.5494, allocations: 3.984 kB / 1.375 GB, free: 6.586 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.622e-05/0.5494, allocations: 7.984 kB / 1.375 GB, free: 6.578 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.24e-06/0.5494, allocations: 0 / 1.375 GB, free: 6.578 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002012/0.5496, allocations: 55.91 kB / 1.375 GB, free: 6.523 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007773/0.5504, allocations: 328.8 kB / 1.375 GB, free: 6.152 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002299/0.5506, allocations: 70.55 kB / 1.375 GB, free: 6.074 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 3.229e-05/0.5507, allocations: 4.094 kB / 1.375 GB, free: 6.07 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002931/0.551, allocations: 107.2 kB / 1.375 GB, free: 5.953 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=10): time 2.014e-06/0.551, allocations: 0 / 1.375 GB, free: 5.953 MB / 0.8698 GB Notification: Performance of matching and sorting (n=10): time 0.0005602/0.5515, allocations: 173.4 kB / 1.375 GB, free: 5.777 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.609e-05/0.5516, allocations: 55.41 kB / 1.375 GB, free: 5.711 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001133/0.5517, allocations: 120.4 kB / 1.376 GB, free: 5.586 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 2.856e-05/0.5518, allocations: 33.7 kB / 1.376 GB, free: 5.547 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 8.085e-05/0.5519, allocations: 96.88 kB / 1.376 GB, free: 5.445 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 2.84e-05/0.5519, allocations: 19.72 kB / 1.376 GB, free: 5.426 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.617e-06/0.5519, allocations: 4 kB / 1.376 GB, free: 5.422 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001415/0.5521, allocations: 318.8 kB / 1.376 GB, free: 5.102 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001066/0.5522, allocations: 39.91 kB / 1.376 GB, free: 5.062 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001834/0.5524, allocations: 80.69 kB / 1.376 GB, free: 4.969 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001186/0.5525, allocations: 43.98 kB / 1.376 GB, free: 4.926 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.335e-06/0.5525, allocations: 0 / 1.376 GB, free: 4.926 MB / 0.8698 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.000293/0.5528, allocations: 133.4 kB / 1.376 GB, free: 4.789 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 2.213e-05/0.5528, allocations: 4 kB / 1.376 GB, free: 4.785 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.054e-05/0.5528, allocations: 4 kB / 1.376 GB, free: 4.781 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.905e-05/0.5529, allocations: 0 / 1.376 GB, free: 4.781 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000128/0.553, allocations: 28 kB / 1.376 GB, free: 4.754 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.229e-05/0.553, allocations: 7.984 kB / 1.376 GB, free: 4.746 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001091/0.5531, allocations: 19.84 kB / 1.376 GB, free: 4.727 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.016e-05/0.5532, allocations: 7.984 kB / 1.376 GB, free: 4.719 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,lig.occ,$PRE.occ.pulseStart,occ.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 14 * 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.000121/0.5533, allocations: 126.8 kB / 1.377 GB, free: 4.586 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.15e-05/0.5533, allocations: 7.906 kB / 1.377 GB, free: 4.578 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.964e-05/0.5534, allocations: 16.72 kB / 1.377 GB, free: 4.559 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.946e-06/0.5534, allocations: 0 / 1.377 GB, free: 4.559 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.004e-05/0.5534, allocations: 3.953 kB / 1.377 GB, free: 4.555 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.698e-06/0.5534, allocations: 3.984 kB / 1.377 GB, free: 4.551 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006693/0.5541, allocations: 430.4 kB / 1.377 GB, free: 4.074 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.352e-06/0.5541, allocations: 0 / 1.377 GB, free: 4.074 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.418e-05/0.5542, allocations: 11.98 kB / 1.377 GB, free: 4.062 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.004e-06/0.5542, allocations: 0 / 1.377 GB, free: 4.062 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.557e-05/0.5542, allocations: 7.953 kB / 1.377 GB, free: 4.055 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.5542, allocations: 0 / 1.377 GB, free: 4.055 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.041e-06/0.5542, allocations: 0 / 1.377 GB, free: 4.055 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003284/0.5546, allocations: 235.3 kB / 1.377 GB, free: 3.809 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 5.143e-05/0.5546, allocations: 81.11 kB / 1.377 GB, free: 3.711 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.749e-05/0.5547, allocations: 8 kB / 1.377 GB, free: 3.703 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001287/0.5548, allocations: 20.11 kB / 1.377 GB, free: 3.684 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.003e-05/0.5549, allocations: 11.97 kB / 1.377 GB, free: 3.672 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.444e-05/0.5549, allocations: 11.94 kB / 1.377 GB, free: 3.66 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 6.703e-05/0.555, allocations: 103.3 kB / 1.377 GB, free: 3.559 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1.2e-07/0.555, allocations: 0 / 1.377 GB, free: 3.559 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0003639/0.5553, allocations: 55.86 kB / 1.377 GB, free: 3.504 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 (lig.occ,lig.sampleTrigger,$whenCondition3,$whenCondition2,$whenCondition1,lig.on,lig.curSeed,occ.pulseStart) * Number of discrete states: 1 (lig.on) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 7 * 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.0004161/0.5558, allocations: 172.8 kB / 1.378 GB, free: 3.34 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0002851/0.5561, allocations: 96.75 kB / 1.378 GB, free: 3.246 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.5561, allocations: 4 kB / 1.378 GB, free: 3.242 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0001278/0.5562, allocations: 47.92 kB / 1.378 GB, free: 3.195 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002306/0.5564, allocations: 12.23 kB / 1.378 GB, free: 3.184 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004881/0.5569, allocations: 231.2 kB / 1.378 GB, free: 2.934 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002567/0.5572, allocations: 0.6965 MB / 1.379 GB, free: 2.211 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 5.981e-05/0.5573, allocations: 16.59 kB / 1.379 GB, free: 2.195 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.638e-05/0.5573, allocations: 15.44 kB / 1.379 GB, free: 2.18 MB / 0.8698 GB Notification: Performance of SimCode: time 2.41e-07/0.5573, allocations: 0 / 1.379 GB, free: 2.18 MB / 0.8698 GB Notification: Performance of Templates: time 0.004378/0.5617, allocations: 1.791 MB / 1.38 GB, free: 408 kB / 0.8698 GB make -j1 -f Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.makefile (rm -f Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.sim & ./Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Office_Lighting_Validation_Hunt1979Light.csv","../files/Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches