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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.000854/0.0008542, allocations: 90.52 kB / 15.36 MB, free: 0.7383 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.007246/0.007246, allocations: 170.3 kB / 16.26 MB, free: 6.613 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.411/1.411, allocations: 223.2 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.764/2.764, allocations: 462.6 MB / 0.7364 GB, free: 280 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0003507/0.0003507, allocations: 10 kB / 0.9028 GB, free: 36.7 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.333/0.3333, allocations: 159.6 MB / 1.059 GB, free: 5.449 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light): time 0.001841/0.3352, allocations: 1.237 MB / 1.06 GB, free: 4.203 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001465/0.3367, allocations: 0.7595 MB / 1.061 GB, free: 3.438 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.426e-05/0.3368, allocations: 0 / 1.061 GB, free: 3.438 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.578e-05/0.3368, allocations: 7.875 kB / 1.061 GB, free: 3.43 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.000109/0.337, allocations: 15.84 kB / 1.061 GB, free: 3.414 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005706/0.3375, allocations: 99.78 kB / 1.061 GB, free: 3.316 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001633/0.3377, allocations: 87.75 kB / 1.061 GB, free: 3.23 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001155/0.3378, allocations: 8 kB / 1.061 GB, free: 3.223 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001416/0.338, allocations: 39.84 kB / 1.061 GB, free: 3.184 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001061/0.3381, allocations: 39.83 kB / 1.061 GB, free: 3.145 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.515e-05/0.3381, allocations: 4 kB / 1.061 GB, free: 3.141 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001991/0.3383, allocations: 87.84 kB / 1.061 GB, free: 3.055 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.996e-05/0.3384, allocations: 15.92 kB / 1.061 GB, free: 3.039 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 7.848e-05/0.3385, allocations: 65.48 kB / 1.061 GB, free: 2.969 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002611/0.3387, allocations: 143.9 kB / 1.061 GB, free: 2.828 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.3388, allocations: 7.938 kB / 1.061 GB, free: 2.82 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.225e-06/0.3388, allocations: 0 / 1.061 GB, free: 2.82 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.721e-06/0.3388, allocations: 4 kB / 1.061 GB, free: 2.816 MB / 0.8106 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.0008553/0.3396, allocations: 462.6 kB / 1.062 GB, free: 2.305 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.513e-05/0.3397, allocations: 8.031 kB / 1.062 GB, free: 2.297 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.907e-05/0.3398, allocations: 12.84 kB / 1.062 GB, free: 2.285 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001608/0.3399, allocations: 180.2 kB / 1.062 GB, free: 2.07 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.94e-05/0.34, allocations: 38.25 kB / 1.062 GB, free: 2.027 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.104e-05/0.3401, allocations: 4.375 kB / 1.062 GB, free: 2.023 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002178/0.3403, allocations: 85.7 kB / 1.062 GB, free: 1.934 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.859e-06/0.3403, allocations: 0 / 1.062 GB, free: 1.934 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.459e-05/0.3403, allocations: 0 / 1.062 GB, free: 1.934 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.172e-06/0.3403, allocations: 0 / 1.062 GB, free: 1.934 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001999/0.3405, allocations: 63.89 kB / 1.062 GB, free: 1.871 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005691/0.3411, allocations: 316.7 kB / 1.062 GB, free: 1.512 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002185/0.3413, allocations: 82.56 kB / 1.062 GB, free: 1.422 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001138/0.3415, allocations: 36.84 kB / 1.062 GB, free: 1.383 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.276e-05/0.3415, allocations: 0 / 1.062 GB, free: 1.383 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002509/0.3418, allocations: 103.5 kB / 1.063 GB, free: 1.27 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=10): time 3.186e-06/0.3418, allocations: 7.922 kB / 1.063 GB, free: 1.262 MB / 0.8106 GB Notification: Performance of matching and sorting (n=10): time 0.0005023/0.3423, allocations: 169.5 kB / 1.063 GB, free: 1.09 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.266e-05/0.3423, allocations: 63.38 kB / 1.063 GB, free: 1.016 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001127/0.3425, allocations: 136.4 kB / 1.063 GB, free: 0.8711 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.73e-05/0.3425, allocations: 29.64 kB / 1.063 GB, free: 0.8359 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.153e-05/0.3425, allocations: 96.28 kB / 1.063 GB, free: 0.7344 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.647e-05/0.3426, allocations: 23.73 kB / 1.063 GB, free: 0.7109 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.333e-05/0.3426, allocations: 17.72 kB / 1.063 GB, free: 0.6875 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001069/0.3427, allocations: 326.8 kB / 1.063 GB, free: 368 kB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000116/0.3429, allocations: 27.98 kB / 1.063 GB, free: 340 kB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001294/0.343, allocations: 77.12 kB / 1.063 GB, free: 244 kB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002332/0.3432, allocations: 113 kB / 1.064 GB, free: 112 kB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.083e-06/0.3432, allocations: 0 / 1.064 GB, free: 112 kB / 0.8106 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003366/0.3436, allocations: 141.5 kB / 1.064 GB, free: 15.96 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.715e-05/0.3436, allocations: 8 kB / 1.064 GB, free: 15.95 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.24e-06/0.3436, allocations: 0 / 1.064 GB, free: 15.95 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.731e-05/0.3436, allocations: 4 kB / 1.064 GB, free: 15.95 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001191/0.3438, allocations: 19.92 kB / 1.064 GB, free: 15.93 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.443e-06/0.3438, allocations: 0 / 1.064 GB, free: 15.93 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001162/0.3439, allocations: 19.98 kB / 1.064 GB, free: 15.91 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.509e-05/0.3439, allocations: 7.984 kB / 1.064 GB, free: 15.9 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,occ.pulseStart,$PRE.occ.pulseStart,occ.y,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.366e-05/0.344, allocations: 125.8 kB / 1.064 GB, free: 15.77 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.055e-05/0.3441, allocations: 11.91 kB / 1.064 GB, free: 15.76 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.665e-05/0.3441, allocations: 16.72 kB / 1.064 GB, free: 15.74 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.314e-06/0.3441, allocations: 0 / 1.064 GB, free: 15.74 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/0.3441, allocations: 0 / 1.064 GB, free: 15.74 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.09e-06/0.3441, allocations: 3.984 kB / 1.064 GB, free: 15.74 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006317/0.3448, allocations: 442.5 kB / 1.064 GB, free: 15.25 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.3448, allocations: 0 / 1.064 GB, free: 15.25 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.591e-05/0.3449, allocations: 11.98 kB / 1.064 GB, free: 15.24 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.886e-06/0.3449, allocations: 3.938 kB / 1.064 GB, free: 15.24 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.091e-05/0.3449, allocations: 96 / 1.064 GB, free: 15.24 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.96e-06/0.3449, allocations: 15.88 kB / 1.064 GB, free: 15.22 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.394e-06/0.3449, allocations: 3.984 kB / 1.064 GB, free: 15.22 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003414/0.3453, allocations: 231.3 kB / 1.065 GB, free: 14.98 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.191e-05/0.3453, allocations: 81.02 kB / 1.065 GB, free: 14.88 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.489e-05/0.3453, allocations: 4 kB / 1.065 GB, free: 14.88 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001395/0.3455, allocations: 23.92 kB / 1.065 GB, free: 14.85 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.11e-05/0.3455, allocations: 11.97 kB / 1.065 GB, free: 14.84 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.74e-05/0.3456, allocations: 4 kB / 1.065 GB, free: 14.84 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 6.61e-05/0.3456, allocations: 99.27 kB / 1.065 GB, free: 14.74 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.7e-07/0.3456, allocations: 3.938 kB / 1.065 GB, free: 14.73 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003223/0.346, allocations: 43.98 kB / 1.065 GB, free: 14.69 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 (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 (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.0003532/0.3463, allocations: 163.9 kB / 1.065 GB, free: 14.54 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003102/0.3466, allocations: 91.92 kB / 1.065 GB, free: 14.45 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.3467, allocations: 0 / 1.065 GB, free: 14.45 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001584/0.3468, allocations: 52.16 kB / 1.065 GB, free: 14.4 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002952/0.3471, allocations: 17.19 kB / 1.065 GB, free: 14.38 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004903/0.3476, allocations: 231.3 kB / 1.065 GB, free: 14.13 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002753/0.3479, allocations: 0.7004 MB / 1.066 GB, free: 13.4 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 5.417e-05/0.348, allocations: 4.672 kB / 1.066 GB, free: 13.4 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.114e-05/0.348, allocations: 23.42 kB / 1.066 GB, free: 13.38 MB / 0.8262 GB Notification: Performance of SimCode: time 4e-07/0.348, allocations: 0 / 1.066 GB, free: 13.38 MB / 0.8262 GB Notification: Performance of Templates: time 0.005087/0.3531, allocations: 1.645 MB / 1.068 GB, free: 11.74 MB / 0.8262 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches