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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.008237/0.008237, allocations: 101.8 kB / 15.88 MB, free: 5.863 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.00245/0.00245, allocations: 195.9 kB / 16.79 MB, free: 5.805 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.382/1.382, allocations: 222.9 MB / 240.5 MB, free: 4.445 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.346/2.346, allocations: 390.2 MB / 0.6649 GB, free: 0.5547 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.002013/0.002013, allocations: 63.91 kB / 0.8125 GB, free: 14.87 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5603/0.5624, allocations: 140.3 MB / 0.9496 GB, free: 9.113 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light): time 0.002197/0.5646, allocations: 1.591 MB / 0.9511 GB, free: 7.863 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001016/0.5657, allocations: 0.7788 MB / 0.9519 GB, free: 7.262 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.658e-05/0.5657, allocations: 1.344 kB / 0.9519 GB, free: 7.262 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.309e-05/0.5657, allocations: 7.922 kB / 0.9519 GB, free: 7.254 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.764e-05/0.5658, allocations: 13.45 kB / 0.9519 GB, free: 7.242 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.00039/0.5662, allocations: 119.5 kB / 0.952 GB, free: 7.156 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 9.543e-05/0.5663, allocations: 94.55 kB / 0.9521 GB, free: 7.102 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 7.732e-05/0.5664, allocations: 15.02 kB / 0.9521 GB, free: 7.094 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.939e-05/0.5665, allocations: 37.48 kB / 0.9522 GB, free: 7.074 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.757e-05/0.5666, allocations: 49.56 kB / 0.9522 GB, free: 7.039 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.905e-05/0.5666, allocations: 5 kB / 0.9522 GB, free: 7.039 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001527/0.5668, allocations: 93.53 kB / 0.9523 GB, free: 6.988 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.346e-05/0.5668, allocations: 20.52 kB / 0.9523 GB, free: 6.973 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.635e-05/0.5668, allocations: 40.05 kB / 0.9524 GB, free: 6.945 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001565/0.567, allocations: 111.6 kB / 0.9525 GB, free: 6.875 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.567, allocations: 0 / 0.9525 GB, free: 6.875 MB / 0.7169 GB Notification: Performance of FrontEnd: time 7.21e-07/0.567, allocations: 3.938 kB / 0.9525 GB, free: 6.871 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.747e-06/0.567, allocations: 1.594 kB / 0.9525 GB, free: 6.871 MB / 0.7169 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.0006242/0.5677, allocations: 0.4993 MB / 0.953 GB, free: 6.352 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.269e-05/0.5677, allocations: 12.66 kB / 0.953 GB, free: 6.348 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.259e-05/0.5677, allocations: 9.531 kB / 0.953 GB, free: 6.344 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.181e-05/0.5678, allocations: 195.3 kB / 0.9532 GB, free: 6.121 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.539e-05/0.5679, allocations: 7.031 kB / 0.9532 GB, free: 6.117 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.736e-05/0.5679, allocations: 4.125 kB / 0.9532 GB, free: 6.117 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001739/0.5681, allocations: 84.66 kB / 0.9533 GB, free: 6.051 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.695e-06/0.5681, allocations: 0 / 0.9533 GB, free: 6.051 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.367e-05/0.5681, allocations: 4 kB / 0.9533 GB, free: 6.047 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.538e-06/0.5681, allocations: 2.25 kB / 0.9533 GB, free: 6.047 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001462/0.5682, allocations: 53.31 kB / 0.9533 GB, free: 6.02 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004424/0.5687, allocations: 326.7 kB / 0.9536 GB, free: 5.688 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001972/0.5689, allocations: 80.33 kB / 0.9537 GB, free: 5.633 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.521e-05/0.569, allocations: 46.22 kB / 0.9538 GB, free: 5.602 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.997e-05/0.569, allocations: 5.391 kB / 0.9538 GB, free: 5.598 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001912/0.5692, allocations: 98.27 kB / 0.9539 GB, free: 5.516 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=11): time 1.523e-06/0.5692, allocations: 0.9688 kB / 0.9539 GB, free: 5.516 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11): time 0.0003921/0.5696, allocations: 170.7 kB / 0.954 GB, free: 5.422 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.737e-05/0.5697, allocations: 61.84 kB / 0.9541 GB, free: 5.352 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.511e-05/0.5698, allocations: 153.7 kB / 0.9542 GB, free: 5.219 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.329e-05/0.5698, allocations: 31.14 kB / 0.9543 GB, free: 5.184 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.233e-05/0.5698, allocations: 99.58 kB / 0.9543 GB, free: 5.086 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.176e-05/0.5698, allocations: 28.06 kB / 0.9544 GB, free: 5.062 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.624e-05/0.5699, allocations: 31.02 kB / 0.9544 GB, free: 5.035 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.326e-05/0.5699, allocations: 330.3 kB / 0.9547 GB, free: 4.707 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.645e-05/0.57, allocations: 24.55 kB / 0.9547 GB, free: 4.699 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.485e-05/0.5701, allocations: 74.64 kB / 0.9548 GB, free: 4.629 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001524/0.5703, allocations: 107.4 kB / 0.9549 GB, free: 4.543 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.424e-06/0.5703, allocations: 4 kB / 0.9549 GB, free: 4.539 MB / 0.7169 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002265/0.5705, allocations: 135.8 kB / 0.9551 GB, free: 4.457 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.168e-05/0.5705, allocations: 5.094 kB / 0.9551 GB, free: 4.457 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.889e-06/0.5705, allocations: 1.562 kB / 0.9551 GB, free: 4.457 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.402e-05/0.5706, allocations: 6.594 kB / 0.9551 GB, free: 4.453 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001093/0.5707, allocations: 19.83 kB / 0.9551 GB, free: 4.445 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.552e-06/0.5707, allocations: 2.875 kB / 0.9551 GB, free: 4.445 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001015/0.5708, allocations: 14.7 kB / 0.9551 GB, free: 4.438 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.38e-05/0.5708, allocations: 12.69 kB / 0.9551 GB, free: 4.43 MB / 0.7169 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 7.618e-05/0.5709, allocations: 133.1 kB / 0.9552 GB, free: 4.297 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.247e-05/0.5709, allocations: 8.688 kB / 0.9552 GB, free: 4.293 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000329/0.5713, allocations: 164.8 kB / 0.9554 GB, free: 4.195 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.537e-06/0.5713, allocations: 2.781 kB / 0.9554 GB, free: 4.195 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.5713, allocations: 0 / 0.9554 GB, free: 4.195 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.5713, allocations: 0 / 0.9554 GB, free: 4.195 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005012/0.5718, allocations: 469.7 kB / 0.9559 GB, free: 3.777 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.5718, allocations: 0 / 0.9559 GB, free: 3.777 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.322e-05/0.5719, allocations: 14.27 kB / 0.9559 GB, free: 3.773 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.685e-06/0.5719, allocations: 1.188 kB / 0.9559 GB, free: 3.773 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.317e-05/0.5719, allocations: 1.406 kB / 0.9559 GB, free: 3.773 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.846e-06/0.5719, allocations: 5.219 kB / 0.9559 GB, free: 3.77 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.5719, allocations: 3.938 kB / 0.9559 GB, free: 3.766 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000276/0.5722, allocations: 250.5 kB / 0.9561 GB, free: 3.578 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.328e-05/0.5722, allocations: 91.66 kB / 0.9562 GB, free: 3.473 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.752e-05/0.5723, allocations: 5.562 kB / 0.9562 GB, free: 3.469 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001246/0.5724, allocations: 9.672 kB / 0.9562 GB, free: 3.465 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.241e-05/0.5725, allocations: 17.64 kB / 0.9562 GB, free: 3.453 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.686e-05/0.5725, allocations: 4.281 kB / 0.9562 GB, free: 3.453 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.858e-05/0.5725, allocations: 112.8 kB / 0.9563 GB, free: 3.359 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.4e-07/0.5725, allocations: 0 / 0.9563 GB, free: 3.359 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003071/0.5729, allocations: 41 kB / 0.9564 GB, free: 3.352 MB / 0.7169 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.000281/0.5731, allocations: 172.7 kB / 0.9566 GB, free: 3.223 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002427/0.5734, allocations: 95.2 kB / 0.9566 GB, free: 3.184 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.5734, allocations: 0 / 0.9566 GB, free: 3.184 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001203/0.5735, allocations: 58.97 kB / 0.9567 GB, free: 3.16 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002991/0.5738, allocations: 20.55 kB / 0.9567 GB, free: 3.148 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004213/0.5743, allocations: 280 kB / 0.957 GB, free: 2.91 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001029/0.5744, allocations: 0.7009 MB / 0.9577 GB, free: 2.203 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.276e-05/0.5744, allocations: 13.59 kB / 0.9577 GB, free: 2.195 MB / 0.7169 GB Notification: Performance of SimCode: time 2.5e-07/0.5744, allocations: 4 kB / 0.9577 GB, free: 2.191 MB / 0.7169 GB Notification: Performance of Templates: time 0.003276/0.5777, allocations: 1.992 MB / 0.9596 GB, free: 1.164 MB / 0.7169 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