Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.Gunay2016Light,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.Gunay2016Light") translateModel(Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light,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.Gunay2016Light") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001435/0.001435, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001785/0.001785, allocations: 194.3 kB / 16.53 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.355/1.355, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.757/2.757, allocations: 472.7 MB / 0.7451 GB, free: 4.68 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001235/0.001235, allocations: 69.8 kB / 0.9121 GB, free: 33.42 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3589/0.3601, allocations: 159.9 MB / 1.068 GB, free: 10.4 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light): time 0.002834/0.363, allocations: 1.523 MB / 1.07 GB, free: 8.871 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001294/0.3643, allocations: 0.7595 MB / 1.07 GB, free: 8.105 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.592e-05/0.3644, allocations: 0 / 1.07 GB, free: 8.105 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 3.534e-05/0.3645, allocations: 7.875 kB / 1.07 GB, free: 8.098 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 8.773e-05/0.3645, allocations: 11.88 kB / 1.07 GB, free: 8.086 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005325/0.3651, allocations: 131.6 kB / 1.071 GB, free: 7.957 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001182/0.3652, allocations: 103.6 kB / 1.071 GB, free: 7.855 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 9.761e-05/0.3653, allocations: 15.98 kB / 1.071 GB, free: 7.84 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001099/0.3654, allocations: 47.91 kB / 1.071 GB, free: 7.793 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 7.325e-05/0.3655, allocations: 47.75 kB / 1.071 GB, free: 7.746 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.15e-05/0.3655, allocations: 8 kB / 1.071 GB, free: 7.738 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001811/0.3657, allocations: 91.91 kB / 1.071 GB, free: 7.648 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 3e-05/0.3658, allocations: 19.92 kB / 1.071 GB, free: 7.629 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 5.199e-05/0.3658, allocations: 39.78 kB / 1.071 GB, free: 7.59 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002391/0.3661, allocations: 167.7 kB / 1.071 GB, free: 7.426 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.3661, allocations: 4 kB / 1.071 GB, free: 7.422 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.503e-06/0.3661, allocations: 4 kB / 1.071 GB, free: 7.418 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.762e-06/0.3661, allocations: 0 / 1.071 GB, free: 7.418 MB / 0.8262 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.0007561/0.3669, allocations: 492.2 kB / 1.072 GB, free: 6.871 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.71e-05/0.3669, allocations: 12.03 kB / 1.072 GB, free: 6.859 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.894e-05/0.367, allocations: 8.844 kB / 1.072 GB, free: 6.852 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001343/0.3671, allocations: 180.2 kB / 1.072 GB, free: 6.637 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.719e-05/0.3671, allocations: 8.375 kB / 1.072 GB, free: 6.629 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.973e-05/0.3672, allocations: 4.375 kB / 1.072 GB, free: 6.625 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001979/0.3674, allocations: 89.89 kB / 1.072 GB, free: 6.531 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.454e-06/0.3674, allocations: 0 / 1.072 GB, free: 6.531 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.452e-05/0.3674, allocations: 4 kB / 1.072 GB, free: 6.527 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.268e-06/0.3674, allocations: 0 / 1.072 GB, free: 6.527 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001548/0.3676, allocations: 51.97 kB / 1.072 GB, free: 6.477 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005888/0.3682, allocations: 336.6 kB / 1.072 GB, free: 6.098 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002193/0.3684, allocations: 86.69 kB / 1.072 GB, free: 6.004 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.436e-05/0.3685, allocations: 40.84 kB / 1.072 GB, free: 5.961 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.268e-05/0.3685, allocations: 4 kB / 1.072 GB, free: 5.957 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002744/0.3688, allocations: 95.34 kB / 1.072 GB, free: 5.852 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=11): time 2.965e-06/0.3688, allocations: 0 / 1.072 GB, free: 5.852 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11): time 0.0004781/0.3693, allocations: 177.4 kB / 1.073 GB, free: 5.672 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.659e-05/0.3694, allocations: 59.39 kB / 1.073 GB, free: 5.602 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001387/0.3695, allocations: 135.7 kB / 1.073 GB, free: 5.457 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.232e-05/0.3696, allocations: 29.7 kB / 1.073 GB, free: 5.422 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 6.631e-05/0.3696, allocations: 96.05 kB / 1.073 GB, free: 5.324 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.416e-05/0.3697, allocations: 35.62 kB / 1.073 GB, free: 5.289 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.605e-05/0.3697, allocations: 33.7 kB / 1.073 GB, free: 5.25 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001291/0.3699, allocations: 322.8 kB / 1.073 GB, free: 4.926 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.945e-05/0.37, allocations: 27.98 kB / 1.073 GB, free: 4.898 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.84e-05/0.3701, allocations: 69.14 kB / 1.073 GB, free: 4.812 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001777/0.3702, allocations: 109 kB / 1.074 GB, free: 4.688 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.3703, allocations: 0 / 1.074 GB, free: 4.688 MB / 0.8262 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002534/0.3705, allocations: 141.5 kB / 1.074 GB, free: 4.543 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.611e-05/0.3705, allocations: 11.94 kB / 1.074 GB, free: 4.531 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.895e-06/0.3706, allocations: 4 kB / 1.074 GB, free: 4.527 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.622e-05/0.3706, allocations: 0 / 1.074 GB, free: 4.527 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001113/0.3707, allocations: 15.98 kB / 1.074 GB, free: 4.512 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.167e-06/0.3707, allocations: 4 kB / 1.074 GB, free: 4.508 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001031/0.3708, allocations: 27.77 kB / 1.074 GB, free: 4.48 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.393e-05/0.3708, allocations: 4 kB / 1.074 GB, free: 4.477 MB / 0.8262 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 (lig.curSeed,$PRE.lig.curSeed,lig.on,$PRE.lig.on,$whenCondition3,lig.sampleTrigger,$whenCondition2,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,booleanPulse.y,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.911e-05/0.3709, allocations: 126 kB / 1.074 GB, free: 4.348 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.384e-05/0.371, allocations: 11.91 kB / 1.074 GB, free: 4.336 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000344/0.3713, allocations: 166.3 kB / 1.074 GB, free: 4.164 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.985e-06/0.3713, allocations: 0 / 1.074 GB, free: 4.164 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.3713, allocations: 0 / 1.074 GB, free: 4.164 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.158e-06/0.3713, allocations: 144 / 1.074 GB, free: 4.164 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005826/0.3719, allocations: 457.4 kB / 1.074 GB, free: 3.664 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.346e-06/0.3719, allocations: 7.984 kB / 1.074 GB, free: 3.656 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.965e-05/0.372, allocations: 11.94 kB / 1.074 GB, free: 3.645 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.372, allocations: 0 / 1.074 GB, free: 3.645 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.518e-05/0.372, allocations: 7.984 kB / 1.074 GB, free: 3.637 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.3721, allocations: 0 / 1.074 GB, free: 3.637 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.857e-06/0.3721, allocations: 3.938 kB / 1.074 GB, free: 3.633 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003019/0.3724, allocations: 235.4 kB / 1.075 GB, free: 3.387 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 9.867e-05/0.3725, allocations: 88.95 kB / 1.075 GB, free: 3.281 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.632e-05/0.3725, allocations: 8 kB / 1.075 GB, free: 3.273 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001164/0.3726, allocations: 7.984 kB / 1.075 GB, free: 3.266 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.046e-05/0.3727, allocations: 15.92 kB / 1.075 GB, free: 3.25 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.761e-05/0.3727, allocations: 4 kB / 1.075 GB, free: 3.246 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 6.437e-05/0.3728, allocations: 101.4 kB / 1.075 GB, free: 3.148 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3728, allocations: 3.938 kB / 1.075 GB, free: 3.145 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003483/0.3731, allocations: 47.98 kB / 1.075 GB, free: 3.098 MB / 0.8262 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 (13): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000359/0.3735, allocations: 164.9 kB / 1.075 GB, free: 2.945 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002864/0.3738, allocations: 99.89 kB / 1.075 GB, free: 2.848 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.3738, allocations: 0 / 1.075 GB, free: 2.848 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001245/0.3739, allocations: 59.89 kB / 1.075 GB, free: 2.789 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003101/0.3743, allocations: 20.17 kB / 1.075 GB, free: 2.77 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005046/0.3748, allocations: 219.8 kB / 1.075 GB, free: 2.527 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002624/0.3751, allocations: 0.7041 MB / 1.076 GB, free: 1.797 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 5.525e-05/0.3751, allocations: 8.422 kB / 1.076 GB, free: 1.789 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.363e-05/0.3752, allocations: 23.42 kB / 1.076 GB, free: 1.766 MB / 0.8262 GB Notification: Performance of SimCode: time 2.61e-07/0.3752, allocations: 0 / 1.076 GB, free: 1.766 MB / 0.8262 GB Notification: Performance of Templates: time 0.005115/0.3803, allocations: 1.952 MB / 1.078 GB, free: 15.82 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.makefile (rm -f Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.sim & ./Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Lighting_Validation_Gunay2016Light.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches