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: "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light,fileNamePrefix="Buildings_latest_Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light,fileNamePrefix="Buildings_latest_Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007825/0.007825, allocations: 102.5 kB / 15.73 MB, free: 6.035 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.001716/0.001716, allocations: 196.8 kB / 16.67 MB, free: 5.969 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.365/1.365, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.797/2.797, allocations: 461.9 MB / 0.7348 GB, free: 14.55 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00161/0.00161, allocations: 63.89 kB / 1.054 GB, free: 7.625 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3662/0.3678, allocations: 157.4 MB / 1.207 GB, free: 10.12 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light): time 0.003676/0.3715, allocations: 1.549 MB / 1.209 GB, free: 8.559 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001638/0.3732, allocations: 0.7677 MB / 1.21 GB, free: 7.785 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.644e-05/0.3733, allocations: 8 kB / 1.21 GB, free: 7.777 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 5.148e-05/0.3734, allocations: 11.86 kB / 1.21 GB, free: 7.766 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0001251/0.3735, allocations: 15.8 kB / 1.21 GB, free: 7.75 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007827/0.3743, allocations: 131.6 kB / 1.21 GB, free: 7.621 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0002063/0.3746, allocations: 99.64 kB / 1.21 GB, free: 7.523 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001209/0.3747, allocations: 16 kB / 1.21 GB, free: 7.508 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001606/0.3749, allocations: 51.77 kB / 1.21 GB, free: 7.457 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001098/0.375, allocations: 43.83 kB / 1.21 GB, free: 7.414 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.361e-05/0.375, allocations: 11.94 kB / 1.21 GB, free: 7.402 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002567/0.3753, allocations: 95.91 kB / 1.21 GB, free: 7.309 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 4.095e-05/0.3753, allocations: 27.91 kB / 1.21 GB, free: 7.281 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 6.604e-05/0.3754, allocations: 39.78 kB / 1.21 GB, free: 7.242 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0003529/0.3757, allocations: 167.8 kB / 1.21 GB, free: 7.078 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 6.762e-06/0.3758, allocations: 0 / 1.21 GB, free: 7.078 MB / 0.9669 GB Notification: Performance of FrontEnd: time 2.865e-06/0.3758, allocations: 0 / 1.21 GB, free: 7.078 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 9.778e-06/0.3758, allocations: 0 / 1.21 GB, free: 7.078 MB / 0.9669 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.0009473/0.3768, allocations: 0.504 MB / 1.211 GB, free: 6.508 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.583e-05/0.3768, allocations: 8.625 kB / 1.211 GB, free: 6.5 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.981e-05/0.3769, allocations: 38.75 kB / 1.211 GB, free: 6.453 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.114e-05/0.377, allocations: 12.83 kB / 1.211 GB, free: 6.441 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001948/0.3772, allocations: 184.1 kB / 1.211 GB, free: 6.223 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.936e-05/0.3772, allocations: 384 / 1.211 GB, free: 6.223 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.919e-05/0.3772, allocations: 8.375 kB / 1.211 GB, free: 6.215 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003107/0.3775, allocations: 93.7 kB / 1.211 GB, free: 6.117 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.658e-06/0.3775, allocations: 0 / 1.211 GB, free: 6.117 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.502e-05/0.3776, allocations: 3.984 kB / 1.211 GB, free: 6.113 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.192e-06/0.3776, allocations: 0 / 1.211 GB, free: 6.113 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001572/0.3777, allocations: 51.95 kB / 1.211 GB, free: 6.062 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007152/0.3785, allocations: 332.7 kB / 1.211 GB, free: 5.688 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002304/0.3787, allocations: 82.67 kB / 1.211 GB, free: 5.598 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.017e-05/0.3788, allocations: 36.84 kB / 1.212 GB, free: 5.559 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.696e-05/0.3788, allocations: 7.984 kB / 1.212 GB, free: 5.551 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003077/0.3792, allocations: 99.38 kB / 1.212 GB, free: 5.441 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=11): time 1.673e-06/0.3792, allocations: 0 / 1.212 GB, free: 5.441 MB / 0.9669 GB Notification: Performance of matching and sorting (n=11): time 0.0004665/0.3796, allocations: 181.4 kB / 1.212 GB, free: 5.258 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.224e-05/0.3797, allocations: 51.41 kB / 1.212 GB, free: 5.195 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001382/0.3799, allocations: 148.2 kB / 1.212 GB, free: 5.043 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.648e-05/0.3799, allocations: 25.7 kB / 1.212 GB, free: 5.012 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 6.798e-05/0.38, allocations: 100.1 kB / 1.212 GB, free: 4.91 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 3.433e-05/0.38, allocations: 23.7 kB / 1.212 GB, free: 4.887 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.327e-05/0.3801, allocations: 33.7 kB / 1.212 GB, free: 4.848 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001403/0.3802, allocations: 326.8 kB / 1.212 GB, free: 4.52 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.167e-05/0.3803, allocations: 27.98 kB / 1.212 GB, free: 4.492 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001119/0.3804, allocations: 77.98 kB / 1.213 GB, free: 4.398 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002117/0.3807, allocations: 105.1 kB / 1.213 GB, free: 4.277 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.3807, allocations: 0 / 1.213 GB, free: 4.277 MB / 0.9669 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002889/0.381, allocations: 137.3 kB / 1.213 GB, free: 4.137 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.73e-05/0.381, allocations: 8 kB / 1.213 GB, free: 4.129 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.583e-06/0.381, allocations: 0 / 1.213 GB, free: 4.129 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.988e-05/0.381, allocations: 4 kB / 1.213 GB, free: 4.125 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001209/0.3812, allocations: 24.02 kB / 1.213 GB, free: 4.102 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.007e-05/0.3812, allocations: 0 / 1.213 GB, free: 4.102 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001111/0.3813, allocations: 23.86 kB / 1.213 GB, free: 4.078 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.512e-05/0.3813, allocations: 4 kB / 1.213 GB, free: 4.074 MB / 0.9669 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.0001166/0.3814, allocations: 125.8 kB / 1.213 GB, free: 3.941 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.537e-05/0.3815, allocations: 15.8 kB / 1.213 GB, free: 3.926 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003777/0.3819, allocations: 180.7 kB / 1.213 GB, free: 3.742 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.06e-06/0.3819, allocations: 3.984 kB / 1.213 GB, free: 3.738 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.094e-06/0.3819, allocations: 0 / 1.213 GB, free: 3.738 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.879e-06/0.3819, allocations: 0 / 1.213 GB, free: 3.738 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006739/0.3826, allocations: 466.2 kB / 1.214 GB, free: 3.227 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.594e-06/0.3826, allocations: 0 / 1.214 GB, free: 3.227 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.763e-05/0.3827, allocations: 19.98 kB / 1.214 GB, free: 3.207 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.158e-06/0.3827, allocations: 0 / 1.214 GB, free: 3.207 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.652e-05/0.3827, allocations: 4 kB / 1.214 GB, free: 3.203 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.258e-06/0.3827, allocations: 11.94 kB / 1.214 GB, free: 3.191 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.3827, allocations: 0 / 1.214 GB, free: 3.191 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004701/0.3832, allocations: 245.7 kB / 1.214 GB, free: 2.938 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 5.955e-05/0.3833, allocations: 81.02 kB / 1.214 GB, free: 2.84 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.908e-05/0.3833, allocations: 7.984 kB / 1.214 GB, free: 2.832 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001238/0.3834, allocations: 11.94 kB / 1.214 GB, free: 2.82 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.012e-05/0.3835, allocations: 15.97 kB / 1.214 GB, free: 2.805 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.941e-05/0.3835, allocations: 4 kB / 1.214 GB, free: 2.801 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 8.839e-05/0.3836, allocations: 108.8 kB / 1.214 GB, free: 2.695 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.8e-07/0.3836, allocations: 4 kB / 1.214 GB, free: 2.691 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0003652/0.384, allocations: 43.98 kB / 1.214 GB, free: 2.648 MB / 0.9669 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.001139/0.3852, allocations: 0.8419 MB / 1.215 GB, free: 1.797 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0003028/0.3855, allocations: 91.89 kB / 1.215 GB, free: 1.707 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.3855, allocations: 3.938 kB / 1.215 GB, free: 1.703 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001266/0.3856, allocations: 58.22 kB / 1.215 GB, free: 1.648 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003414/0.386, allocations: 27.92 kB / 1.215 GB, free: 1.621 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00219/0.3882, allocations: 1.672 MB / 1.217 GB, free: 15.84 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004874/0.3887, allocations: 0.7002 MB / 1.217 GB, free: 15.11 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 6.337e-05/0.3887, allocations: 20.53 kB / 1.217 GB, free: 15.09 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.451e-05/0.3888, allocations: 35.42 kB / 1.218 GB, free: 15.05 MB / 0.9825 GB Notification: Performance of SimCode: time 4.21e-07/0.3888, allocations: 0 / 1.218 GB, free: 15.05 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02315/0.412, allocations: 3.531 MB / 1.221 GB, free: 11.68 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.833/8.245, allocations: 6.188 kB / 1.221 GB, free: 11.67 MB / 0.9825 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light_res.mat --tempDir=temp_Buildings_latest_Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light.fmu > 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) "" Variables in the reference:time,lig.ill,lig.occ,lig.pArriv,lig.on Variables in the result:booleanPulse.period,booleanPulse.startTime,booleanPulse.width,booleanPulse.y,ill.amplitude,ill.f,ill.offset,ill.phase,ill.startTime,ill.y,lig.AArriv,lig.AInter,lig.BArriv,lig.BInter,lig.CArriv,lig.CInter,lig.MArriv,lig.MInter,lig.ill,lig.occ,lig.on,lig.pArriv,lig.pInter,lig.samplePeriod,lig.seed,time