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.001115/0.001115, allocations: 108.9 kB / 16.37 MB, free: 6.016 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.001064/0.001064, allocations: 197.2 kB / 17.31 MB, free: 5.613 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.32/1.32, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.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.241/2.241, allocations: 390.3 MB / 0.6655 GB, free: 0.5781 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001218/0.001218, allocations: 65.33 kB / 0.814 GB, free: 32.73 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2549/0.2561, allocations: 140.4 MB / 0.9511 GB, free: 8.066 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light): time 0.003451/0.2596, allocations: 1.546 MB / 0.9526 GB, free: 6.52 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001503/0.2612, allocations: 0.7789 MB / 0.9534 GB, free: 5.734 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.049e-05/0.2613, allocations: 4 kB / 0.9534 GB, free: 5.73 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 3.521e-05/0.2613, allocations: 3.938 kB / 0.9534 GB, free: 5.727 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 8.772e-05/0.2614, allocations: 15.8 kB / 0.9534 GB, free: 5.711 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005793/0.262, allocations: 135.5 kB / 0.9535 GB, free: 5.578 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001524/0.2622, allocations: 99.69 kB / 0.9536 GB, free: 5.48 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001161/0.2623, allocations: 19.98 kB / 0.9537 GB, free: 5.461 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001395/0.2624, allocations: 39.8 kB / 0.9537 GB, free: 5.422 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001354/0.2626, allocations: 51.81 kB / 0.9537 GB, free: 5.371 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 2.866e-05/0.2626, allocations: 8 kB / 0.9538 GB, free: 5.363 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002722/0.2629, allocations: 99.78 kB / 0.9539 GB, free: 5.266 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 4.346e-05/0.263, allocations: 27.91 kB / 0.9539 GB, free: 5.238 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 6.956e-05/0.263, allocations: 39.78 kB / 0.9539 GB, free: 5.199 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0002984/0.2634, allocations: 171.5 kB / 0.9541 GB, free: 5.031 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.2634, allocations: 0 / 0.9541 GB, free: 5.031 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.843e-06/0.2634, allocations: 0 / 0.9541 GB, free: 5.031 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 7.354e-06/0.2634, allocations: 0 / 0.9541 GB, free: 5.031 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.0008084/0.2642, allocations: 0.4923 MB / 0.9546 GB, free: 4.473 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.453e-05/0.2643, allocations: 8.031 kB / 0.9546 GB, free: 4.465 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.272e-05/0.2643, allocations: 12.84 kB / 0.9546 GB, free: 4.453 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001452/0.2645, allocations: 193.9 kB / 0.9548 GB, free: 4.227 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.488e-05/0.2645, allocations: 12.38 kB / 0.9548 GB, free: 4.215 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.941e-05/0.2645, allocations: 4.375 kB / 0.9548 GB, free: 4.211 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001757/0.2647, allocations: 77.95 kB / 0.9549 GB, free: 4.129 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.933e-06/0.2647, allocations: 4 kB / 0.9549 GB, free: 4.125 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.403e-05/0.2647, allocations: 7.984 kB / 0.9549 GB, free: 4.117 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.14e-06/0.2647, allocations: 4 kB / 0.9549 GB, free: 4.113 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000139/0.2649, allocations: 47.91 kB / 0.9549 GB, free: 4.066 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004728/0.2654, allocations: 336.7 kB / 0.9552 GB, free: 3.688 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001929/0.2656, allocations: 78.7 kB / 0.9553 GB, free: 3.602 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.761e-05/0.2657, allocations: 44.83 kB / 0.9554 GB, free: 3.555 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.743e-05/0.2657, allocations: 0 / 0.9554 GB, free: 3.555 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00022/0.2659, allocations: 107.3 kB / 0.9555 GB, free: 3.438 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=11): time 1.412e-06/0.2659, allocations: 0 / 0.9555 GB, free: 3.438 MB / 0.7325 GB Notification: Performance of matching and sorting (n=11): time 0.0003869/0.2663, allocations: 169.5 kB / 0.9556 GB, free: 3.266 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.554e-05/0.2664, allocations: 63.34 kB / 0.9557 GB, free: 3.191 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001044/0.2665, allocations: 137.8 kB / 0.9558 GB, free: 3.047 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.81e-05/0.2665, allocations: 33.7 kB / 0.9558 GB, free: 3.008 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 4.662e-05/0.2665, allocations: 96.03 kB / 0.9559 GB, free: 2.91 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.652e-05/0.2666, allocations: 31.64 kB / 0.956 GB, free: 2.879 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.679e-05/0.2666, allocations: 37.7 kB / 0.956 GB, free: 2.836 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 9.824e-05/0.2667, allocations: 326.8 kB / 0.9563 GB, free: 2.508 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.445e-05/0.2668, allocations: 27.98 kB / 0.9563 GB, free: 2.48 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001097/0.2669, allocations: 69.12 kB / 0.9564 GB, free: 2.395 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001729/0.2671, allocations: 105.1 kB / 0.9565 GB, free: 2.273 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/0.2671, allocations: 7.938 kB / 0.9565 GB, free: 2.266 MB / 0.7325 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002294/0.2674, allocations: 129.5 kB / 0.9566 GB, free: 2.133 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.153e-05/0.2674, allocations: 8 kB / 0.9566 GB, free: 2.125 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.027e-06/0.2674, allocations: 4 kB / 0.9566 GB, free: 2.121 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.079e-05/0.2674, allocations: 0 / 0.9566 GB, free: 2.121 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001054/0.2675, allocations: 23.92 kB / 0.9567 GB, free: 2.098 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.043e-06/0.2675, allocations: 4 kB / 0.9567 GB, free: 2.094 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001011/0.2677, allocations: 19.83 kB / 0.9567 GB, free: 2.074 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.201e-05/0.2677, allocations: 7.938 kB / 0.9567 GB, free: 2.066 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 9.052e-05/0.2678, allocations: 135.5 kB / 0.9568 GB, free: 1.926 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.092e-05/0.2678, allocations: 11.89 kB / 0.9568 GB, free: 1.914 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003373/0.2681, allocations: 162.3 kB / 0.957 GB, free: 1.746 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.228e-06/0.2682, allocations: 4 kB / 0.957 GB, free: 1.742 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/0.2682, allocations: 0 / 0.957 GB, free: 1.742 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.08e-06/0.2682, allocations: 4.125 kB / 0.957 GB, free: 1.738 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005661/0.2687, allocations: 462.2 kB / 0.9574 GB, free: 1.23 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.926e-06/0.2688, allocations: 7.984 kB / 0.9575 GB, free: 1.223 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.137e-05/0.2688, allocations: 15.98 kB / 0.9575 GB, free: 1.207 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.458e-06/0.2689, allocations: 4 kB / 0.9575 GB, free: 1.203 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.152e-05/0.2689, allocations: 0 / 0.9575 GB, free: 1.203 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.2689, allocations: 0 / 0.9575 GB, free: 1.203 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.017e-05/0.2689, allocations: 7.875 kB / 0.9575 GB, free: 1.195 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002976/0.2692, allocations: 243.4 kB / 0.9577 GB, free: 0.9414 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 4.274e-05/0.2692, allocations: 88.92 kB / 0.9578 GB, free: 0.8359 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.556e-05/0.2693, allocations: 11.98 kB / 0.9578 GB, free: 0.8242 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001191/0.2694, allocations: 12 kB / 0.9578 GB, free: 0.8125 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.322e-05/0.2695, allocations: 15.92 kB / 0.9578 GB, free: 0.7969 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.682e-05/0.2695, allocations: 7.984 kB / 0.9578 GB, free: 0.7891 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 6.921e-05/0.2695, allocations: 105.3 kB / 0.9579 GB, free: 0.6875 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.11e-07/0.2696, allocations: 0 / 0.9579 GB, free: 0.6875 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003011/0.2699, allocations: 43.98 kB / 0.958 GB, free: 0.6445 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.0002869/0.2702, allocations: 166.8 kB / 0.9581 GB, free: 496 kB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0002318/0.2704, allocations: 91.89 kB / 0.9582 GB, free: 404 kB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.427e-06/0.2704, allocations: 0 / 0.9582 GB, free: 404 kB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001145/0.2705, allocations: 59.84 kB / 0.9583 GB, free: 344 kB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002816/0.2708, allocations: 28.11 kB / 0.9583 GB, free: 316 kB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004293/0.2713, allocations: 223.9 kB / 0.9585 GB, free: 64 kB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002442/0.2715, allocations: 0.7039 MB / 0.9592 GB, free: 15.33 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 5.282e-05/0.2716, allocations: 16.55 kB / 0.9592 GB, free: 15.32 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.582e-05/0.2716, allocations: 11.44 kB / 0.9592 GB, free: 15.31 MB / 0.7481 GB Notification: Performance of SimCode: time 2.31e-07/0.2716, allocations: 0 / 0.9592 GB, free: 15.31 MB / 0.7481 GB Notification: Performance of Templates: time 0.004389/0.276, allocations: 2.004 MB / 0.9612 GB, free: 13.32 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 -s gbode -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