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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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: "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light,fileNamePrefix="Buildings_10_Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light,fileNamePrefix="Buildings_10_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.001267/0.001267, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001189/0.001189, allocations: 193.5 kB / 16.14 MB, free: 6.711 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.243/1.243, allocations: 222.9 MB / 239.8 MB, free: 4.555 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.377/2.377, allocations: 437 MB / 0.7099 GB, free: 5.328 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001955/0.001955, allocations: 63.91 kB / 0.8687 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4917/0.4937, allocations: 151.6 MB / 1.017 GB, free: 2.777 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light): time 0.00239/0.4961, allocations: 1.597 MB / 1.018 GB, free: 1.172 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001154/0.4973, allocations: 0.7791 MB / 1.019 GB, free: 396 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.074e-05/0.4974, allocations: 0 / 1.019 GB, free: 396 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 3.101e-05/0.4974, allocations: 3.938 kB / 1.019 GB, free: 392 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 8.07e-05/0.4975, allocations: 15.88 kB / 1.019 GB, free: 376 kB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004097/0.4979, allocations: 107.8 kB / 1.019 GB, free: 268 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001038/0.498, allocations: 95.69 kB / 1.019 GB, free: 172 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 7.326e-05/0.4981, allocations: 15.94 kB / 1.019 GB, free: 156 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 8.547e-05/0.4982, allocations: 43.84 kB / 1.019 GB, free: 112 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 6.839e-05/0.4983, allocations: 43.81 kB / 1.019 GB, free: 68 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.783e-05/0.4983, allocations: 4 kB / 1.019 GB, free: 64 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001887/0.4985, allocations: 95.84 kB / 1.019 GB, free: 15.97 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 2.632e-05/0.4985, allocations: 15.92 kB / 1.019 GB, free: 15.95 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 4.754e-05/0.4986, allocations: 39.73 kB / 1.02 GB, free: 15.91 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002047/0.4988, allocations: 165.9 kB / 1.02 GB, free: 15.75 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.4988, allocations: 0 / 1.02 GB, free: 15.75 MB / 0.7794 GB Notification: Performance of FrontEnd: time 6.51e-07/0.4988, allocations: 0 / 1.02 GB, free: 15.75 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 3.667e-06/0.4988, allocations: 0 / 1.02 GB, free: 15.75 MB / 0.7794 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.0006568/0.4995, allocations: 0.4963 MB / 1.02 GB, free: 15.19 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.181e-05/0.4995, allocations: 8.031 kB / 1.02 GB, free: 15.18 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.217e-05/0.4995, allocations: 34.75 kB / 1.02 GB, free: 15.14 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.153e-05/0.4996, allocations: 12.75 kB / 1.02 GB, free: 15.13 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001109/0.4997, allocations: 196.1 kB / 1.02 GB, free: 14.9 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.01e-05/0.4997, allocations: 384 / 1.02 GB, free: 14.9 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.262e-05/0.4998, allocations: 8.375 kB / 1.02 GB, free: 14.89 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001704/0.4999, allocations: 81.77 kB / 1.02 GB, free: 14.8 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.402e-06/0.4999, allocations: 0 / 1.02 GB, free: 14.8 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.257e-05/0.5, allocations: 7.922 kB / 1.02 GB, free: 14.8 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.967e-06/0.5, allocations: 0 / 1.02 GB, free: 14.8 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001369/0.5001, allocations: 55.89 kB / 1.021 GB, free: 14.74 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004794/0.5006, allocations: 336.7 kB / 1.021 GB, free: 14.36 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001989/0.5008, allocations: 86.69 kB / 1.021 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.533e-05/0.5009, allocations: 36.84 kB / 1.021 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.852e-05/0.5009, allocations: 4 kB / 1.021 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001953/0.5011, allocations: 99.33 kB / 1.021 GB, free: 14.12 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=11): time 1.403e-06/0.5011, allocations: 0 / 1.021 GB, free: 14.12 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11): time 0.0003902/0.5015, allocations: 181.7 kB / 1.021 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.018e-05/0.5016, allocations: 51.41 kB / 1.021 GB, free: 13.87 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000102/0.5017, allocations: 139.7 kB / 1.021 GB, free: 13.73 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.616e-05/0.5017, allocations: 33.7 kB / 1.021 GB, free: 13.69 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.528e-05/0.5018, allocations: 100 kB / 1.022 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.748e-05/0.5018, allocations: 31.62 kB / 1.022 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.928e-05/0.5018, allocations: 33.7 kB / 1.022 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.25e-05/0.5019, allocations: 326.8 kB / 1.022 GB, free: 13.19 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.582e-05/0.502, allocations: 27.98 kB / 1.022 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.894e-05/0.5021, allocations: 69.12 kB / 1.022 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001638/0.5023, allocations: 101.1 kB / 1.022 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.5023, allocations: 0 / 1.022 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002477/0.5026, allocations: 137.4 kB / 1.022 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.86e-05/0.5026, allocations: 17.17 kB / 1.022 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.469e-06/0.5026, allocations: 0 / 1.022 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.083e-05/0.5026, allocations: 4 kB / 1.022 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001049/0.5027, allocations: 19.98 kB / 1.022 GB, free: 12.78 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.54e-06/0.5027, allocations: 0 / 1.022 GB, free: 12.78 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.737e-05/0.5028, allocations: 19.89 kB / 1.022 GB, free: 12.76 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.241e-05/0.5028, allocations: 4 kB / 1.022 GB, free: 12.75 MB / 0.7794 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.926e-05/0.5029, allocations: 140.4 kB / 1.022 GB, free: 12.61 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.236e-05/0.503, allocations: 15.84 kB / 1.022 GB, free: 12.59 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003279/0.5033, allocations: 166.3 kB / 1.023 GB, free: 12.42 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.345e-06/0.5033, allocations: 0 / 1.023 GB, free: 12.42 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.317e-06/0.5033, allocations: 0 / 1.023 GB, free: 12.42 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.805e-06/0.5033, allocations: 0 / 1.023 GB, free: 12.42 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000548/0.5039, allocations: 466.3 kB / 1.023 GB, free: 11.91 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/0.5039, allocations: 3.984 kB / 1.023 GB, free: 11.91 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.181e-05/0.504, allocations: 12 kB / 1.023 GB, free: 11.89 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.504, allocations: 3.938 kB / 1.023 GB, free: 11.89 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.378e-05/0.504, allocations: 3.984 kB / 1.023 GB, free: 11.89 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.635e-06/0.504, allocations: 7.938 kB / 1.023 GB, free: 11.88 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.001e-06/0.504, allocations: 3.938 kB / 1.023 GB, free: 11.88 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003002/0.5043, allocations: 250.9 kB / 1.023 GB, free: 11.62 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.811e-05/0.5044, allocations: 88.86 kB / 1.023 GB, free: 11.51 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.478e-05/0.5044, allocations: 4 kB / 1.023 GB, free: 11.51 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001259/0.5045, allocations: 15.92 kB / 1.023 GB, free: 11.49 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.294e-05/0.5046, allocations: 7.984 kB / 1.023 GB, free: 11.48 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.053e-05/0.5046, allocations: 7.984 kB / 1.023 GB, free: 11.48 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 6.008e-05/0.5047, allocations: 104.8 kB / 1.024 GB, free: 11.38 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.5e-07/0.5047, allocations: 4 kB / 1.024 GB, free: 11.37 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.000291/0.505, allocations: 51.98 kB / 1.024 GB, free: 11.32 MB / 0.7794 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.0007145/0.5057, allocations: 0.8334 MB / 1.024 GB, free: 10.48 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002191/0.5059, allocations: 91.89 kB / 1.025 GB, free: 10.39 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.5059, allocations: 0 / 1.025 GB, free: 10.39 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001167/0.5061, allocations: 59.91 kB / 1.025 GB, free: 10.33 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002917/0.5064, allocations: 26.59 kB / 1.025 GB, free: 10.3 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001563/0.5079, allocations: 1.707 MB / 1.026 GB, free: 8.484 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002066/0.5082, allocations: 0.7041 MB / 1.027 GB, free: 7.754 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 5.014e-05/0.5082, allocations: 12.55 kB / 1.027 GB, free: 7.742 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.051e-05/0.5083, allocations: 35.42 kB / 1.027 GB, free: 7.711 MB / 0.7794 GB Notification: Performance of SimCode: time 2.51e-07/0.5083, allocations: 0 / 1.027 GB, free: 7.711 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.047/1.556, allocations: 3.175 MB / 1.03 GB, free: 4.668 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002726/1.556, allocations: 269 kB / 1.03 GB, free: 4.406 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.742/3.298, allocations: 0 / 1.03 GB, free: 4.406 MB / 0.7794 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light_res.mat --tempDir=temp_Buildings_10_Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light.fmu > 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