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.001235/0.001235, allocations: 108 kB / 15.6 MB, free: 132 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.001242/0.001242, allocations: 193 kB / 16.53 MB, free: 6.391 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.466/1.466, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.864/2.864, allocations: 469.4 MB / 0.742 GB, free: 7.668 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001282/0.001282, allocations: 65.92 kB / 0.9083 GB, free: 34.49 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3182/0.3195, allocations: 159.1 MB / 1.064 GB, free: 14.48 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light): time 0.003447/0.323, allocations: 1.542 MB / 1.065 GB, free: 12.92 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001418/0.3245, allocations: 0.769 MB / 1.066 GB, free: 12.14 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.238e-05/0.3245, allocations: 4 kB / 1.066 GB, free: 12.14 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 3.673e-05/0.3246, allocations: 7.875 kB / 1.066 GB, free: 12.13 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001005/0.3247, allocations: 15.8 kB / 1.066 GB, free: 12.12 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006144/0.3254, allocations: 127.6 kB / 1.066 GB, free: 11.99 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001445/0.3255, allocations: 103.6 kB / 1.066 GB, free: 11.89 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 9.941e-05/0.3256, allocations: 19.98 kB / 1.066 GB, free: 11.87 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001131/0.3257, allocations: 39.86 kB / 1.066 GB, free: 11.83 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 9.281e-05/0.3258, allocations: 51.75 kB / 1.066 GB, free: 11.78 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.237e-05/0.3259, allocations: 8 kB / 1.066 GB, free: 11.77 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002071/0.3261, allocations: 95.91 kB / 1.066 GB, free: 11.68 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 3.395e-05/0.3261, allocations: 23.91 kB / 1.066 GB, free: 11.66 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 6.584e-05/0.3262, allocations: 47.72 kB / 1.066 GB, free: 11.61 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002798/0.3265, allocations: 163.8 kB / 1.067 GB, free: 11.45 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.3265, allocations: 4 kB / 1.067 GB, free: 11.45 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.393e-06/0.3265, allocations: 0 / 1.067 GB, free: 11.45 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.741e-06/0.3265, allocations: 0 / 1.067 GB, free: 11.45 MB / 0.8262 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.000848/0.3274, allocations: 0.4962 MB / 1.067 GB, free: 10.88 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.317e-05/0.3274, allocations: 8.031 kB / 1.067 GB, free: 10.88 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.081e-05/0.3275, allocations: 46.67 kB / 1.067 GB, free: 10.82 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.107e-05/0.3275, allocations: 8.844 kB / 1.067 GB, free: 10.81 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001376/0.3277, allocations: 184.2 kB / 1.067 GB, free: 10.59 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.789e-05/0.3277, allocations: 4.375 kB / 1.067 GB, free: 10.59 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.635e-05/0.3277, allocations: 4.375 kB / 1.067 GB, free: 10.59 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001932/0.3279, allocations: 89.69 kB / 1.067 GB, free: 10.49 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.875e-06/0.3279, allocations: 0 / 1.067 GB, free: 10.49 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.526e-05/0.328, allocations: 4 kB / 1.067 GB, free: 10.49 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.529e-06/0.328, allocations: 0 / 1.067 GB, free: 10.49 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001601/0.3281, allocations: 47.97 kB / 1.067 GB, free: 10.44 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005702/0.3287, allocations: 332.8 kB / 1.068 GB, free: 10.07 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002194/0.3289, allocations: 82.61 kB / 1.068 GB, free: 9.977 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.299e-05/0.329, allocations: 40.83 kB / 1.068 GB, free: 9.934 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.426e-05/0.3291, allocations: 4 kB / 1.068 GB, free: 9.93 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002436/0.3293, allocations: 95.36 kB / 1.068 GB, free: 9.824 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=11): time 1.673e-06/0.3293, allocations: 0 / 1.068 GB, free: 9.824 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11): time 0.000443/0.3298, allocations: 181.3 kB / 1.068 GB, free: 9.641 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.966e-05/0.3298, allocations: 59.39 kB / 1.068 GB, free: 9.57 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001283/0.33, allocations: 145 kB / 1.068 GB, free: 9.422 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.288e-05/0.33, allocations: 29.7 kB / 1.068 GB, free: 9.387 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 6.99e-05/0.3301, allocations: 108 kB / 1.069 GB, free: 9.277 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.84e-05/0.3301, allocations: 19.72 kB / 1.069 GB, free: 9.258 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.019e-05/0.3302, allocations: 33.7 kB / 1.069 GB, free: 9.219 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001179/0.3303, allocations: 322.8 kB / 1.069 GB, free: 8.895 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.761e-05/0.3304, allocations: 27.98 kB / 1.069 GB, free: 8.867 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001171/0.3305, allocations: 77.69 kB / 1.069 GB, free: 8.773 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001874/0.3307, allocations: 113 kB / 1.069 GB, free: 8.645 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.484e-06/0.3307, allocations: 0 / 1.069 GB, free: 8.645 MB / 0.8262 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002559/0.331, allocations: 137.3 kB / 1.069 GB, free: 8.504 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.462e-05/0.331, allocations: 11.94 kB / 1.069 GB, free: 8.492 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.951e-06/0.331, allocations: 0 / 1.069 GB, free: 8.492 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.582e-05/0.3311, allocations: 4 kB / 1.069 GB, free: 8.488 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001154/0.3312, allocations: 19.98 kB / 1.069 GB, free: 8.469 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.606e-06/0.3312, allocations: 3.938 kB / 1.069 GB, free: 8.465 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001054/0.3313, allocations: 15.92 kB / 1.069 GB, free: 8.449 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.454e-05/0.3313, allocations: 4 kB / 1.069 GB, free: 8.445 MB / 0.8262 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.0001139/0.3314, allocations: 133.9 kB / 1.069 GB, free: 8.305 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.499e-05/0.3315, allocations: 7.906 kB / 1.069 GB, free: 8.297 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000363/0.3318, allocations: 176.4 kB / 1.07 GB, free: 8.121 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/0.3319, allocations: 0 / 1.07 GB, free: 8.121 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/0.3319, allocations: 0 / 1.07 GB, free: 8.121 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.3319, allocations: 3.938 kB / 1.07 GB, free: 8.117 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006287/0.3325, allocations: 466.2 kB / 1.07 GB, free: 7.605 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.398e-06/0.3325, allocations: 7.938 kB / 1.07 GB, free: 7.598 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.574e-05/0.3326, allocations: 19.98 kB / 1.07 GB, free: 7.578 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.938e-06/0.3326, allocations: 0 / 1.07 GB, free: 7.578 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.572e-05/0.3327, allocations: 4 kB / 1.07 GB, free: 7.574 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.019e-06/0.3327, allocations: 3.938 kB / 1.07 GB, free: 7.57 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.3327, allocations: 0 / 1.07 GB, free: 7.57 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003328/0.333, allocations: 250.4 kB / 1.07 GB, free: 7.312 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.299e-05/0.3331, allocations: 85.14 kB / 1.07 GB, free: 7.211 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.965e-05/0.3331, allocations: 11.98 kB / 1.07 GB, free: 7.199 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001245/0.3332, allocations: 11.92 kB / 1.07 GB, free: 7.188 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.247e-05/0.3333, allocations: 15.92 kB / 1.07 GB, free: 7.172 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.576e-05/0.3333, allocations: 4 kB / 1.07 GB, free: 7.168 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 6.451e-05/0.3334, allocations: 107.2 kB / 1.071 GB, free: 7.062 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3334, allocations: 4 kB / 1.071 GB, free: 7.059 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003166/0.3337, allocations: 44 kB / 1.071 GB, free: 7.016 MB / 0.8262 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.0008265/0.3345, allocations: 0.8324 MB / 1.071 GB, free: 6.176 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002647/0.3348, allocations: 107.8 kB / 1.071 GB, free: 6.07 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.584e-06/0.3348, allocations: 0 / 1.071 GB, free: 6.07 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001243/0.335, allocations: 55.92 kB / 1.072 GB, free: 6.016 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003162/0.3353, allocations: 23.91 kB / 1.072 GB, free: 5.992 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00183/0.3371, allocations: 1.674 MB / 1.073 GB, free: 4.207 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000255/0.3374, allocations: 0.7041 MB / 1.074 GB, free: 3.477 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 5.217e-05/0.3374, allocations: 8.422 kB / 1.074 GB, free: 3.469 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.761e-05/0.3375, allocations: 35.42 kB / 1.074 GB, free: 3.434 MB / 0.8262 GB Notification: Performance of SimCode: time 2.2e-07/0.3375, allocations: 0 / 1.074 GB, free: 3.434 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02099/0.3585, allocations: 3.43 MB / 1.077 GB, free: 144 kB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.297/7.656, allocations: 7.484 kB / 1.077 GB, free: 140 kB / 0.8262 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