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 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.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.001102/0.001102, 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.00125/0.00125, allocations: 193.1 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.468/1.468, allocations: 222.9 MB / 239.8 MB, free: 4.59 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.866/2.866, allocations: 461.9 MB / 0.7342 GB, free: 15.01 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001314/0.001314, allocations: 69.61 kB / 0.8984 GB, free: 37.34 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3617/0.363, allocations: 157.4 MB / 1.052 GB, free: 8.836 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light): time 0.003155/0.3663, allocations: 1.599 MB / 1.054 GB, free: 7.223 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001636/0.3679, allocations: 0.779 MB / 1.054 GB, free: 6.438 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.977e-05/0.368, allocations: 0 / 1.054 GB, free: 6.438 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 5.736e-05/0.3681, allocations: 7.922 kB / 1.054 GB, free: 6.43 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001241/0.3682, allocations: 11.86 kB / 1.054 GB, free: 6.418 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006288/0.3689, allocations: 115.8 kB / 1.055 GB, free: 6.305 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001437/0.369, allocations: 91.7 kB / 1.055 GB, free: 6.215 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00011/0.3691, allocations: 12 kB / 1.055 GB, free: 6.203 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001308/0.3693, allocations: 47.77 kB / 1.055 GB, free: 6.156 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 8.885e-05/0.3694, allocations: 43.83 kB / 1.055 GB, free: 6.113 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.955e-05/0.3694, allocations: 4 kB / 1.055 GB, free: 6.109 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001804/0.3696, allocations: 91.84 kB / 1.055 GB, free: 6.02 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.956e-05/0.3696, allocations: 27.91 kB / 1.055 GB, free: 5.992 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 5.394e-05/0.3697, allocations: 39.73 kB / 1.055 GB, free: 5.953 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002339/0.3699, allocations: 151.9 kB / 1.055 GB, free: 5.805 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.3699, allocations: 0 / 1.055 GB, free: 5.805 MB / 0.8106 GB Notification: Performance of FrontEnd: time 9.21e-07/0.3699, allocations: 0 / 1.055 GB, free: 5.805 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.24e-06/0.3699, allocations: 4 kB / 1.055 GB, free: 5.801 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0008134/0.3708, allocations: 0.4924 MB / 1.056 GB, free: 5.242 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.857e-05/0.3708, allocations: 16.02 kB / 1.056 GB, free: 5.227 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.683e-05/0.3709, allocations: 20.69 kB / 1.056 GB, free: 5.207 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001436/0.371, allocations: 185.5 kB / 1.056 GB, free: 4.988 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.422e-05/0.371, allocations: 384 / 1.056 GB, free: 4.988 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.835e-05/0.3711, allocations: 8.375 kB / 1.056 GB, free: 4.98 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001998/0.3713, allocations: 85.94 kB / 1.056 GB, free: 4.891 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.614e-06/0.3713, allocations: 0 / 1.056 GB, free: 4.891 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.309e-05/0.3713, allocations: 0 / 1.056 GB, free: 4.891 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.228e-06/0.3713, allocations: 0 / 1.056 GB, free: 4.891 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001521/0.3715, allocations: 51.97 kB / 1.056 GB, free: 4.84 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005887/0.3721, allocations: 336.6 kB / 1.056 GB, free: 4.461 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002215/0.3723, allocations: 78.67 kB / 1.056 GB, free: 4.375 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.55e-05/0.3724, allocations: 36.84 kB / 1.056 GB, free: 4.336 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 3.043e-05/0.3725, allocations: 19.95 kB / 1.056 GB, free: 4.316 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002903/0.3727, allocations: 99.33 kB / 1.056 GB, free: 4.207 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=11): time 1.754e-06/0.3728, allocations: 0 / 1.056 GB, free: 4.207 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11): time 0.0004619/0.3732, allocations: 173.5 kB / 1.057 GB, free: 4.031 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.477e-05/0.3733, allocations: 51.41 kB / 1.057 GB, free: 3.969 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001409/0.3734, allocations: 150.8 kB / 1.057 GB, free: 3.812 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.899e-05/0.3735, allocations: 25.7 kB / 1.057 GB, free: 3.781 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.869e-05/0.3735, allocations: 104 kB / 1.057 GB, free: 3.676 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.11e-05/0.3736, allocations: 23.66 kB / 1.057 GB, free: 3.652 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.781e-05/0.3736, allocations: 33.7 kB / 1.057 GB, free: 3.613 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.000152/0.3738, allocations: 326.7 kB / 1.057 GB, free: 3.285 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.417e-05/0.3739, allocations: 27.98 kB / 1.057 GB, free: 3.258 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001118/0.374, allocations: 75.52 kB / 1.057 GB, free: 3.168 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001993/0.3742, allocations: 101.1 kB / 1.057 GB, free: 3.051 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.514e-06/0.3742, allocations: 0 / 1.057 GB, free: 3.051 MB / 0.8106 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002691/0.3745, allocations: 141.4 kB / 1.058 GB, free: 2.906 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.644e-05/0.3745, allocations: 4 kB / 1.058 GB, free: 2.902 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/0.3745, allocations: 0 / 1.058 GB, free: 2.902 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.513e-05/0.3745, allocations: 4 kB / 1.058 GB, free: 2.898 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001206/0.3747, allocations: 19.92 kB / 1.058 GB, free: 2.879 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.124e-06/0.3747, allocations: 0 / 1.058 GB, free: 2.879 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001042/0.3748, allocations: 23.83 kB / 1.058 GB, free: 2.855 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.619e-05/0.3748, allocations: 4 kB / 1.058 GB, free: 2.852 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,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.0001079/0.3749, allocations: 141.7 kB / 1.058 GB, free: 2.703 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.144e-05/0.375, allocations: 11.84 kB / 1.058 GB, free: 2.691 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003636/0.3753, allocations: 170.3 kB / 1.058 GB, free: 2.52 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.505e-06/0.3753, allocations: 0 / 1.058 GB, free: 2.52 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.167e-06/0.3753, allocations: 0 / 1.058 GB, free: 2.52 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-06/0.3754, allocations: 0 / 1.058 GB, free: 2.52 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006275/0.376, allocations: 470.3 kB / 1.058 GB, free: 2.004 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.442e-06/0.376, allocations: 0 / 1.058 GB, free: 2.004 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.544e-05/0.3761, allocations: 23.97 kB / 1.058 GB, free: 1.98 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.034e-06/0.3761, allocations: 0 / 1.058 GB, free: 1.98 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.777e-05/0.3761, allocations: 8 kB / 1.058 GB, free: 1.973 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.3761, allocations: 0 / 1.058 GB, free: 1.973 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.509e-06/0.3761, allocations: 3.938 kB / 1.058 GB, free: 1.969 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003385/0.3765, allocations: 247.3 kB / 1.059 GB, free: 1.711 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 5.071e-05/0.3765, allocations: 88.91 kB / 1.059 GB, free: 1.605 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.793e-05/0.3766, allocations: 8 kB / 1.059 GB, free: 1.598 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001207/0.3767, allocations: 7.984 kB / 1.059 GB, free: 1.59 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.188e-05/0.3768, allocations: 15.92 kB / 1.059 GB, free: 1.574 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.982e-05/0.3768, allocations: 8 kB / 1.059 GB, free: 1.566 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 7.8e-05/0.3769, allocations: 109 kB / 1.059 GB, free: 1.461 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3769, allocations: 4 kB / 1.059 GB, free: 1.457 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003216/0.3772, allocations: 40 kB / 1.059 GB, free: 1.418 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 (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.0003465/0.3776, allocations: 158.5 kB / 1.059 GB, free: 1.273 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002773/0.3778, allocations: 103.9 kB / 1.059 GB, free: 1.172 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.3779, allocations: 4.062 kB / 1.059 GB, free: 1.168 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001226/0.378, allocations: 51.97 kB / 1.059 GB, free: 1.117 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003022/0.3783, allocations: 19.92 kB / 1.059 GB, free: 1.098 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005345/0.3788, allocations: 261.5 kB / 1.06 GB, free: 0.8164 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002997/0.3792, allocations: 0.6965 MB / 1.06 GB, free: 96 kB / 0.8106 GB Notification: Performance of simCode: alias equations: time 5.676e-05/0.3792, allocations: 16.55 kB / 1.06 GB, free: 80 kB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.011e-05/0.3793, allocations: 15.42 kB / 1.06 GB, free: 64 kB / 0.8106 GB Notification: Performance of SimCode: time 2.6e-07/0.3793, allocations: 0 / 1.06 GB, free: 64 kB / 0.8106 GB Notification: Performance of Templates: time 0.00477/0.3841, allocations: 1.889 MB / 1.062 GB, free: 14.18 MB / 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