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.001409/0.001409, 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.001772/0.001772, allocations: 196.8 kB / 16.14 MB, free: 6.711 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.375/1.375, allocations: 222.9 MB / 239.8 MB, free: 4.605 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.731/2.731, allocations: 461.9 MB / 0.7342 GB, free: 14.95 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001533/0.001533, allocations: 65.97 kB / 0.8984 GB, free: 37.27 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3221/0.3236, allocations: 157.4 MB / 1.052 GB, free: 8.812 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light): time 0.00325/0.3269, allocations: 1.564 MB / 1.054 GB, free: 7.234 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001632/0.3286, allocations: 0.7827 MB / 1.054 GB, free: 6.445 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.769e-05/0.3287, allocations: 0 / 1.054 GB, free: 6.445 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 5.212e-05/0.3288, allocations: 3.938 kB / 1.054 GB, free: 6.441 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001077/0.3289, allocations: 15.91 kB / 1.054 GB, free: 6.426 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006052/0.3295, allocations: 103.8 kB / 1.055 GB, free: 6.324 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001358/0.3297, allocations: 87.7 kB / 1.055 GB, free: 6.238 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001089/0.3298, allocations: 8 kB / 1.055 GB, free: 6.23 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001316/0.3299, allocations: 43.83 kB / 1.055 GB, free: 6.188 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 9.107e-05/0.33, allocations: 35.84 kB / 1.055 GB, free: 6.152 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.577e-05/0.33, allocations: 4 kB / 1.055 GB, free: 6.148 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002373/0.3303, allocations: 91.84 kB / 1.055 GB, free: 6.059 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 3.287e-05/0.3303, allocations: 23.91 kB / 1.055 GB, free: 6.035 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 6.124e-05/0.3304, allocations: 35.73 kB / 1.055 GB, free: 6 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002661/0.3307, allocations: 151.9 kB / 1.055 GB, free: 5.852 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.3307, allocations: 0 / 1.055 GB, free: 5.852 MB / 0.8106 GB Notification: Performance of FrontEnd: time 9.72e-07/0.3307, allocations: 4 kB / 1.055 GB, free: 5.848 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.5e-06/0.3307, allocations: 0 / 1.055 GB, free: 5.848 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.0008823/0.3316, allocations: 479.7 kB / 1.055 GB, free: 5.32 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.471e-05/0.3316, allocations: 12.03 kB / 1.055 GB, free: 5.309 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.639e-05/0.3317, allocations: 8.844 kB / 1.055 GB, free: 5.301 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001721/0.3319, allocations: 176.2 kB / 1.056 GB, free: 5.09 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.117e-05/0.332, allocations: 42.25 kB / 1.056 GB, free: 5.043 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.154e-05/0.332, allocations: 4.375 kB / 1.056 GB, free: 5.039 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002539/0.3323, allocations: 81.77 kB / 1.056 GB, free: 4.953 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.141e-05/0.3323, allocations: 0 / 1.056 GB, free: 4.953 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.656e-05/0.3323, allocations: 3.984 kB / 1.056 GB, free: 4.949 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.43e-06/0.3323, allocations: 0 / 1.056 GB, free: 4.949 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002038/0.3325, allocations: 55.89 kB / 1.056 GB, free: 4.895 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000606/0.3332, allocations: 312.8 kB / 1.056 GB, free: 4.539 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000233/0.3334, allocations: 74.53 kB / 1.056 GB, free: 4.457 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001167/0.3335, allocations: 36.84 kB / 1.056 GB, free: 4.418 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.705e-05/0.3336, allocations: 8.141 kB / 1.056 GB, free: 4.41 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003162/0.3339, allocations: 103.3 kB / 1.056 GB, free: 4.297 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=10): time 1.743e-06/0.3339, allocations: 0 / 1.056 GB, free: 4.297 MB / 0.8106 GB Notification: Performance of matching and sorting (n=10): time 0.000525/0.3344, allocations: 169.7 kB / 1.056 GB, free: 4.125 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.881e-05/0.3345, allocations: 55.41 kB / 1.057 GB, free: 4.059 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001335/0.3346, allocations: 130.1 kB / 1.057 GB, free: 3.918 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.222e-05/0.3347, allocations: 29.8 kB / 1.057 GB, free: 3.883 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.423e-05/0.3347, allocations: 92.31 kB / 1.057 GB, free: 3.785 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.944e-05/0.3348, allocations: 27.64 kB / 1.057 GB, free: 3.758 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.978e-05/0.3348, allocations: 33.7 kB / 1.057 GB, free: 3.719 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.00012/0.335, allocations: 318.8 kB / 1.057 GB, free: 3.398 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001124/0.3351, allocations: 35.97 kB / 1.057 GB, free: 3.363 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001365/0.3352, allocations: 73.12 kB / 1.057 GB, free: 3.273 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002187/0.3355, allocations: 109 kB / 1.057 GB, free: 3.148 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.065e-06/0.3355, allocations: 0 / 1.057 GB, free: 3.148 MB / 0.8106 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003026/0.3358, allocations: 133.4 kB / 1.057 GB, free: 3.012 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.847e-05/0.3358, allocations: 8 kB / 1.057 GB, free: 3.004 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.3358, allocations: 0 / 1.057 GB, free: 3.004 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.688e-05/0.3358, allocations: 8.125 kB / 1.057 GB, free: 2.996 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001249/0.336, allocations: 11.98 kB / 1.057 GB, free: 2.984 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.265e-05/0.336, allocations: 7.938 kB / 1.058 GB, free: 2.977 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001169/0.3361, allocations: 23.83 kB / 1.058 GB, free: 2.953 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.34e-05/0.3361, allocations: 4 kB / 1.058 GB, free: 2.949 MB / 0.8106 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 0.0001042/0.3362, allocations: 117.8 kB / 1.058 GB, free: 2.824 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.319e-05/0.3363, allocations: 15.89 kB / 1.058 GB, free: 2.809 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.783e-05/0.3363, allocations: 16.72 kB / 1.058 GB, free: 2.793 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.853e-06/0.3363, allocations: 0 / 1.058 GB, free: 2.793 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.279e-06/0.3363, allocations: 0 / 1.058 GB, free: 2.793 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.026e-06/0.3363, allocations: 4 kB / 1.058 GB, free: 2.789 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006421/0.337, allocations: 434.2 kB / 1.058 GB, free: 2.309 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.337, allocations: 0 / 1.058 GB, free: 2.309 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.101e-05/0.3371, allocations: 16.08 kB / 1.058 GB, free: 2.293 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.348e-06/0.3371, allocations: 3.984 kB / 1.058 GB, free: 2.289 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.433e-05/0.3371, allocations: 0 / 1.058 GB, free: 2.289 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.32e-06/0.3371, allocations: 7.938 kB / 1.058 GB, free: 2.281 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.123e-06/0.3371, allocations: 0 / 1.058 GB, free: 2.281 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000376/0.3375, allocations: 231.4 kB / 1.058 GB, free: 2.039 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.316e-05/0.3376, allocations: 81.02 kB / 1.058 GB, free: 1.941 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.535e-05/0.3376, allocations: 8 kB / 1.058 GB, free: 1.934 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001383/0.3377, allocations: 15.92 kB / 1.058 GB, free: 1.918 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.485e-05/0.3378, allocations: 7.984 kB / 1.058 GB, free: 1.91 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.777e-05/0.3378, allocations: 7.984 kB / 1.058 GB, free: 1.902 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 6.303e-05/0.3379, allocations: 101.8 kB / 1.059 GB, free: 1.805 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3379, allocations: 0 / 1.059 GB, free: 1.805 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003191/0.3382, allocations: 40 kB / 1.059 GB, free: 1.766 MB / 0.8106 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.0003648/0.3386, allocations: 163.3 kB / 1.059 GB, free: 1.613 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0003142/0.3389, allocations: 91.81 kB / 1.059 GB, free: 1.523 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.3389, allocations: 0 / 1.059 GB, free: 1.523 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001471/0.3391, allocations: 56.16 kB / 1.059 GB, free: 1.469 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002994/0.3394, allocations: 20.2 kB / 1.059 GB, free: 1.449 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005056/0.3399, allocations: 221.6 kB / 1.059 GB, free: 1.211 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002801/0.3402, allocations: 0.6926 MB / 1.06 GB, free: 0.4922 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 5.913e-05/0.3403, allocations: 8.656 kB / 1.06 GB, free: 496 kB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.809e-05/0.3403, allocations: 11.44 kB / 1.06 GB, free: 484 kB / 0.8106 GB Notification: Performance of SimCode: time 3.41e-07/0.3403, allocations: 4 kB / 1.06 GB, free: 480 kB / 0.8106 GB Notification: Performance of Templates: time 0.004456/0.3448, allocations: 1.667 MB / 1.061 GB, free: 14.81 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