Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.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-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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.Hunt1979Light,fileNamePrefix="Buildings_11_Buildings_Occupants_Office_Lighting_Validation_Hunt1979Light",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light,fileNamePrefix="Buildings_11_Buildings_Occupants_Office_Lighting_Validation_Hunt1979Light",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.00785/0.00785, allocations: 95.97 kB / 15.73 MB, free: 6.051 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.002173/0.002173, allocations: 194.3 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.428/1.428, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.875/2.875, allocations: 469.8 MB / 0.7425 GB, free: 7.34 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001952/0.001952, allocations: 63.89 kB / 1.065 GB, free: 13.61 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2685/0.2704, allocations: 159.1 MB / 1.22 GB, free: 14.35 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light): time 0.00262/0.2731, allocations: 1.518 MB / 1.222 GB, free: 12.82 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001271/0.2744, allocations: 0.7595 MB / 1.222 GB, free: 12.05 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.556e-05/0.2744, allocations: 0 / 1.222 GB, free: 12.05 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 2.819e-05/0.2744, allocations: 7.875 kB / 1.222 GB, free: 12.04 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 8.267e-05/0.2745, allocations: 15.86 kB / 1.222 GB, free: 12.03 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004804/0.275, allocations: 119.6 kB / 1.223 GB, free: 11.91 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001333/0.2752, allocations: 87.77 kB / 1.223 GB, free: 11.82 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 7.711e-05/0.2753, allocations: 19.92 kB / 1.223 GB, free: 11.8 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 9.293e-05/0.2754, allocations: 47.78 kB / 1.223 GB, free: 11.76 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 7.803e-05/0.2754, allocations: 39.83 kB / 1.223 GB, free: 11.72 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.123e-05/0.2755, allocations: 8 kB / 1.223 GB, free: 11.71 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002004/0.2757, allocations: 95.84 kB / 1.223 GB, free: 11.62 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 3.102e-05/0.2757, allocations: 19.92 kB / 1.223 GB, free: 11.6 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 6.659e-05/0.2758, allocations: 47.77 kB / 1.223 GB, free: 11.55 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002434/0.276, allocations: 143.5 kB / 1.223 GB, free: 11.41 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 2.935e-06/0.2761, allocations: 0 / 1.223 GB, free: 11.41 MB / 0.9825 GB Notification: Performance of FrontEnd: time 2.995e-06/0.2761, allocations: 4 kB / 1.223 GB, free: 11.41 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 3.877e-06/0.2761, allocations: 3.938 kB / 1.223 GB, free: 11.4 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0007885/0.2769, allocations: 482.2 kB / 1.223 GB, free: 10.87 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.123e-05/0.2769, allocations: 8.031 kB / 1.223 GB, free: 10.86 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.253e-05/0.277, allocations: 38.75 kB / 1.223 GB, free: 10.82 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.626e-05/0.277, allocations: 12.83 kB / 1.224 GB, free: 10.8 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000159/0.2772, allocations: 182.9 kB / 1.224 GB, free: 10.59 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.865e-05/0.2772, allocations: 38.27 kB / 1.224 GB, free: 10.55 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.561e-05/0.2773, allocations: 4.375 kB / 1.224 GB, free: 10.54 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002192/0.2775, allocations: 81.52 kB / 1.224 GB, free: 10.46 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.175e-06/0.2775, allocations: 0 / 1.224 GB, free: 10.46 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.075e-05/0.2775, allocations: 0 / 1.224 GB, free: 10.46 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.695e-06/0.2775, allocations: 7.984 kB / 1.224 GB, free: 10.45 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002085/0.2778, allocations: 51.95 kB / 1.224 GB, free: 10.4 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000538/0.2783, allocations: 324.7 kB / 1.224 GB, free: 10.03 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002253/0.2785, allocations: 70.58 kB / 1.224 GB, free: 9.953 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001209/0.2787, allocations: 40.84 kB / 1.224 GB, free: 9.91 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.919e-05/0.2787, allocations: 3.984 kB / 1.224 GB, free: 9.906 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002433/0.2789, allocations: 95.36 kB / 1.224 GB, free: 9.801 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=10): time 1.593e-06/0.279, allocations: 0 / 1.224 GB, free: 9.801 MB / 0.9825 GB Notification: Performance of matching and sorting (n=10): time 0.0005283/0.2795, allocations: 177.4 kB / 1.225 GB, free: 9.621 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.012e-05/0.2795, allocations: 51.41 kB / 1.225 GB, free: 9.559 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001199/0.2797, allocations: 134 kB / 1.225 GB, free: 9.414 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.263e-05/0.2797, allocations: 33.7 kB / 1.225 GB, free: 9.375 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 6.995e-05/0.2798, allocations: 92.33 kB / 1.225 GB, free: 9.277 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.942e-05/0.2798, allocations: 27.78 kB / 1.225 GB, free: 9.25 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.803e-05/0.2799, allocations: 29.7 kB / 1.225 GB, free: 9.215 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001457/0.28, allocations: 330.8 kB / 1.225 GB, free: 8.883 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001184/0.2802, allocations: 27.98 kB / 1.225 GB, free: 8.855 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001472/0.2803, allocations: 73.12 kB / 1.225 GB, free: 8.766 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002553/0.2806, allocations: 109 kB / 1.225 GB, free: 8.641 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.2806, allocations: 0 / 1.225 GB, free: 8.641 MB / 0.9825 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003225/0.2809, allocations: 129.5 kB / 1.226 GB, free: 8.508 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.422e-05/0.2809, allocations: 12.12 kB / 1.226 GB, free: 8.496 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.588e-06/0.2809, allocations: 0 / 1.226 GB, free: 8.496 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.297e-05/0.281, allocations: 4 kB / 1.226 GB, free: 8.492 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001161/0.2811, allocations: 19.92 kB / 1.226 GB, free: 8.473 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.27e-06/0.2811, allocations: 0 / 1.226 GB, free: 8.473 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001189/0.2812, allocations: 19.94 kB / 1.226 GB, free: 8.453 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.248e-05/0.2812, allocations: 4 kB / 1.226 GB, free: 8.449 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,occ.pulseStart,$PRE.occ.pulseStart,occ.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 14 * 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.0001136/0.2814, allocations: 137.6 kB / 1.226 GB, free: 8.305 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.024e-05/0.2814, allocations: 15.89 kB / 1.226 GB, free: 8.289 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.023e-05/0.2814, allocations: 8.719 kB / 1.226 GB, free: 8.273 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.563e-06/0.2814, allocations: 0 / 1.226 GB, free: 8.273 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.905e-06/0.2814, allocations: 4 kB / 1.226 GB, free: 8.27 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.665e-06/0.2814, allocations: 0 / 1.226 GB, free: 8.27 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006732/0.2821, allocations: 422.5 kB / 1.226 GB, free: 7.801 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.2821, allocations: 0 / 1.226 GB, free: 7.801 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.94e-05/0.2822, allocations: 15.98 kB / 1.226 GB, free: 7.785 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.884e-06/0.2822, allocations: 0 / 1.226 GB, free: 7.785 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.113e-05/0.2823, allocations: 0.5625 kB / 1.226 GB, free: 7.785 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.251e-06/0.2823, allocations: 7.938 kB / 1.226 GB, free: 7.777 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.2823, allocations: 0 / 1.226 GB, free: 7.777 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003892/0.2827, allocations: 239.2 kB / 1.226 GB, free: 7.527 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 5.675e-05/0.2827, allocations: 85.06 kB / 1.226 GB, free: 7.426 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.635e-05/0.2828, allocations: 8 kB / 1.226 GB, free: 7.418 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001366/0.2829, allocations: 11.92 kB / 1.227 GB, free: 7.406 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.686e-05/0.283, allocations: 7.984 kB / 1.227 GB, free: 7.398 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.913e-05/0.283, allocations: 11.98 kB / 1.227 GB, free: 7.387 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 6.69e-05/0.2831, allocations: 96.81 kB / 1.227 GB, free: 7.293 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2831, allocations: 0 / 1.227 GB, free: 7.293 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003028/0.2834, allocations: 43.88 kB / 1.227 GB, free: 7.25 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 (occ.y,lig.sampleTrigger,$whenCondition3,$whenCondition2,$whenCondition1,lig.on,lig.curSeed,occ.pulseStart) * Number of discrete states: 1 (lig.on) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 7 * 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.0009319/0.2843, allocations: 0.8294 MB / 1.227 GB, free: 6.41 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0003083/0.2846, allocations: 91.88 kB / 1.228 GB, free: 6.32 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.2846, allocations: 0 / 1.228 GB, free: 6.32 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001554/0.2848, allocations: 51.91 kB / 1.228 GB, free: 6.27 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002838/0.2851, allocations: 15.92 kB / 1.228 GB, free: 6.254 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002053/0.2872, allocations: 1.639 MB / 1.229 GB, free: 4.508 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003269/0.2875, allocations: 0.6963 MB / 1.23 GB, free: 3.785 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 5.397e-05/0.2876, allocations: 8.672 kB / 1.23 GB, free: 3.777 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.31e-05/0.2876, allocations: 27.42 kB / 1.23 GB, free: 3.75 MB / 0.9825 GB Notification: Performance of SimCode: time 2.61e-07/0.2876, allocations: 0 / 1.23 GB, free: 3.75 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02367/0.3113, allocations: 3.125 MB / 1.233 GB, free: 0.7461 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.75/8.061, allocations: 4.219 kB / 1.233 GB, free: 0.7461 MB / 0.9825 GB (rm -f Buildings_11_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe ; mkfifo Buildings_11_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe ; head -c 1048576 < Buildings_11_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe >> ../files/Buildings_11_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.sim & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light_res.csv --start-time 0 --stop-time 3600 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.44 Buildings_11_Buildings_Occupants_Office_Lighting_Validation_Hunt1979Light.fmu > Buildings_11_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Occupants_Office_Lighting_Validation_Hunt1979Light.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.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_11_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light_res.csv. Warning: Get data of variable lig.occ from file Buildings_11_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light_res.csv failed! Error: Could not read variable lig.on in file Buildings_11_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light_res.csv. Warning: Get data of variable lig.on from file Buildings_11_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light_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,ill.amplitude,ill.f,ill.offset