Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_latest_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_latest_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.001332/0.001332, allocations: 110 kB / 16.41 MB, free: 6.477 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.001297/0.001297, allocations: 185.5 kB / 17.34 MB, free: 5.754 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.371/1.371, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.649/2.649, allocations: 461.9 MB / 0.7355 GB, free: 11.09 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001417/0.001417, allocations: 59.89 kB / 1.055 GB, free: 7.719 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7082/0.7097, allocations: 157.4 MB / 1.208 GB, free: 13.61 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light): time 0.002965/0.7127, allocations: 1.545 MB / 1.21 GB, free: 12.05 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001475/0.7142, allocations: 0.7673 MB / 1.211 GB, free: 11.28 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.702e-05/0.7143, allocations: 0 / 1.211 GB, free: 11.28 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 4.08e-05/0.7143, allocations: 3.938 kB / 1.211 GB, free: 11.28 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0001217/0.7145, allocations: 23.8 kB / 1.211 GB, free: 11.25 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.000667/0.7152, allocations: 131.5 kB / 1.211 GB, free: 11.12 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001659/0.7154, allocations: 99.69 kB / 1.211 GB, free: 11.03 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001063/0.7155, allocations: 15.98 kB / 1.211 GB, free: 11.01 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001137/0.7156, allocations: 39.86 kB / 1.211 GB, free: 10.97 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 9.489e-05/0.7157, allocations: 51.75 kB / 1.211 GB, free: 10.92 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 2.37e-05/0.7157, allocations: 8 kB / 1.211 GB, free: 10.91 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002126/0.716, allocations: 99.84 kB / 1.211 GB, free: 10.82 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 3.232e-05/0.716, allocations: 23.91 kB / 1.211 GB, free: 10.79 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 5.27e-05/0.7161, allocations: 39.78 kB / 1.211 GB, free: 10.75 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0002767/0.7163, allocations: 175.3 kB / 1.211 GB, free: 10.59 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.7164, allocations: 0 / 1.211 GB, free: 10.59 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.452e-06/0.7164, allocations: 0 / 1.211 GB, free: 10.59 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 6.131e-06/0.7164, allocations: 0 / 1.211 GB, free: 10.59 MB / 0.9356 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.0008141/0.7172, allocations: 0.4942 MB / 1.212 GB, free: 10.03 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.625e-05/0.7172, allocations: 8.031 kB / 1.212 GB, free: 10.02 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.311e-05/0.7173, allocations: 12.83 kB / 1.212 GB, free: 10.01 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001402/0.7174, allocations: 193.6 kB / 1.212 GB, free: 9.781 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.602e-05/0.7175, allocations: 4.375 kB / 1.212 GB, free: 9.777 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.284e-05/0.7175, allocations: 8.375 kB / 1.212 GB, free: 9.77 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001955/0.7177, allocations: 77.95 kB / 1.212 GB, free: 9.688 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.829e-06/0.7177, allocations: 3.984 kB / 1.212 GB, free: 9.684 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.6e-05/0.7177, allocations: 4 kB / 1.212 GB, free: 9.68 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.268e-06/0.7177, allocations: 0 / 1.212 GB, free: 9.68 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001421/0.7179, allocations: 47.91 kB / 1.212 GB, free: 9.633 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005644/0.7185, allocations: 344.6 kB / 1.212 GB, free: 9.246 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002111/0.7187, allocations: 74.77 kB / 1.213 GB, free: 9.164 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.936e-05/0.7188, allocations: 44.78 kB / 1.213 GB, free: 9.117 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.313e-05/0.7188, allocations: 0 / 1.213 GB, free: 9.117 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002572/0.7191, allocations: 107.3 kB / 1.213 GB, free: 9 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=11): time 1.634e-06/0.7191, allocations: 0 / 1.213 GB, free: 9 MB / 0.9356 GB Notification: Performance of matching and sorting (n=11): time 0.0004261/0.7195, allocations: 169.8 kB / 1.213 GB, free: 8.828 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.902e-05/0.7196, allocations: 59.34 kB / 1.213 GB, free: 8.758 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001226/0.7197, allocations: 148.1 kB / 1.213 GB, free: 8.605 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.237e-05/0.7198, allocations: 25.7 kB / 1.213 GB, free: 8.574 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 6.134e-05/0.7198, allocations: 100.1 kB / 1.213 GB, free: 8.473 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 3.332e-05/0.7199, allocations: 31.62 kB / 1.213 GB, free: 8.441 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.575e-05/0.7199, allocations: 33.7 kB / 1.213 GB, free: 8.402 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001097/0.72, allocations: 326.8 kB / 1.214 GB, free: 8.074 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.311e-05/0.7201, allocations: 27.98 kB / 1.214 GB, free: 8.047 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001014/0.7202, allocations: 69.12 kB / 1.214 GB, free: 7.961 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001807/0.7204, allocations: 105 kB / 1.214 GB, free: 7.84 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.7204, allocations: 0 / 1.214 GB, free: 7.84 MB / 0.9356 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002747/0.7207, allocations: 145.4 kB / 1.214 GB, free: 7.691 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.766e-05/0.7207, allocations: 5.875 kB / 1.214 GB, free: 7.688 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.023e-06/0.7208, allocations: 4 kB / 1.214 GB, free: 7.684 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.378e-05/0.7208, allocations: 3.938 kB / 1.214 GB, free: 7.68 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001168/0.7209, allocations: 19.92 kB / 1.214 GB, free: 7.66 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.987e-06/0.7209, allocations: 4 kB / 1.214 GB, free: 7.656 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000109/0.721, allocations: 15.98 kB / 1.214 GB, free: 7.641 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.481e-05/0.721, allocations: 4 kB / 1.214 GB, free: 7.637 MB / 0.9356 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.0001128/0.7212, allocations: 137.7 kB / 1.214 GB, free: 7.492 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.487e-05/0.7212, allocations: 11.91 kB / 1.214 GB, free: 7.48 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003666/0.7216, allocations: 162.3 kB / 1.214 GB, free: 7.309 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.544e-06/0.7216, allocations: 7.984 kB / 1.214 GB, free: 7.301 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/0.7216, allocations: 0 / 1.214 GB, free: 7.301 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.299e-06/0.7216, allocations: 0 / 1.214 GB, free: 7.301 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006248/0.7222, allocations: 458.2 kB / 1.215 GB, free: 6.797 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.885e-06/0.7223, allocations: 8 kB / 1.215 GB, free: 6.789 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.392e-05/0.7223, allocations: 11.98 kB / 1.215 GB, free: 6.777 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.986e-06/0.7224, allocations: 0 / 1.215 GB, free: 6.777 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.576e-05/0.7224, allocations: 8 kB / 1.215 GB, free: 6.77 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.923e-06/0.7224, allocations: 0 / 1.215 GB, free: 6.77 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/0.7224, allocations: 3.938 kB / 1.215 GB, free: 6.766 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003345/0.7227, allocations: 251.2 kB / 1.215 GB, free: 6.504 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 5.075e-05/0.7228, allocations: 96.94 kB / 1.215 GB, free: 6.391 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.722e-05/0.7228, allocations: 0 / 1.215 GB, free: 6.391 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001245/0.723, allocations: 8.141 kB / 1.215 GB, free: 6.383 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.264e-05/0.723, allocations: 23.89 kB / 1.215 GB, free: 6.359 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.927e-05/0.723, allocations: 4 kB / 1.215 GB, free: 6.355 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 6.901e-05/0.7231, allocations: 107.3 kB / 1.215 GB, free: 6.25 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.51e-07/0.7231, allocations: 0 / 1.215 GB, free: 6.25 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003416/0.7235, allocations: 43.98 kB / 1.215 GB, free: 6.207 MB / 0.9356 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.000377/0.7239, allocations: 177.8 kB / 1.215 GB, free: 6.043 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0002687/0.7241, allocations: 91.89 kB / 1.215 GB, free: 5.953 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.7241, allocations: 0 / 1.215 GB, free: 5.953 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.000128/0.7243, allocations: 63.03 kB / 1.216 GB, free: 5.895 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003367/0.7246, allocations: 20.17 kB / 1.216 GB, free: 5.875 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005403/0.7252, allocations: 265.4 kB / 1.216 GB, free: 5.582 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002555/0.7254, allocations: 0.6963 MB / 1.216 GB, free: 4.859 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.928e-05/0.7255, allocations: 19.42 kB / 1.217 GB, free: 4.84 MB / 0.9356 GB Notification: Performance of SimCode: time 4.5e-07/0.7255, allocations: 4 kB / 1.217 GB, free: 4.836 MB / 0.9356 GB Notification: Performance of Templates: time 0.004177/0.7297, allocations: 1.996 MB / 1.218 GB, free: 2.84 MB / 0.9356 GB make -j1 -f Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.makefile (rm -f Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.sim & ./Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches