Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/Buildings 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_latest_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_latest_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001292/0.001292, allocations: 99.55 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001607/0.001607, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.338/1.338, allocations: 223.2 MB / 239.9 MB, free: 5.242 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.518/2.518, allocations: 436.5 MB / 0.7104 GB, free: 7.902 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003594/0.0003595, allocations: 8 kB / 0.8708 GB, free: 4.824 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6567/0.657, allocations: 153.7 MB / 1.021 GB, free: 1.113 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light): time 0.001791/0.6589, allocations: 1.207 MB / 1.022 GB, free: 15.89 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001265/0.6602, allocations: 0.7056 MB / 1.023 GB, free: 15.18 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.416e-05/0.6602, allocations: 3.938 kB / 1.023 GB, free: 15.18 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 2.299e-05/0.6603, allocations: 3.938 kB / 1.023 GB, free: 15.18 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 9.717e-05/0.6604, allocations: 19.95 kB / 1.023 GB, free: 15.16 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004801/0.6609, allocations: 95.7 kB / 1.023 GB, free: 15.06 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0001103/0.661, allocations: 55.92 kB / 1.023 GB, free: 15.01 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 8.302e-05/0.6611, allocations: 4 kB / 1.023 GB, free: 15 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001126/0.6612, allocations: 39.84 kB / 1.023 GB, free: 14.96 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 7.385e-05/0.6613, allocations: 31.89 kB / 1.023 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.649e-05/0.6613, allocations: 4 kB / 1.023 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001798/0.6615, allocations: 79.8 kB / 1.023 GB, free: 14.85 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 2.67e-05/0.6615, allocations: 15.92 kB / 1.023 GB, free: 14.84 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 4.151e-05/0.6616, allocations: 37.7 kB / 1.023 GB, free: 14.79 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.000179/0.6618, allocations: 101.8 kB / 1.023 GB, free: 14.7 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 2.174e-06/0.6618, allocations: 0 / 1.023 GB, free: 14.7 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.503e-06/0.6618, allocations: 0 / 1.023 GB, free: 14.7 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.207e-06/0.6618, allocations: 0 / 1.023 GB, free: 14.7 MB / 0.7794 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.000766/0.6626, allocations: 470.4 kB / 1.024 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.694e-05/0.6626, allocations: 12.02 kB / 1.024 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.286e-05/0.6627, allocations: 7.906 kB / 1.024 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001524/0.6628, allocations: 171 kB / 1.024 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.333e-05/0.6629, allocations: 45.62 kB / 1.024 GB, free: 13.9 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.001e-05/0.663, allocations: 7.953 kB / 1.024 GB, free: 13.89 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002196/0.6632, allocations: 73.64 kB / 1.024 GB, free: 13.81 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.786e-06/0.6632, allocations: 0 / 1.024 GB, free: 13.81 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.307e-05/0.6632, allocations: 11.94 kB / 1.024 GB, free: 13.8 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.849e-06/0.6632, allocations: 0 / 1.024 GB, free: 13.8 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002004/0.6634, allocations: 51.91 kB / 1.024 GB, free: 13.75 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000581/0.664, allocations: 328.7 kB / 1.024 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002324/0.6643, allocations: 66.55 kB / 1.024 GB, free: 13.3 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.375e-05/0.6643, allocations: 8.141 kB / 1.024 GB, free: 13.3 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002729/0.6646, allocations: 103.4 kB / 1.024 GB, free: 13.18 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=10): time 1.673e-06/0.6646, allocations: 0 / 1.024 GB, free: 13.18 MB / 0.7794 GB Notification: Performance of matching and sorting (n=10): time 0.0005355/0.6651, allocations: 169.5 kB / 1.025 GB, free: 13.01 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.732e-05/0.6652, allocations: 59.41 kB / 1.025 GB, free: 12.94 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001377/0.6653, allocations: 144.4 kB / 1.025 GB, free: 12.79 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.043e-05/0.6654, allocations: 25.7 kB / 1.025 GB, free: 12.76 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 7.579e-05/0.6654, allocations: 96.28 kB / 1.025 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.139e-05/0.6655, allocations: 23.7 kB / 1.025 GB, free: 12.63 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.183e-06/0.6655, allocations: 0 / 1.025 GB, free: 12.63 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001334/0.6656, allocations: 326.8 kB / 1.025 GB, free: 12.3 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001151/0.6658, allocations: 27.98 kB / 1.025 GB, free: 12.28 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001564/0.6659, allocations: 85.06 kB / 1.025 GB, free: 12.18 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000121/0.666, allocations: 32.36 kB / 1.025 GB, free: 12.14 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.6661, allocations: 4 kB / 1.025 GB, free: 12.14 MB / 0.7794 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003219/0.6664, allocations: 145.4 kB / 1.026 GB, free: 11.99 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.852e-05/0.6664, allocations: 6.031 kB / 1.026 GB, free: 11.99 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.396e-06/0.6664, allocations: 3.938 kB / 1.026 GB, free: 11.98 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.734e-05/0.6665, allocations: 4 kB / 1.026 GB, free: 11.98 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001362/0.6666, allocations: 24.11 kB / 1.026 GB, free: 11.96 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.015e-05/0.6666, allocations: 7.938 kB / 1.026 GB, free: 11.95 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001235/0.6667, allocations: 15.92 kB / 1.026 GB, free: 11.93 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.527e-05/0.6668, allocations: 4 kB / 1.026 GB, free: 11.93 MB / 0.7794 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,occ.y,$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.000117/0.6669, allocations: 127.7 kB / 1.026 GB, free: 11.8 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.474e-05/0.6669, allocations: 15.97 kB / 1.026 GB, free: 11.78 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.575e-05/0.667, allocations: 8.719 kB / 1.026 GB, free: 11.77 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.188e-06/0.667, allocations: 8 kB / 1.026 GB, free: 11.76 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.071e-06/0.667, allocations: 0 / 1.026 GB, free: 11.76 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.667, allocations: 0 / 1.026 GB, free: 11.76 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007038/0.6677, allocations: 438.2 kB / 1.026 GB, free: 11.28 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.03e-06/0.6677, allocations: 4 kB / 1.026 GB, free: 11.27 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.554e-05/0.6678, allocations: 11.94 kB / 1.026 GB, free: 11.26 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.84e-06/0.6678, allocations: 3.984 kB / 1.026 GB, free: 11.26 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.466e-05/0.6678, allocations: 8 kB / 1.026 GB, free: 11.25 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.6679, allocations: 0 / 1.026 GB, free: 11.25 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.193e-06/0.6679, allocations: 0 / 1.026 GB, free: 11.25 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003732/0.6682, allocations: 235.3 kB / 1.026 GB, free: 11 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.545e-05/0.6683, allocations: 85.02 kB / 1.027 GB, free: 10.9 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.592e-05/0.6683, allocations: 4 kB / 1.027 GB, free: 10.9 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001369/0.6685, allocations: 11.98 kB / 1.027 GB, free: 10.89 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.93e-05/0.6685, allocations: 11.98 kB / 1.027 GB, free: 10.88 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.886e-05/0.6686, allocations: 7.984 kB / 1.027 GB, free: 10.87 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 7.413e-05/0.6686, allocations: 103.2 kB / 1.027 GB, free: 10.77 MB / 0.7794 GB Notification: Performance of sort global known variables: time 2.3e-07/0.6686, allocations: 0 / 1.027 GB, free: 10.77 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003309/0.669, allocations: 36 kB / 1.027 GB, free: 10.73 MB / 0.7794 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 (occ.y,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.0003651/0.6693, allocations: 157.7 kB / 1.027 GB, free: 10.58 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003118/0.6697, allocations: 95.81 kB / 1.027 GB, free: 10.49 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.6697, allocations: 0 / 1.027 GB, free: 10.49 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001397/0.6698, allocations: 55.91 kB / 1.027 GB, free: 10.43 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002098/0.67, allocations: 11.95 kB / 1.027 GB, free: 10.42 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004852/0.6705, allocations: 232.8 kB / 1.027 GB, free: 10.17 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002992/0.6709, allocations: 0.7004 MB / 1.028 GB, free: 9.445 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 5.884e-05/0.6709, allocations: 4.859 kB / 1.028 GB, free: 9.441 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.855e-05/0.671, allocations: 19.42 kB / 1.028 GB, free: 9.422 MB / 0.7794 GB Notification: Performance of SimCode: time 2.2e-07/0.671, allocations: 0 / 1.028 GB, free: 9.422 MB / 0.7794 GB Notification: Performance of Templates: time 0.004597/0.6756, allocations: 1.616 MB / 1.029 GB, free: 7.812 MB / 0.7794 GB make -j1 -f Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.makefile (rm -f Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.sim & ./Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Lighting_Validation_Hunt1979Light.csv","../files/Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.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,ill.amplitude,ill.f,ill.offset,ill.phase,ill.startTime,lig.AArriv,lig.BArriv,lig.CArriv,lig.MArriv,lig.ill,lig.occ,lig.on,lig.pArriv,lig.samplePeriod,lig.seed,lig.t0,occ.Twidth,occ.period,occ.startTime,occ.width,time