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.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.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.005676/0.005676, allocations: 104.8 kB / 15.74 MB, free: 6.062 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.001194/0.001194, allocations: 194.7 kB / 16.67 MB, free: 5.973 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.359/1.359, allocations: 222.9 MB / 240.4 MB, free: 4.184 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.803/2.803, allocations: 469.4 MB / 0.7422 GB, free: 7.566 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001486/0.001486, allocations: 63.89 kB / 1.064 GB, free: 13.88 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2971/0.2986, allocations: 159.1 MB / 1.22 GB, free: 14.63 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light): time 0.003129/0.3018, allocations: 1.546 MB / 1.221 GB, free: 13.07 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001535/0.3033, allocations: 0.7673 MB / 1.222 GB, free: 12.3 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.537e-05/0.3034, allocations: 4 kB / 1.222 GB, free: 12.3 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 3.664e-05/0.3035, allocations: 7.875 kB / 1.222 GB, free: 12.29 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0001094/0.3036, allocations: 15.86 kB / 1.222 GB, free: 12.27 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006539/0.3043, allocations: 135.5 kB / 1.222 GB, free: 12.14 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001803/0.3045, allocations: 95.7 kB / 1.222 GB, free: 12.05 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001113/0.3046, allocations: 15.98 kB / 1.222 GB, free: 12.03 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001266/0.3047, allocations: 47.78 kB / 1.222 GB, free: 11.98 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 9.29e-05/0.3048, allocations: 43.83 kB / 1.222 GB, free: 11.94 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.359e-05/0.3048, allocations: 8 kB / 1.222 GB, free: 11.93 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002281/0.3051, allocations: 99.84 kB / 1.222 GB, free: 11.84 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 3.526e-05/0.3051, allocations: 23.91 kB / 1.222 GB, free: 11.81 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 6.229e-05/0.3052, allocations: 43.78 kB / 1.222 GB, free: 11.77 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0003178/0.3055, allocations: 167.4 kB / 1.223 GB, free: 11.61 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.3055, allocations: 0 / 1.223 GB, free: 11.61 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.322e-06/0.3055, allocations: 0 / 1.223 GB, free: 11.61 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 9.899e-06/0.3056, allocations: 0 / 1.223 GB, free: 11.61 MB / 0.9825 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.0008961/0.3065, allocations: 0.5076 MB / 1.223 GB, free: 11.03 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 5.393e-05/0.3065, allocations: 12.02 kB / 1.223 GB, free: 11.02 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.635e-05/0.3066, allocations: 38.75 kB / 1.223 GB, free: 10.97 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.961e-05/0.3066, allocations: 12.84 kB / 1.223 GB, free: 10.96 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001597/0.3068, allocations: 188.2 kB / 1.223 GB, free: 10.74 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.135e-05/0.3068, allocations: 4.375 kB / 1.223 GB, free: 10.73 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.356e-05/0.3069, allocations: 8.359 kB / 1.223 GB, free: 10.73 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002223/0.3071, allocations: 93.7 kB / 1.223 GB, free: 10.63 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.115e-05/0.3071, allocations: 0 / 1.223 GB, free: 10.63 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.381e-05/0.3071, allocations: 0 / 1.223 GB, free: 10.63 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.502e-06/0.3071, allocations: 4 kB / 1.223 GB, free: 10.62 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001553/0.3073, allocations: 51.95 kB / 1.224 GB, free: 10.57 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006005/0.3079, allocations: 320.8 kB / 1.224 GB, free: 10.21 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002298/0.3082, allocations: 90.69 kB / 1.224 GB, free: 10.11 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.162e-05/0.3083, allocations: 32.84 kB / 1.224 GB, free: 10.08 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.845e-05/0.3083, allocations: 12 kB / 1.224 GB, free: 10.07 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002716/0.3086, allocations: 91.34 kB / 1.224 GB, free: 9.965 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=11): time 1.783e-06/0.3086, allocations: 0 / 1.224 GB, free: 9.965 MB / 0.9825 GB Notification: Performance of matching and sorting (n=11): time 0.0004506/0.309, allocations: 189.4 kB / 1.224 GB, free: 9.773 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.795e-05/0.3091, allocations: 51.41 kB / 1.224 GB, free: 9.711 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001304/0.3092, allocations: 141.4 kB / 1.224 GB, free: 9.566 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.108e-05/0.3093, allocations: 33.7 kB / 1.224 GB, free: 9.527 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 6.82e-05/0.3093, allocations: 104.1 kB / 1.225 GB, free: 9.422 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 3.544e-05/0.3094, allocations: 23.8 kB / 1.225 GB, free: 9.398 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.826e-05/0.3094, allocations: 33.7 kB / 1.225 GB, free: 9.359 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001093/0.3096, allocations: 326.8 kB / 1.225 GB, free: 9.031 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.616e-05/0.3096, allocations: 31.97 kB / 1.225 GB, free: 9 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001008/0.3098, allocations: 67.81 kB / 1.225 GB, free: 8.918 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001879/0.3099, allocations: 109 kB / 1.225 GB, free: 8.793 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.217e-06/0.31, allocations: 0 / 1.225 GB, free: 8.793 MB / 0.9825 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003067/0.3103, allocations: 145.4 kB / 1.225 GB, free: 8.645 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.803e-05/0.3103, allocations: 9.188 kB / 1.225 GB, free: 8.637 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.53e-06/0.3103, allocations: 144 / 1.225 GB, free: 8.637 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.849e-05/0.3103, allocations: 4 kB / 1.225 GB, free: 8.633 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001164/0.3105, allocations: 23.95 kB / 1.225 GB, free: 8.609 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.821e-06/0.3105, allocations: 0 / 1.225 GB, free: 8.609 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001047/0.3106, allocations: 11.94 kB / 1.225 GB, free: 8.598 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.401e-05/0.3106, allocations: 15.92 kB / 1.225 GB, free: 8.582 MB / 0.9825 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.0001076/0.3107, allocations: 130.3 kB / 1.225 GB, free: 8.445 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.349e-05/0.3108, allocations: 7.953 kB / 1.225 GB, free: 8.438 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003684/0.3111, allocations: 181.5 kB / 1.226 GB, free: 8.25 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.715e-06/0.3112, allocations: 0 / 1.226 GB, free: 8.25 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.3112, allocations: 0 / 1.226 GB, free: 8.25 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.3112, allocations: 0 / 1.226 GB, free: 8.25 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006087/0.3118, allocations: 466.3 kB / 1.226 GB, free: 7.738 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.953e-06/0.3118, allocations: 0 / 1.226 GB, free: 7.738 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.396e-05/0.3119, allocations: 19.92 kB / 1.226 GB, free: 7.719 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.135e-06/0.3119, allocations: 0 / 1.226 GB, free: 7.719 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.615e-05/0.3119, allocations: 4 kB / 1.226 GB, free: 7.715 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.308e-06/0.3119, allocations: 7.922 kB / 1.226 GB, free: 7.707 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.3119, allocations: 0 / 1.226 GB, free: 7.707 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003266/0.3123, allocations: 251.4 kB / 1.226 GB, free: 7.445 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 5.718e-05/0.3123, allocations: 85.06 kB / 1.226 GB, free: 7.344 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.637e-05/0.3124, allocations: 4 kB / 1.226 GB, free: 7.34 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001247/0.3125, allocations: 11.92 kB / 1.226 GB, free: 7.328 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.847e-05/0.3126, allocations: 15.98 kB / 1.226 GB, free: 7.312 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.884e-05/0.3126, allocations: 4 kB / 1.226 GB, free: 7.309 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 8.118e-05/0.3127, allocations: 111.2 kB / 1.227 GB, free: 7.199 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.813e-06/0.3127, allocations: 0 / 1.227 GB, free: 7.199 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003453/0.313, allocations: 43.88 kB / 1.227 GB, free: 7.156 MB / 0.9825 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.0009202/0.314, allocations: 0.8444 MB / 1.227 GB, free: 6.301 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002657/0.3142, allocations: 100 kB / 1.228 GB, free: 6.203 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.3143, allocations: 0 / 1.228 GB, free: 6.203 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001331/0.3144, allocations: 51.92 kB / 1.228 GB, free: 6.152 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003143/0.3147, allocations: 24 kB / 1.228 GB, free: 6.129 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001904/0.3166, allocations: 1.69 MB / 1.229 GB, free: 4.332 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002468/0.3169, allocations: 0.7002 MB / 1.23 GB, free: 3.605 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 5.257e-05/0.3169, allocations: 12.5 kB / 1.23 GB, free: 3.594 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.166e-05/0.317, allocations: 35.42 kB / 1.23 GB, free: 3.562 MB / 0.9825 GB Notification: Performance of SimCode: time 4.21e-07/0.317, allocations: 0 / 1.23 GB, free: 3.562 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0201/0.3371, allocations: 3.475 MB / 1.233 GB, free: 244 kB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.326/7.663, allocations: 7.5 kB / 1.233 GB, free: 240 kB / 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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light_res.csv --start-time 0 --stop-time 3600 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.44 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.csv","/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) "Warning: Resultfile and Reference have different end time points! Reffile[575]=3600.000000 File[1254]=2249.280000 Error: Could not read variable lig.occ in file Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light_res.csv. Warning: Get data of variable lig.occ from file Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light_res.csv failed! Error: Could not read variable lig.on in file Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light_res.csv. Warning: Get data of variable lig.on from file Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light_res.csv failed! " Variables in the reference:time,lig.ill,lig.occ,lig.pArriv,lig.on Variables in the result:time,lig.ill,lig.pArriv,lig.pInter,booleanPulse.period,booleanPulse.startTime