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.00116/0.00116, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.00888/0.00888, allocations: 171.2 kB / 16.27 MB, free: 6.652 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.351/1.351, allocations: 223.3 MB / 240.3 MB, free: 5.348 MB / 190.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.376/2.376, allocations: 390.9 MB / 0.6663 GB, free: 2.383 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003329/0.0003329, allocations: 8 kB / 0.816 GB, free: 13.27 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6512/0.6516, allocations: 142.4 MB / 0.955 GB, free: 7.777 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light): time 0.001613/0.6532, allocations: 1.258 MB / 0.9563 GB, free: 6.781 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001272/0.6545, allocations: 0.7471 MB / 0.957 GB, free: 6.207 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.425e-05/0.6546, allocations: 0.9375 kB / 0.957 GB, free: 6.207 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.201e-05/0.6546, allocations: 3.938 kB / 0.957 GB, free: 6.203 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001143/0.6547, allocations: 26.77 kB / 0.957 GB, free: 6.18 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004634/0.6552, allocations: 106.3 kB / 0.9571 GB, free: 6.105 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001187/0.6553, allocations: 91.12 kB / 0.9572 GB, free: 6.055 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.75e-05/0.6554, allocations: 18.88 kB / 0.9572 GB, free: 6.043 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 9.476e-05/0.6555, allocations: 40.58 kB / 0.9573 GB, free: 6.02 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.367e-05/0.6556, allocations: 45.66 kB / 0.9573 GB, free: 5.988 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.03e-05/0.6557, allocations: 8 kB / 0.9573 GB, free: 5.984 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001776/0.6558, allocations: 98.72 kB / 0.9574 GB, free: 5.93 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.737e-05/0.6559, allocations: 16.33 kB / 0.9574 GB, free: 5.918 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.724e-05/0.656, allocations: 67.81 kB / 0.9575 GB, free: 5.855 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001996/0.6562, allocations: 154.3 kB / 0.9576 GB, free: 5.758 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.346e-06/0.6562, allocations: 0 / 0.9576 GB, free: 5.758 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.623e-06/0.6562, allocations: 0 / 0.9576 GB, free: 5.758 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.138e-06/0.6562, allocations: 0 / 0.9576 GB, free: 5.758 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.0006445/0.6568, allocations: 498.7 kB / 0.9581 GB, free: 5.25 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.658e-05/0.6569, allocations: 9.031 kB / 0.9581 GB, free: 5.25 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.925e-05/0.6569, allocations: 10.31 kB / 0.9581 GB, free: 5.246 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001162/0.657, allocations: 204 kB / 0.9583 GB, free: 5.016 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.408e-05/0.6571, allocations: 2.344 kB / 0.9583 GB, free: 5.016 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.023e-05/0.6571, allocations: 4.906 kB / 0.9583 GB, free: 5.016 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002052/0.6573, allocations: 90.05 kB / 0.9584 GB, free: 4.945 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.075e-05/0.6573, allocations: 0 / 0.9584 GB, free: 4.945 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.534e-05/0.6574, allocations: 0.7812 kB / 0.9584 GB, free: 4.945 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.792e-06/0.6574, allocations: 1.031 kB / 0.9584 GB, free: 4.945 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001562/0.6575, allocations: 53.92 kB / 0.9585 GB, free: 4.922 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004745/0.658, allocations: 344.7 kB / 0.9588 GB, free: 4.574 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002049/0.6582, allocations: 83.47 kB / 0.9589 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.035e-05/0.6583, allocations: 36.19 kB / 0.9589 GB, free: 4.5 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.296e-05/0.6584, allocations: 6.188 kB / 0.9589 GB, free: 4.496 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002158/0.6586, allocations: 107.4 kB / 0.959 GB, free: 4.406 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=11): time 1.463e-06/0.6586, allocations: 0 / 0.959 GB, free: 4.406 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11): time 0.0004179/0.659, allocations: 181.7 kB / 0.9592 GB, free: 4.309 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.978e-05/0.6591, allocations: 53.34 kB / 0.9592 GB, free: 4.246 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.869e-05/0.6592, allocations: 144.5 kB / 0.9594 GB, free: 4.121 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.444e-05/0.6592, allocations: 31.7 kB / 0.9594 GB, free: 4.086 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.458e-05/0.6592, allocations: 99.62 kB / 0.9595 GB, free: 3.988 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.455e-05/0.6592, allocations: 26.92 kB / 0.9595 GB, free: 3.965 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.152e-05/0.6593, allocations: 30.95 kB / 0.9596 GB, free: 3.934 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.586e-05/0.6593, allocations: 329 kB / 0.9599 GB, free: 3.605 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.177e-05/0.6594, allocations: 29.61 kB / 0.9599 GB, free: 3.594 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.741e-05/0.6595, allocations: 71.69 kB / 0.96 GB, free: 3.527 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001646/0.6597, allocations: 111.7 kB / 0.9601 GB, free: 3.441 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.6597, allocations: 0 / 0.9601 GB, free: 3.441 MB / 0.7169 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002453/0.6599, allocations: 147.3 kB / 0.9602 GB, free: 3.352 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.361e-05/0.66, allocations: 6.594 kB / 0.9602 GB, free: 3.352 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/0.66, allocations: 1.375 kB / 0.9602 GB, free: 3.352 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.509e-05/0.66, allocations: 6.75 kB / 0.9602 GB, free: 3.348 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001096/0.6601, allocations: 24.39 kB / 0.9603 GB, free: 3.336 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.454e-06/0.6601, allocations: 2.75 kB / 0.9603 GB, free: 3.336 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000106/0.6602, allocations: 17.52 kB / 0.9603 GB, free: 3.328 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.351e-05/0.6603, allocations: 8.125 kB / 0.9603 GB, free: 3.324 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 8.103e-05/0.6604, allocations: 128.5 kB / 0.9604 GB, free: 3.195 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.96e-05/0.6604, allocations: 13.39 kB / 0.9604 GB, free: 3.188 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003498/0.6607, allocations: 175.8 kB / 0.9606 GB, free: 3.086 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.906e-06/0.6607, allocations: 1.375 kB / 0.9606 GB, free: 3.086 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.6608, allocations: 3.984 kB / 0.9606 GB, free: 3.082 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.848e-06/0.6608, allocations: 0 / 0.9606 GB, free: 3.082 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000545/0.6613, allocations: 473.5 kB / 0.961 GB, free: 2.668 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.844e-06/0.6613, allocations: 0 / 0.961 GB, free: 2.668 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.418e-05/0.6614, allocations: 16.36 kB / 0.9611 GB, free: 2.664 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.004e-06/0.6614, allocations: 0 / 0.9611 GB, free: 2.664 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.279e-05/0.6614, allocations: 1.375 kB / 0.9611 GB, free: 2.664 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.502e-06/0.6615, allocations: 1.375 kB / 0.9611 GB, free: 2.664 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.404e-06/0.6615, allocations: 3.938 kB / 0.9611 GB, free: 2.66 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002986/0.6618, allocations: 258.6 kB / 0.9613 GB, free: 2.465 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.936e-05/0.6618, allocations: 92.55 kB / 0.9614 GB, free: 2.359 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.555e-05/0.6618, allocations: 5.016 kB / 0.9614 GB, free: 2.355 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001293/0.662, allocations: 7.781 kB / 0.9614 GB, free: 2.355 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.566e-05/0.662, allocations: 21.75 kB / 0.9614 GB, free: 2.34 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.787e-05/0.662, allocations: 4.094 kB / 0.9614 GB, free: 2.34 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 5.478e-05/0.6621, allocations: 109.7 kB / 0.9615 GB, free: 2.25 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.4e-07/0.6621, allocations: 3.938 kB / 0.9616 GB, free: 2.246 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003244/0.6624, allocations: 45.05 kB / 0.9616 GB, free: 2.234 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.0003305/0.6628, allocations: 162.9 kB / 0.9617 GB, free: 2.117 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002752/0.6631, allocations: 103.3 kB / 0.9618 GB, free: 2.074 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.6631, allocations: 0 / 0.9618 GB, free: 2.074 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001293/0.6632, allocations: 57.66 kB / 0.9619 GB, free: 2.055 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003251/0.6635, allocations: 21.92 kB / 0.9619 GB, free: 2.043 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000484/0.664, allocations: 270.5 kB / 0.9622 GB, free: 1.824 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001271/0.6642, allocations: 0.7045 MB / 0.9629 GB, free: 1.113 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 5.285e-05/0.6642, allocations: 11.17 kB / 0.9629 GB, free: 1.105 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.868e-05/0.6643, allocations: 13.84 kB / 0.9629 GB, free: 1.098 MB / 0.7169 GB Notification: Performance of SimCode: time 2.5e-07/0.6643, allocations: 0 / 0.9629 GB, free: 1.098 MB / 0.7169 GB Notification: Performance of Templates: time 0.004698/0.669, allocations: 1.848 MB / 0.9647 GB, free: 160 kB / 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/jenkins/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