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/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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009607/0.0009611, allocations: 99.86 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.001005/0.001005, 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.398/1.398, allocations: 223.2 MB / 239.9 MB, free: 5.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.4/2.4, allocations: 390.3 MB / 0.6653 GB, free: 2.875 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003642/0.0003642, allocations: 8 kB / 0.8145 GB, free: 14.2 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.795/0.7954, allocations: 142.3 MB / 0.9535 GB, free: 8.086 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light): time 0.001673/0.7971, allocations: 1.204 MB / 0.9547 GB, free: 7.133 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001039/0.7982, allocations: 0.7101 MB / 0.9554 GB, free: 6.59 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.823e-05/0.7982, allocations: 0 / 0.9554 GB, free: 6.59 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.472e-05/0.7982, allocations: 5.141 kB / 0.9554 GB, free: 6.586 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.85e-05/0.7983, allocations: 18.22 kB / 0.9554 GB, free: 6.57 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004193/0.7988, allocations: 86.95 kB / 0.9555 GB, free: 6.512 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 9.845e-05/0.7989, allocations: 67.64 kB / 0.9555 GB, free: 6.465 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.634e-05/0.799, allocations: 9.797 kB / 0.9555 GB, free: 6.461 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.425e-05/0.7991, allocations: 38.41 kB / 0.9556 GB, free: 6.438 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.463e-05/0.7991, allocations: 31.27 kB / 0.9556 GB, free: 6.418 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.541e-05/0.7992, allocations: 3.719 kB / 0.9556 GB, free: 6.418 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001468/0.7993, allocations: 78.83 kB / 0.9557 GB, free: 6.375 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.366e-05/0.7993, allocations: 11.42 kB / 0.9557 GB, free: 6.367 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.485e-05/0.7994, allocations: 44.86 kB / 0.9557 GB, free: 6.324 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001636/0.7996, allocations: 101.8 kB / 0.9558 GB, free: 6.262 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.285e-06/0.7996, allocations: 0 / 0.9558 GB, free: 6.262 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.483e-06/0.7996, allocations: 0 / 0.9558 GB, free: 6.262 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.288e-06/0.7996, allocations: 0 / 0.9558 GB, free: 6.262 MB / 0.7169 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.0006466/0.8002, allocations: 471.4 kB / 0.9563 GB, free: 5.785 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.854e-05/0.8003, allocations: 8.906 kB / 0.9563 GB, free: 5.785 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.695e-05/0.8003, allocations: 12.89 kB / 0.9563 GB, free: 5.777 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001104/0.8004, allocations: 178.4 kB / 0.9565 GB, free: 5.57 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.952e-05/0.8005, allocations: 34.86 kB / 0.9565 GB, free: 5.535 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.92e-05/0.8005, allocations: 8.141 kB / 0.9565 GB, free: 5.531 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001904/0.8007, allocations: 76.67 kB / 0.9566 GB, free: 5.473 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.544e-06/0.8008, allocations: 3.938 kB / 0.9566 GB, free: 5.469 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.382e-05/0.8008, allocations: 4 kB / 0.9566 GB, free: 5.465 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.18e-06/0.8008, allocations: 2.406 kB / 0.9566 GB, free: 5.465 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001893/0.801, allocations: 60.59 kB / 0.9567 GB, free: 5.434 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004727/0.8015, allocations: 326 kB / 0.957 GB, free: 5.102 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000199/0.8017, allocations: 72.73 kB / 0.957 GB, free: 5.051 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.951e-05/0.8017, allocations: 1.219 kB / 0.957 GB, free: 5.051 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002342/0.8019, allocations: 104.1 kB / 0.9571 GB, free: 4.965 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=10): time 1.463e-06/0.802, allocations: 0 / 0.9571 GB, free: 4.965 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10): time 0.0004549/0.8024, allocations: 176.5 kB / 0.9573 GB, free: 4.867 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.202e-05/0.8025, allocations: 57.5 kB / 0.9574 GB, free: 4.801 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.381e-05/0.8025, allocations: 138.1 kB / 0.9575 GB, free: 4.672 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.45e-05/0.8026, allocations: 31.06 kB / 0.9575 GB, free: 4.637 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.911e-05/0.8026, allocations: 95.75 kB / 0.9576 GB, free: 4.539 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.175e-05/0.8026, allocations: 18.98 kB / 0.9576 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.923e-06/0.8026, allocations: 1.062 kB / 0.9576 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.079e-05/0.8027, allocations: 321.6 kB / 0.9579 GB, free: 4.203 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001026/0.8028, allocations: 35.56 kB / 0.958 GB, free: 4.188 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000106/0.8029, allocations: 73.78 kB / 0.958 GB, free: 4.117 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001105/0.803, allocations: 37.64 kB / 0.9581 GB, free: 4.102 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.275e-06/0.8031, allocations: 4 kB / 0.9581 GB, free: 4.098 MB / 0.7169 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002685/0.8033, allocations: 137.6 kB / 0.9582 GB, free: 4.016 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.751e-05/0.8034, allocations: 7.094 kB / 0.9582 GB, free: 4.016 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.472e-06/0.8034, allocations: 5.453 kB / 0.9582 GB, free: 4.012 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.438e-05/0.8034, allocations: 3.062 kB / 0.9582 GB, free: 4.012 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001273/0.8035, allocations: 27.47 kB / 0.9583 GB, free: 3.996 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.096e-05/0.8035, allocations: 11.2 kB / 0.9583 GB, free: 3.988 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001099/0.8036, allocations: 22.42 kB / 0.9583 GB, free: 3.977 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.305e-05/0.8037, allocations: 3.906 kB / 0.9583 GB, free: 3.977 MB / 0.7169 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 7.328e-05/0.8037, allocations: 120.9 kB / 0.9584 GB, free: 3.855 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.705e-05/0.8038, allocations: 7.688 kB / 0.9584 GB, free: 3.852 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.082e-05/0.8038, allocations: 14.5 kB / 0.9584 GB, free: 3.836 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.906e-06/0.8038, allocations: 5.828 kB / 0.9584 GB, free: 3.832 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.8038, allocations: 3.984 kB / 0.9584 GB, free: 3.828 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.857e-06/0.8038, allocations: 1.938 kB / 0.9584 GB, free: 3.828 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005188/0.8044, allocations: 426.2 kB / 0.9588 GB, free: 3.441 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.532e-06/0.8044, allocations: 7.875 kB / 0.9589 GB, free: 3.434 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.2e-05/0.8044, allocations: 15.81 kB / 0.9589 GB, free: 3.426 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.985e-06/0.8045, allocations: 1.781 kB / 0.9589 GB, free: 3.426 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.33e-05/0.8045, allocations: 8.453 kB / 0.9589 GB, free: 3.418 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.8045, allocations: 1.5 kB / 0.9589 GB, free: 3.418 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.8045, allocations: 3.984 kB / 0.9589 GB, free: 3.414 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003077/0.8048, allocations: 230.5 kB / 0.9591 GB, free: 3.234 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.555e-05/0.8048, allocations: 88.61 kB / 0.9592 GB, free: 3.133 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.486e-05/0.8049, allocations: 7.938 kB / 0.9592 GB, free: 3.125 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000125/0.805, allocations: 8.969 kB / 0.9592 GB, free: 3.125 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.399e-05/0.8051, allocations: 17.31 kB / 0.9592 GB, free: 3.113 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.758e-05/0.8051, allocations: 3.594 kB / 0.9592 GB, free: 3.113 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.639e-05/0.8051, allocations: 104.8 kB / 0.9593 GB, free: 3.023 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8051, allocations: 2.281 kB / 0.9593 GB, free: 3.023 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.000346/0.8055, allocations: 41.67 kB / 0.9594 GB, free: 3.012 MB / 0.7169 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.0003644/0.8059, allocations: 157.8 kB / 0.9595 GB, free: 2.902 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002985/0.8062, allocations: 94.83 kB / 0.9596 GB, free: 2.863 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.8062, allocations: 0 / 0.9596 GB, free: 2.863 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001353/0.8063, allocations: 56.81 kB / 0.9597 GB, free: 2.836 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002105/0.8065, allocations: 13.73 kB / 0.9597 GB, free: 2.828 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004692/0.807, allocations: 230.2 kB / 0.9599 GB, free: 2.637 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001285/0.8072, allocations: 0.697 MB / 0.9606 GB, free: 1.93 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 5.365e-05/0.8072, allocations: 10.16 kB / 0.9606 GB, free: 1.926 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.264e-05/0.8073, allocations: 12.94 kB / 0.9606 GB, free: 1.918 MB / 0.7169 GB Notification: Performance of SimCode: time 2.6e-07/0.8073, allocations: 0 / 0.9606 GB, free: 1.918 MB / 0.7169 GB Notification: Performance of Templates: time 0.004251/0.8115, allocations: 1.612 MB / 0.9622 GB, free: 1.09 MB / 0.7169 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) "" 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