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.00714/0.00714, allocations: 102.1 kB / 15.73 MB, free: 6.469 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.001602/0.001602, allocations: 193.9 kB / 16.67 MB, free: 6.379 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.419/1.419, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.78/2.78, allocations: 461.9 MB / 0.7348 GB, free: 14.62 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001203/0.001203, allocations: 64.12 kB / 1.054 GB, free: 7.148 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2929/0.2941, allocations: 157.4 MB / 1.208 GB, free: 9.641 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light): time 0.002443/0.2966, allocations: 1.536 MB / 1.209 GB, free: 8.09 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001227/0.2978, allocations: 0.7754 MB / 1.21 GB, free: 7.309 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.297e-05/0.2979, allocations: 0 / 1.21 GB, free: 7.309 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 3.829e-05/0.2979, allocations: 15.86 kB / 1.21 GB, free: 7.293 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 8.328e-05/0.298, allocations: 7.875 kB / 1.21 GB, free: 7.285 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005037/0.2985, allocations: 135.5 kB / 1.21 GB, free: 7.152 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001571/0.2987, allocations: 103.7 kB / 1.21 GB, free: 7.051 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000109/0.2988, allocations: 19.98 kB / 1.21 GB, free: 7.031 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 9.994e-05/0.2989, allocations: 43.78 kB / 1.21 GB, free: 6.988 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 8.857e-05/0.299, allocations: 51.81 kB / 1.21 GB, free: 6.938 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.067e-05/0.299, allocations: 8 kB / 1.21 GB, free: 6.93 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001816/0.2992, allocations: 99.84 kB / 1.21 GB, free: 6.832 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.939e-05/0.2993, allocations: 23.92 kB / 1.21 GB, free: 6.809 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 5.335e-05/0.2993, allocations: 39.78 kB / 1.21 GB, free: 6.77 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002237/0.2995, allocations: 167.5 kB / 1.211 GB, free: 6.605 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.527e-06/0.2996, allocations: 0 / 1.211 GB, free: 6.605 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.243e-06/0.2996, allocations: 0 / 1.211 GB, free: 6.605 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 4.509e-06/0.2996, allocations: 0 / 1.211 GB, free: 6.605 MB / 0.9669 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.0007634/0.3003, allocations: 0.5078 MB / 1.211 GB, free: 6.031 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.237e-05/0.3004, allocations: 12.03 kB / 1.211 GB, free: 6.02 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.592e-05/0.3004, allocations: 12.84 kB / 1.211 GB, free: 6.008 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001327/0.3006, allocations: 180.1 kB / 1.211 GB, free: 5.793 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.79e-05/0.3006, allocations: 8.359 kB / 1.211 GB, free: 5.785 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.931e-05/0.3006, allocations: 8.375 kB / 1.211 GB, free: 5.777 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001921/0.3008, allocations: 77.95 kB / 1.211 GB, free: 5.695 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.115e-05/0.3008, allocations: 0 / 1.211 GB, free: 5.695 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.498e-05/0.3009, allocations: 7.938 kB / 1.211 GB, free: 5.688 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.029e-06/0.3009, allocations: 0 / 1.211 GB, free: 5.688 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001461/0.301, allocations: 47.97 kB / 1.211 GB, free: 5.641 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005108/0.3015, allocations: 340.7 kB / 1.212 GB, free: 5.258 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001978/0.3017, allocations: 82.64 kB / 1.212 GB, free: 5.168 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.772e-05/0.3018, allocations: 44.83 kB / 1.212 GB, free: 5.121 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.025e-05/0.3019, allocations: 4 kB / 1.212 GB, free: 5.117 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002099/0.3021, allocations: 95.3 kB / 1.212 GB, free: 5.012 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=11): time 1.683e-06/0.3021, allocations: 0 / 1.212 GB, free: 5.012 MB / 0.9669 GB Notification: Performance of matching and sorting (n=11): time 0.0004177/0.3025, allocations: 185.3 kB / 1.212 GB, free: 4.824 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.594e-05/0.3026, allocations: 55.41 kB / 1.212 GB, free: 4.758 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001048/0.3027, allocations: 136.1 kB / 1.212 GB, free: 4.617 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.629e-05/0.3027, allocations: 33.7 kB / 1.212 GB, free: 4.578 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 5.355e-05/0.3028, allocations: 96.12 kB / 1.213 GB, free: 4.48 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.958e-05/0.3028, allocations: 31.64 kB / 1.213 GB, free: 4.449 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.268e-05/0.3029, allocations: 33.7 kB / 1.213 GB, free: 4.41 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001229/0.303, allocations: 326.8 kB / 1.213 GB, free: 4.082 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.066e-05/0.3031, allocations: 31.97 kB / 1.213 GB, free: 4.051 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.706e-05/0.3032, allocations: 67.39 kB / 1.213 GB, free: 3.969 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001781/0.3034, allocations: 105 kB / 1.213 GB, free: 3.848 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.3034, allocations: 0 / 1.213 GB, free: 3.848 MB / 0.9669 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002414/0.3036, allocations: 149.3 kB / 1.213 GB, free: 3.695 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.366e-05/0.3037, allocations: 5.562 kB / 1.213 GB, free: 3.691 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.3037, allocations: 4 kB / 1.213 GB, free: 3.688 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.301e-05/0.3037, allocations: 0 / 1.213 GB, free: 3.688 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001066/0.3038, allocations: 19.97 kB / 1.213 GB, free: 3.668 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.823e-06/0.3038, allocations: 4 kB / 1.213 GB, free: 3.664 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001015/0.3039, allocations: 15.94 kB / 1.213 GB, free: 3.648 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.354e-05/0.3039, allocations: 7.984 kB / 1.213 GB, free: 3.641 MB / 0.9669 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.157e-05/0.304, allocations: 129.8 kB / 1.213 GB, free: 3.504 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.336e-05/0.3041, allocations: 15.81 kB / 1.213 GB, free: 3.488 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003434/0.3044, allocations: 166.3 kB / 1.214 GB, free: 3.316 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.596e-06/0.3044, allocations: 4 kB / 1.214 GB, free: 3.312 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.888e-06/0.3044, allocations: 0 / 1.214 GB, free: 3.312 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.067e-06/0.3044, allocations: 0 / 1.214 GB, free: 3.312 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005669/0.305, allocations: 470.3 kB / 1.214 GB, free: 2.797 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.305, allocations: 0 / 1.214 GB, free: 2.797 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.132e-05/0.3051, allocations: 15.92 kB / 1.214 GB, free: 2.781 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.894e-06/0.3051, allocations: 0 / 1.214 GB, free: 2.781 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.231e-05/0.3051, allocations: 4 kB / 1.214 GB, free: 2.777 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.3051, allocations: 0 / 1.214 GB, free: 2.777 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.506e-06/0.3052, allocations: 7.922 kB / 1.214 GB, free: 2.77 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003132/0.3055, allocations: 252.8 kB / 1.214 GB, free: 2.508 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.368e-05/0.3055, allocations: 85.02 kB / 1.214 GB, free: 2.406 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.105e-05/0.3055, allocations: 0 / 1.214 GB, free: 2.406 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001209/0.3057, allocations: 11.98 kB / 1.214 GB, free: 2.395 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.486e-05/0.3057, allocations: 19.86 kB / 1.214 GB, free: 2.375 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.694e-05/0.3058, allocations: 4 kB / 1.214 GB, free: 2.371 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 6.213e-05/0.3058, allocations: 109 kB / 1.215 GB, free: 2.266 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3058, allocations: 0 / 1.215 GB, free: 2.266 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0003054/0.3061, allocations: 44 kB / 1.215 GB, free: 2.223 MB / 0.9669 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.0003395/0.3065, allocations: 160.2 kB / 1.215 GB, free: 2.074 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0002729/0.3068, allocations: 99.88 kB / 1.215 GB, free: 1.977 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.3068, allocations: 0 / 1.215 GB, free: 1.977 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001191/0.3069, allocations: 64.11 kB / 1.215 GB, free: 1.914 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002924/0.3072, allocations: 19.92 kB / 1.215 GB, free: 1.895 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004347/0.3076, allocations: 236.7 kB / 1.215 GB, free: 1.637 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002206/0.3079, allocations: 0.7085 MB / 1.216 GB, free: 0.9023 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 4.531e-05/0.3079, allocations: 8.562 kB / 1.216 GB, free: 0.8945 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.152e-05/0.308, allocations: 19.42 kB / 1.216 GB, free: 0.875 MB / 0.9669 GB Notification: Performance of SimCode: time 2.2e-07/0.308, allocations: 0 / 1.216 GB, free: 0.875 MB / 0.9669 GB Notification: Performance of Templates: time 0.004445/0.3124, allocations: 2.062 MB / 1.218 GB, free: 14.82 MB / 0.9825 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