Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.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.Reinhart2003Light,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.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_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001547/0.001547, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001882/0.001882, allocations: 192.8 kB / 16.14 MB, free: 6.719 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.526/1.526, allocations: 222.9 MB / 239.8 MB, free: 4.637 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.826/2.826, allocations: 472.6 MB / 0.7447 GB, free: 4.91 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001292/0.001292, allocations: 63.88 kB / 0.9114 GB, free: 33.6 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3481/0.3494, allocations: 159.9 MB / 1.068 GB, free: 10.9 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light): time 0.003235/0.3527, allocations: 1.593 MB / 1.069 GB, free: 9.297 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001507/0.3542, allocations: 0.7829 MB / 1.07 GB, free: 8.508 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.352e-05/0.3543, allocations: 0 / 1.07 GB, free: 8.508 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 4.458e-05/0.3543, allocations: 3.938 kB / 1.07 GB, free: 8.504 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 9.041e-05/0.3544, allocations: 11.88 kB / 1.07 GB, free: 8.492 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004988/0.3549, allocations: 111.8 kB / 1.07 GB, free: 8.383 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001941/0.3551, allocations: 99.62 kB / 1.07 GB, free: 8.285 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001008/0.3553, allocations: 15.98 kB / 1.07 GB, free: 8.27 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 9.98e-05/0.3554, allocations: 39.84 kB / 1.07 GB, free: 8.23 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 8.209e-05/0.3554, allocations: 43.81 kB / 1.07 GB, free: 8.188 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.31e-05/0.3555, allocations: 4 kB / 1.07 GB, free: 8.184 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000202/0.3557, allocations: 95.84 kB / 1.07 GB, free: 8.09 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 3.657e-05/0.3557, allocations: 19.92 kB / 1.07 GB, free: 8.07 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 6.058e-05/0.3558, allocations: 39.73 kB / 1.07 GB, free: 8.031 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0003047/0.3561, allocations: 159.8 kB / 1.07 GB, free: 7.875 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.06e-06/0.3561, allocations: 0 / 1.07 GB, free: 7.875 MB / 0.8262 GB Notification: Performance of FrontEnd: time 9.82e-07/0.3561, allocations: 4 kB / 1.07 GB, free: 7.871 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.621e-06/0.3561, allocations: 0 / 1.07 GB, free: 7.871 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.0008915/0.357, allocations: 0.5078 MB / 1.071 GB, free: 7.297 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.345e-05/0.3571, allocations: 8.031 kB / 1.071 GB, free: 7.289 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.869e-05/0.3571, allocations: 12.84 kB / 1.071 GB, free: 7.277 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001538/0.3573, allocations: 176.2 kB / 1.071 GB, free: 7.066 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.696e-05/0.3573, allocations: 4.375 kB / 1.071 GB, free: 7.062 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.212e-05/0.3573, allocations: 20.34 kB / 1.071 GB, free: 7.043 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001954/0.3576, allocations: 77.95 kB / 1.071 GB, free: 6.961 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.011e-05/0.3576, allocations: 0 / 1.071 GB, free: 6.961 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.334e-05/0.3576, allocations: 7.938 kB / 1.071 GB, free: 6.953 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.03e-06/0.3576, allocations: 0 / 1.071 GB, free: 6.953 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001485/0.3578, allocations: 43.97 kB / 1.071 GB, free: 6.91 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005558/0.3583, allocations: 344.6 kB / 1.072 GB, free: 6.523 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000253/0.3586, allocations: 78.7 kB / 1.072 GB, free: 6.438 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.454e-05/0.3587, allocations: 48.83 kB / 1.072 GB, free: 6.387 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.798e-05/0.3587, allocations: 0 / 1.072 GB, free: 6.387 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002323/0.359, allocations: 95.36 kB / 1.072 GB, free: 6.281 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=11): time 1.283e-06/0.359, allocations: 3.938 kB / 1.072 GB, free: 6.277 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11): time 0.0004395/0.3594, allocations: 181.3 kB / 1.072 GB, free: 6.094 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001033/0.3595, allocations: 59.39 kB / 1.072 GB, free: 6.023 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001201/0.3597, allocations: 143.2 kB / 1.072 GB, free: 5.875 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.234e-05/0.3597, allocations: 29.7 kB / 1.072 GB, free: 5.84 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 7.011e-05/0.3598, allocations: 96.12 kB / 1.072 GB, free: 5.742 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.983e-05/0.3598, allocations: 35.64 kB / 1.072 GB, free: 5.707 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.968e-05/0.3599, allocations: 33.7 kB / 1.072 GB, free: 5.668 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001245/0.36, allocations: 326.8 kB / 1.073 GB, free: 5.34 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.746e-05/0.3601, allocations: 27.98 kB / 1.073 GB, free: 5.312 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001062/0.3602, allocations: 69.12 kB / 1.073 GB, free: 5.227 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001774/0.3604, allocations: 105 kB / 1.073 GB, free: 5.105 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/0.3604, allocations: 0 / 1.073 GB, free: 5.105 MB / 0.8262 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002578/0.3607, allocations: 141.5 kB / 1.073 GB, free: 4.961 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.446e-05/0.3607, allocations: 8.094 kB / 1.073 GB, free: 4.953 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.994e-06/0.3607, allocations: 4 kB / 1.073 GB, free: 4.949 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.49e-05/0.3607, allocations: 3.984 kB / 1.073 GB, free: 4.945 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001141/0.3608, allocations: 15.98 kB / 1.073 GB, free: 4.93 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.206e-05/0.3609, allocations: 7.984 kB / 1.073 GB, free: 4.922 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001042/0.361, allocations: 19.88 kB / 1.073 GB, free: 4.902 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.387e-05/0.361, allocations: 4 kB / 1.073 GB, free: 4.898 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 0.0001131/0.3611, allocations: 131.2 kB / 1.073 GB, free: 4.762 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.318e-05/0.3611, allocations: 15.91 kB / 1.073 GB, free: 4.746 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003771/0.3615, allocations: 158.3 kB / 1.073 GB, free: 4.582 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.439e-06/0.3615, allocations: 4 kB / 1.073 GB, free: 4.578 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/0.3615, allocations: 0 / 1.073 GB, free: 4.578 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.3615, allocations: 0 / 1.073 GB, free: 4.578 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006455/0.3622, allocations: 469.7 kB / 1.074 GB, free: 4.066 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.3622, allocations: 4 kB / 1.074 GB, free: 4.062 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.507e-05/0.3623, allocations: 15.92 kB / 1.074 GB, free: 4.047 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.927e-06/0.3623, allocations: 4 kB / 1.074 GB, free: 4.043 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.516e-05/0.3623, allocations: 4 kB / 1.074 GB, free: 4.039 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.3623, allocations: 0 / 1.074 GB, free: 4.039 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.3623, allocations: 3.938 kB / 1.074 GB, free: 4.035 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003178/0.3627, allocations: 251.3 kB / 1.074 GB, free: 3.773 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 9.418e-05/0.3628, allocations: 89.02 kB / 1.074 GB, free: 3.668 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.498e-05/0.3628, allocations: 0 / 1.074 GB, free: 3.668 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001251/0.3629, allocations: 15.98 kB / 1.074 GB, free: 3.652 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.218e-05/0.363, allocations: 11.92 kB / 1.074 GB, free: 3.641 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.743e-05/0.363, allocations: 4 kB / 1.074 GB, free: 3.637 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 6.828e-05/0.3631, allocations: 110.5 kB / 1.074 GB, free: 3.531 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3631, allocations: 0 / 1.074 GB, free: 3.531 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003122/0.3634, allocations: 47.94 kB / 1.074 GB, free: 3.484 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 (14): * Single equations (assignments): 11 * 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.0003697/0.3638, allocations: 164.8 kB / 1.075 GB, free: 3.332 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002528/0.364, allocations: 95.88 kB / 1.075 GB, free: 3.238 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.3641, allocations: 3.938 kB / 1.075 GB, free: 3.234 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001317/0.3642, allocations: 63.91 kB / 1.075 GB, free: 3.172 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003013/0.3645, allocations: 23.61 kB / 1.075 GB, free: 3.152 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004963/0.365, allocations: 257.4 kB / 1.075 GB, free: 2.875 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003872/0.3654, allocations: 0.7043 MB / 1.076 GB, free: 2.145 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.979e-05/0.3655, allocations: 4.562 kB / 1.076 GB, free: 2.137 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.308e-05/0.3655, allocations: 23.42 kB / 1.076 GB, free: 2.113 MB / 0.8262 GB Notification: Performance of SimCode: time 2.3e-07/0.3655, allocations: 0 / 1.076 GB, free: 2.113 MB / 0.8262 GB Notification: Performance of Templates: time 0.004869/0.3704, allocations: 1.874 MB / 1.078 GB, free: 252 kB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.makefile (rm -f Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.sim & ./Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches