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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.001691/0.001691, allocations: 112.5 kB / 15.73 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00142/0.00142, allocations: 194.8 kB / 16.67 MB, free: 6.539 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 / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.687/2.687, allocations: 482.6 MB / 0.755 GB, free: 10.61 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001738/0.001738, allocations: 67.88 kB / 1.083 GB, free: 12.26 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3042/0.3059, allocations: 162.3 MB / 1.242 GB, free: 9.867 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light): time 0.002463/0.3084, allocations: 1.544 MB / 1.243 GB, free: 8.309 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001196/0.3096, allocations: 0.7673 MB / 1.244 GB, free: 7.535 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.548e-05/0.3097, allocations: 0 / 1.244 GB, free: 7.535 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 3.07e-05/0.3097, allocations: 7.875 kB / 1.244 GB, free: 7.527 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 8.057e-05/0.3098, allocations: 19.86 kB / 1.244 GB, free: 7.508 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.000448/0.3103, allocations: 127.5 kB / 1.244 GB, free: 7.383 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0001359/0.3104, allocations: 107.7 kB / 1.244 GB, free: 7.277 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 7.762e-05/0.3105, allocations: 15.92 kB / 1.244 GB, free: 7.262 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 8.814e-05/0.3106, allocations: 43.91 kB / 1.244 GB, free: 7.219 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 7.713e-05/0.3107, allocations: 47.75 kB / 1.244 GB, free: 7.172 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 2.156e-05/0.3107, allocations: 8 kB / 1.244 GB, free: 7.164 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001803/0.3109, allocations: 99.84 kB / 1.245 GB, free: 7.066 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 2.884e-05/0.3109, allocations: 19.92 kB / 1.245 GB, free: 7.047 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 5.602e-05/0.311, allocations: 47.78 kB / 1.245 GB, free: 7 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002347/0.3112, allocations: 159.5 kB / 1.245 GB, free: 6.844 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 2.765e-06/0.3112, allocations: 0 / 1.245 GB, free: 6.844 MB / 0.9981 GB Notification: Performance of FrontEnd: time 3.086e-06/0.3112, allocations: 0 / 1.245 GB, free: 6.844 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 3.807e-06/0.3113, allocations: 3.938 kB / 1.245 GB, free: 6.84 MB / 0.9981 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.0007103/0.312, allocations: 0.5115 MB / 1.245 GB, free: 6.262 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.299e-05/0.312, allocations: 12.03 kB / 1.245 GB, free: 6.25 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.345e-05/0.3121, allocations: 30.75 kB / 1.245 GB, free: 6.211 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.428e-05/0.3121, allocations: 20.78 kB / 1.245 GB, free: 6.191 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001347/0.3122, allocations: 186.1 kB / 1.245 GB, free: 5.973 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.177e-05/0.3123, allocations: 8.375 kB / 1.245 GB, free: 5.965 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.441e-05/0.3123, allocations: 4.375 kB / 1.245 GB, free: 5.961 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001736/0.3125, allocations: 85.7 kB / 1.246 GB, free: 5.871 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.563e-06/0.3125, allocations: 0 / 1.246 GB, free: 5.871 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.426e-05/0.3125, allocations: 8 kB / 1.246 GB, free: 5.863 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.927e-06/0.3125, allocations: 0 / 1.246 GB, free: 5.863 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001421/0.3126, allocations: 47.95 kB / 1.246 GB, free: 5.816 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005022/0.3132, allocations: 332.7 kB / 1.246 GB, free: 5.441 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002053/0.3134, allocations: 86.67 kB / 1.246 GB, free: 5.348 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.015e-05/0.3135, allocations: 40.84 kB / 1.246 GB, free: 5.305 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.779e-05/0.3135, allocations: 0 / 1.246 GB, free: 5.305 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000198/0.3137, allocations: 103.3 kB / 1.246 GB, free: 5.191 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=11): time 1.242e-06/0.3137, allocations: 0 / 1.246 GB, free: 5.191 MB / 0.9981 GB Notification: Performance of matching and sorting (n=11): time 0.0004237/0.3141, allocations: 181.4 kB / 1.246 GB, free: 5.008 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.942e-05/0.3142, allocations: 55.41 kB / 1.246 GB, free: 4.941 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001323/0.3143, allocations: 135.4 kB / 1.247 GB, free: 4.801 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 2.213e-05/0.3144, allocations: 29.7 kB / 1.247 GB, free: 4.766 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 7.094e-05/0.3144, allocations: 108.1 kB / 1.247 GB, free: 4.656 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 3.444e-05/0.3145, allocations: 31.73 kB / 1.247 GB, free: 4.625 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.541e-05/0.3145, allocations: 33.7 kB / 1.247 GB, free: 4.586 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001709/0.3147, allocations: 330.8 kB / 1.247 GB, free: 4.254 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.024e-05/0.3148, allocations: 27.98 kB / 1.247 GB, free: 4.227 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001081/0.3149, allocations: 71.94 kB / 1.247 GB, free: 4.141 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001873/0.3151, allocations: 105 kB / 1.247 GB, free: 4.02 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.3151, allocations: 0 / 1.247 GB, free: 4.02 MB / 0.9981 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000253/0.3154, allocations: 141.5 kB / 1.247 GB, free: 3.875 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 2.057e-05/0.3154, allocations: 7.984 kB / 1.247 GB, free: 3.867 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.504e-06/0.3154, allocations: 4 kB / 1.247 GB, free: 3.863 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.389e-05/0.3154, allocations: 0 / 1.247 GB, free: 3.863 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001028/0.3155, allocations: 15.98 kB / 1.247 GB, free: 3.848 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.052e-05/0.3156, allocations: 4 kB / 1.247 GB, free: 3.844 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.997e-05/0.3157, allocations: 27.81 kB / 1.247 GB, free: 3.816 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.424e-05/0.3157, allocations: 8 kB / 1.247 GB, free: 3.809 MB / 0.9981 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.0001208/0.3158, allocations: 124.1 kB / 1.248 GB, free: 3.68 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.491e-05/0.3158, allocations: 15.89 kB / 1.248 GB, free: 3.664 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003737/0.3162, allocations: 174.2 kB / 1.248 GB, free: 3.488 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.837e-06/0.3162, allocations: 4 kB / 1.248 GB, free: 3.484 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.3162, allocations: 0 / 1.248 GB, free: 3.484 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.338e-06/0.3163, allocations: 0 / 1.248 GB, free: 3.484 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006598/0.3169, allocations: 462.3 kB / 1.248 GB, free: 2.977 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.719e-06/0.3169, allocations: 7.984 kB / 1.248 GB, free: 2.969 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.02e-05/0.317, allocations: 11.94 kB / 1.248 GB, free: 2.957 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.793e-06/0.317, allocations: 0 / 1.248 GB, free: 2.957 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.618e-05/0.317, allocations: 7.984 kB / 1.248 GB, free: 2.949 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.096e-06/0.3171, allocations: 3.938 kB / 1.248 GB, free: 2.945 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.3171, allocations: 0 / 1.248 GB, free: 2.945 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003559/0.3174, allocations: 251.4 kB / 1.248 GB, free: 2.684 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.107e-05/0.3175, allocations: 85.06 kB / 1.249 GB, free: 2.582 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.54e-05/0.3175, allocations: 4 kB / 1.249 GB, free: 2.578 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001142/0.3176, allocations: 11.92 kB / 1.249 GB, free: 2.566 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.867e-05/0.3177, allocations: 15.98 kB / 1.249 GB, free: 2.551 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.838e-05/0.3177, allocations: 7.984 kB / 1.249 GB, free: 2.543 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 8.841e-05/0.3178, allocations: 109.3 kB / 1.249 GB, free: 2.438 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3178, allocations: 0 / 1.249 GB, free: 2.438 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002793/0.3181, allocations: 39.94 kB / 1.249 GB, free: 2.398 MB / 0.9981 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.0009278/0.319, allocations: 0.8618 MB / 1.25 GB, free: 1.531 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0002568/0.3193, allocations: 95.83 kB / 1.25 GB, free: 1.438 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 4.328e-06/0.3193, allocations: 4 kB / 1.25 GB, free: 1.434 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001231/0.3194, allocations: 51.97 kB / 1.25 GB, free: 1.383 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002863/0.3197, allocations: 19.92 kB / 1.25 GB, free: 1.363 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4914/0.8112, allocations: 1.671 MB / 1.251 GB, free: 13.86 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001108/0.8113, allocations: 0.7055 MB / 1.252 GB, free: 13.16 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 7.486e-05/0.8114, allocations: 11.69 kB / 1.252 GB, free: 13.16 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.776e-05/0.8115, allocations: 34.83 kB / 1.252 GB, free: 13.15 MB / 0.9981 GB Notification: Performance of SimCode: time 5.31e-07/0.8115, allocations: 0 / 1.252 GB, free: 13.15 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.015/2.827, allocations: 3.474 MB / 1.255 GB, free: 12.78 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.63/19.46, allocations: 6.656 kB / 1.255 GB, free: 12.78 MB / 0.9981 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=400 --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) Reference file matches