Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.001339/0.001339, allocations: 105 kB / 16.41 MB, free: 6.508 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.001374/0.001374, allocations: 192.2 kB / 17.34 MB, free: 5.742 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.307/1.307, 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 10.1.1-maint.10.0.x/package.mo): time 2.434/2.434, allocations: 437 MB / 0.7112 GB, free: 4.387 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001473/0.001473, allocations: 59.89 kB / 1.019 GB, free: 9.449 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7854/0.7869, allocations: 151.6 MB / 1.167 GB, free: 3.863 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light): time 0.002605/0.7896, allocations: 1.54 MB / 1.169 GB, free: 2.316 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001357/0.791, allocations: 0.7635 MB / 1.17 GB, free: 1.547 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.551e-05/0.791, allocations: 3.938 kB / 1.17 GB, free: 1.543 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 3.641e-05/0.7911, allocations: 11.86 kB / 1.17 GB, free: 1.531 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 9.179e-05/0.7912, allocations: 19.8 kB / 1.17 GB, free: 1.512 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005303/0.7917, allocations: 127.6 kB / 1.17 GB, free: 1.387 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0001526/0.7919, allocations: 99.69 kB / 1.17 GB, free: 1.289 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 8.737e-05/0.792, allocations: 23.92 kB / 1.17 GB, free: 1.266 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001041/0.7921, allocations: 43.84 kB / 1.17 GB, free: 1.223 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 8.739e-05/0.7922, allocations: 55.75 kB / 1.17 GB, free: 1.168 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 2.136e-05/0.7922, allocations: 8 kB / 1.17 GB, free: 1.16 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001871/0.7924, allocations: 91.91 kB / 1.17 GB, free: 1.07 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 2.782e-05/0.7925, allocations: 19.92 kB / 1.17 GB, free: 1.051 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 5.312e-05/0.7925, allocations: 47.72 kB / 1.17 GB, free: 1.004 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0002496/0.7928, allocations: 163.4 kB / 1.17 GB, free: 0.8477 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.7928, allocations: 4 kB / 1.17 GB, free: 0.8438 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.272e-06/0.7928, allocations: 0 / 1.17 GB, free: 0.8438 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 5.32e-06/0.7928, allocations: 0 / 1.17 GB, free: 0.8438 MB / 0.8887 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.0007843/0.7936, allocations: 0.498 MB / 1.171 GB, free: 288 kB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.525e-05/0.7936, allocations: 8.031 kB / 1.171 GB, free: 280 kB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.85e-05/0.7937, allocations: 12.84 kB / 1.171 GB, free: 268 kB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001531/0.7938, allocations: 188.1 kB / 1.171 GB, free: 40 kB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.422e-05/0.7939, allocations: 8.375 kB / 1.171 GB, free: 32 kB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.026e-05/0.7939, allocations: 8.312 kB / 1.171 GB, free: 24 kB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002173/0.7941, allocations: 85.89 kB / 1.171 GB, free: 15.93 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.819e-06/0.7941, allocations: 0 / 1.171 GB, free: 15.93 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.339e-05/0.7942, allocations: 7.938 kB / 1.171 GB, free: 15.93 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.398e-06/0.7942, allocations: 0 / 1.171 GB, free: 15.93 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001571/0.7943, allocations: 47.95 kB / 1.171 GB, free: 15.88 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005451/0.7949, allocations: 344.6 kB / 1.171 GB, free: 15.49 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002174/0.7951, allocations: 82.64 kB / 1.171 GB, free: 15.4 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.95e-05/0.7952, allocations: 40.84 kB / 1.171 GB, free: 15.36 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 1.619e-05/0.7952, allocations: 0 / 1.171 GB, free: 15.36 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001939/0.7954, allocations: 99.39 kB / 1.172 GB, free: 15.25 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=11): time 1.563e-06/0.7954, allocations: 0 / 1.172 GB, free: 15.25 MB / 0.9044 GB Notification: Performance of matching and sorting (n=11): time 0.0004209/0.7959, allocations: 177.5 kB / 1.172 GB, free: 15.07 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.556e-05/0.7959, allocations: 55.41 kB / 1.172 GB, free: 15 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001106/0.796, allocations: 140.3 kB / 1.172 GB, free: 14.86 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 1.899e-05/0.7961, allocations: 29.7 kB / 1.172 GB, free: 14.82 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 5.564e-05/0.7961, allocations: 96.12 kB / 1.172 GB, free: 14.73 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 2.911e-05/0.7962, allocations: 31.64 kB / 1.172 GB, free: 14.7 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.447e-05/0.7962, allocations: 37.7 kB / 1.172 GB, free: 14.65 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001061/0.7963, allocations: 326.8 kB / 1.172 GB, free: 14.32 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.959e-05/0.7964, allocations: 31.97 kB / 1.172 GB, free: 14.29 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.363e-05/0.7965, allocations: 65.08 kB / 1.173 GB, free: 14.21 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001721/0.7967, allocations: 105.1 kB / 1.173 GB, free: 14.09 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.569e-06/0.7967, allocations: 4 kB / 1.173 GB, free: 14.09 MB / 0.9044 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002514/0.797, allocations: 137.3 kB / 1.173 GB, free: 13.95 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.355e-05/0.797, allocations: 8.094 kB / 1.173 GB, free: 13.94 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.002e-06/0.797, allocations: 4 kB / 1.173 GB, free: 13.93 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.403e-05/0.797, allocations: 0 / 1.173 GB, free: 13.93 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001185/0.7972, allocations: 27.91 kB / 1.173 GB, free: 13.91 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.584e-06/0.7972, allocations: 4 kB / 1.173 GB, free: 13.9 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001032/0.7973, allocations: 12 kB / 1.173 GB, free: 13.89 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.468e-05/0.7973, allocations: 7.984 kB / 1.173 GB, free: 13.88 MB / 0.9044 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.0001005/0.7974, allocations: 124.4 kB / 1.173 GB, free: 13.75 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.414e-05/0.7974, allocations: 19.91 kB / 1.173 GB, free: 13.73 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003529/0.7978, allocations: 162.3 kB / 1.173 GB, free: 13.57 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.438e-06/0.7978, allocations: 4 kB / 1.173 GB, free: 13.57 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.7978, allocations: 144 / 1.173 GB, free: 13.57 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.591e-06/0.7978, allocations: 3.984 kB / 1.173 GB, free: 13.56 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006299/0.7985, allocations: 463.8 kB / 1.174 GB, free: 13.05 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.7985, allocations: 0 / 1.174 GB, free: 13.05 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.488e-05/0.7986, allocations: 15.98 kB / 1.174 GB, free: 13.04 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.763e-06/0.7986, allocations: 4 kB / 1.174 GB, free: 13.04 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.201e-05/0.7986, allocations: 7.875 kB / 1.174 GB, free: 13.03 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.248e-06/0.7986, allocations: 3.984 kB / 1.174 GB, free: 13.02 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.7986, allocations: 3.938 kB / 1.174 GB, free: 13.02 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003286/0.799, allocations: 259.1 kB / 1.174 GB, free: 12.75 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 5.123e-05/0.799, allocations: 88.95 kB / 1.174 GB, free: 12.64 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.162e-05/0.7991, allocations: 4 kB / 1.174 GB, free: 12.64 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001299/0.7992, allocations: 15.98 kB / 1.174 GB, free: 12.62 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.473e-05/0.7992, allocations: 11.92 kB / 1.174 GB, free: 12.61 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.59e-05/0.7993, allocations: 4 kB / 1.174 GB, free: 12.61 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 6.671e-05/0.7993, allocations: 107.2 kB / 1.174 GB, free: 12.5 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7993, allocations: 0 / 1.174 GB, free: 12.5 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0003207/0.7997, allocations: 44 kB / 1.174 GB, free: 12.46 MB / 0.9044 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.0003229/0.8, allocations: 163.1 kB / 1.174 GB, free: 12.31 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.000258/0.8003, allocations: 101.7 kB / 1.174 GB, free: 12.21 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.053e-06/0.8003, allocations: 0 / 1.174 GB, free: 12.21 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0001324/0.8004, allocations: 51.98 kB / 1.174 GB, free: 12.16 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003105/0.8007, allocations: 30.52 kB / 1.174 GB, free: 12.13 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004911/0.8012, allocations: 269.3 kB / 1.175 GB, free: 11.84 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002562/0.8015, allocations: 0.7002 MB / 1.175 GB, free: 11.11 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.397e-05/0.8016, allocations: 15.44 kB / 1.175 GB, free: 11.09 MB / 0.9044 GB Notification: Performance of SimCode: time 2.3e-07/0.8016, allocations: 0 / 1.175 GB, free: 11.09 MB / 0.9044 GB Notification: Performance of Templates: time 0.003882/0.8054, allocations: 2.003 MB / 1.177 GB, free: 9.094 MB / 0.9044 GB make -j1 -f Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.makefile (rm -f Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe ; mkfifo Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe ; head -c 1048576 < Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe >> ../files/Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.sim & ./Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches