Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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_9_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_9_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.001604/0.001604, allocations: 106 kB / 15.99 MB, free: 6.355 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.001862/0.001862, allocations: 196.5 kB / 16.91 MB, free: 6.188 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.35/1.35, allocations: 222.9 MB / 240.6 MB, free: 15.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.248/2.248, allocations: 390.3 MB / 0.665 GB, free: 0.9492 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001565/0.001565, allocations: 70.27 kB / 0.8127 GB, free: 33.3 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2725/0.274, allocations: 140.4 MB / 0.9498 GB, free: 9.277 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light): time 0.00284/0.2769, allocations: 1.605 MB / 0.9513 GB, free: 7.66 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001322/0.2783, allocations: 0.7634 MB / 0.9521 GB, free: 6.891 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.559e-05/0.2783, allocations: 4 kB / 0.9521 GB, free: 6.887 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 3.511e-05/0.2784, allocations: 3.938 kB / 0.9521 GB, free: 6.883 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 9.128e-05/0.2785, allocations: 7.875 kB / 0.9521 GB, free: 6.875 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005463/0.2791, allocations: 115.8 kB / 0.9522 GB, free: 6.762 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001461/0.2792, allocations: 103.6 kB / 0.9523 GB, free: 6.66 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 8.955e-05/0.2793, allocations: 19.98 kB / 0.9523 GB, free: 6.641 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001067/0.2794, allocations: 43.91 kB / 0.9524 GB, free: 6.598 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 8.171e-05/0.2795, allocations: 51.75 kB / 0.9524 GB, free: 6.547 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.924e-05/0.2795, allocations: 8 kB / 0.9524 GB, free: 6.539 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001887/0.2797, allocations: 95.84 kB / 0.9525 GB, free: 6.445 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 2.879e-05/0.2798, allocations: 19.92 kB / 0.9525 GB, free: 6.426 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 5.663e-05/0.2798, allocations: 43.78 kB / 0.9526 GB, free: 6.383 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001857/0.28, allocations: 116 kB / 0.9527 GB, free: 6.27 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.416e-06/0.28, allocations: 0 / 0.9527 GB, free: 6.27 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.112e-06/0.28, allocations: 0 / 0.9527 GB, free: 6.27 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 4.628e-06/0.2801, allocations: 4 kB / 0.9527 GB, free: 6.266 MB / 0.7325 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.0007828/0.2808, allocations: 0.504 MB / 0.9532 GB, free: 5.695 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.632e-05/0.2809, allocations: 8.031 kB / 0.9532 GB, free: 5.688 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.991e-05/0.2809, allocations: 8.844 kB / 0.9532 GB, free: 5.68 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001511/0.2811, allocations: 196 kB / 0.9534 GB, free: 5.449 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.383e-05/0.2811, allocations: 4.375 kB / 0.9534 GB, free: 5.445 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.232e-05/0.2811, allocations: 8.375 kB / 0.9534 GB, free: 5.438 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002059/0.2814, allocations: 85.89 kB / 0.9535 GB, free: 5.348 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.195e-06/0.2814, allocations: 0 / 0.9535 GB, free: 5.348 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.685e-05/0.2814, allocations: 4 kB / 0.9535 GB, free: 5.344 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.228e-06/0.2814, allocations: 0 / 0.9535 GB, free: 5.344 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001472/0.2816, allocations: 51.89 kB / 0.9535 GB, free: 5.293 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005466/0.2821, allocations: 332.7 kB / 0.9539 GB, free: 4.918 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002227/0.2823, allocations: 82.75 kB / 0.9539 GB, free: 4.828 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001084/0.2825, allocations: 44.78 kB / 0.954 GB, free: 4.781 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.629e-05/0.2825, allocations: 3.984 kB / 0.954 GB, free: 4.777 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002986/0.2828, allocations: 95.34 kB / 0.9541 GB, free: 4.672 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=11): time 2.004e-06/0.2828, allocations: 4 kB / 0.9541 GB, free: 4.668 MB / 0.7325 GB Notification: Performance of matching and sorting (n=11): time 0.0004958/0.2833, allocations: 173.5 kB / 0.9542 GB, free: 4.492 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.243e-05/0.2834, allocations: 59.34 kB / 0.9543 GB, free: 4.422 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001424/0.2835, allocations: 143.8 kB / 0.9544 GB, free: 4.273 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.384e-05/0.2836, allocations: 29.7 kB / 0.9545 GB, free: 4.238 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 6.666e-05/0.2836, allocations: 96.03 kB / 0.9546 GB, free: 4.141 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 3.231e-05/0.2837, allocations: 27.66 kB / 0.9546 GB, free: 4.113 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.963e-05/0.2838, allocations: 41.69 kB / 0.9546 GB, free: 4.066 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001309/0.2839, allocations: 326.8 kB / 0.9549 GB, free: 3.738 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.452e-05/0.284, allocations: 27.98 kB / 0.955 GB, free: 3.711 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001141/0.2841, allocations: 69.12 kB / 0.955 GB, free: 3.625 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001901/0.2843, allocations: 101.1 kB / 0.9551 GB, free: 3.508 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.422e-06/0.2843, allocations: 4 kB / 0.9551 GB, free: 3.504 MB / 0.7325 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002928/0.2846, allocations: 133.4 kB / 0.9553 GB, free: 3.367 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.375e-05/0.2846, allocations: 7.984 kB / 0.9553 GB, free: 3.359 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.045e-06/0.2847, allocations: 4.094 kB / 0.9553 GB, free: 3.355 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.431e-05/0.2847, allocations: 4 kB / 0.9553 GB, free: 3.352 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001266/0.2848, allocations: 23.92 kB / 0.9553 GB, free: 3.328 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.297e-06/0.2848, allocations: 4 kB / 0.9553 GB, free: 3.324 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001164/0.285, allocations: 23.83 kB / 0.9553 GB, free: 3.301 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.67e-05/0.285, allocations: 7.938 kB / 0.9553 GB, free: 3.293 MB / 0.7325 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.0001296/0.2851, allocations: 127.7 kB / 0.9554 GB, free: 3.16 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.355e-05/0.2851, allocations: 11.91 kB / 0.9555 GB, free: 3.148 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003928/0.2855, allocations: 162.3 kB / 0.9556 GB, free: 2.984 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.452e-06/0.2856, allocations: 4 kB / 0.9556 GB, free: 2.98 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/0.2856, allocations: 0 / 0.9556 GB, free: 2.98 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.917e-06/0.2856, allocations: 0 / 0.9556 GB, free: 2.98 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006872/0.2863, allocations: 470.2 kB / 0.9561 GB, free: 2.465 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.344e-06/0.2863, allocations: 3.984 kB / 0.9561 GB, free: 2.461 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.895e-05/0.2864, allocations: 12 kB / 0.9561 GB, free: 2.449 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.881e-06/0.2864, allocations: 4 kB / 0.9561 GB, free: 2.445 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.687e-05/0.2864, allocations: 11.92 kB / 0.9561 GB, free: 2.434 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.803e-06/0.2864, allocations: 0 / 0.9561 GB, free: 2.434 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.731e-06/0.2864, allocations: 7.922 kB / 0.9561 GB, free: 2.426 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003241/0.2868, allocations: 243.5 kB / 0.9563 GB, free: 2.172 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 5.174e-05/0.2868, allocations: 92.91 kB / 0.9564 GB, free: 2.062 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.642e-05/0.2869, allocations: 4 kB / 0.9564 GB, free: 2.059 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001284/0.287, allocations: 15.98 kB / 0.9564 GB, free: 2.043 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.009e-05/0.287, allocations: 11.92 kB / 0.9565 GB, free: 2.031 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.791e-05/0.2871, allocations: 4 kB / 0.9565 GB, free: 2.027 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 7.747e-05/0.2871, allocations: 109.1 kB / 0.9566 GB, free: 1.922 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.11e-07/0.2872, allocations: 0 / 0.9566 GB, free: 1.922 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003158/0.2875, allocations: 44 kB / 0.9566 GB, free: 1.879 MB / 0.7325 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.0003488/0.2878, allocations: 173.3 kB / 0.9568 GB, free: 1.715 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0002609/0.2881, allocations: 95.89 kB / 0.9569 GB, free: 1.621 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/0.2881, allocations: 0 / 0.9569 GB, free: 1.621 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001232/0.2882, allocations: 59.84 kB / 0.9569 GB, free: 1.562 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003114/0.2886, allocations: 28.12 kB / 0.9569 GB, free: 1.535 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005012/0.2891, allocations: 277.6 kB / 0.9572 GB, free: 1.23 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002759/0.2894, allocations: 0.7078 MB / 0.9579 GB, free: 0.4961 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.631e-05/0.2894, allocations: 15.44 kB / 0.9579 GB, free: 492 kB / 0.7325 GB Notification: Performance of SimCode: time 2.5e-07/0.2894, allocations: 0 / 0.9579 GB, free: 492 kB / 0.7325 GB Notification: Performance of Templates: time 0.003964/0.2934, allocations: 2.003 MB / 0.9599 GB, free: 14.48 MB / 0.7481 GB make -j1 -f Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.makefile (rm -f Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.sim & ./Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches