Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.Hunt1979Light,fileNamePrefix="Buildings_10_Buildings_Occupants_Office_Lighting_Validation_Hunt1979Light",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light,fileNamePrefix="Buildings_10_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.004885/0.004885, allocations: 99.98 kB / 15.73 MB, free: 6.039 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.001132/0.001132, allocations: 202 kB / 16.68 MB, free: 5.965 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.332/1.332, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.665/2.665, allocations: 437 MB / 0.7105 GB, free: 5.008 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001417/0.001417, allocations: 63.91 kB / 1.018 GB, free: 15.08 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2919/0.2933, allocations: 151.6 MB / 1.166 GB, free: 7.34 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light): time 0.003011/0.2964, allocations: 1.523 MB / 1.168 GB, free: 5.801 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001438/0.2978, allocations: 0.7595 MB / 1.168 GB, free: 5.035 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.419e-05/0.2979, allocations: 4 kB / 1.168 GB, free: 5.031 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 3.712e-05/0.298, allocations: 7.875 kB / 1.168 GB, free: 5.023 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 9.36e-05/0.2981, allocations: 15.86 kB / 1.168 GB, free: 5.008 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.000532/0.2986, allocations: 127.6 kB / 1.169 GB, free: 4.883 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0001537/0.2988, allocations: 95.69 kB / 1.169 GB, free: 4.789 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 9.643e-05/0.2989, allocations: 8 kB / 1.169 GB, free: 4.781 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 9.621e-05/0.299, allocations: 47.78 kB / 1.169 GB, free: 4.734 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 7.772e-05/0.2991, allocations: 39.83 kB / 1.169 GB, free: 4.695 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 2.165e-05/0.2991, allocations: 4 kB / 1.169 GB, free: 4.691 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000191/0.2993, allocations: 103.8 kB / 1.169 GB, free: 4.59 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 3.02e-05/0.2993, allocations: 19.97 kB / 1.169 GB, free: 4.57 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 5.278e-05/0.2994, allocations: 35.8 kB / 1.169 GB, free: 4.535 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0003052/0.2997, allocations: 155.7 kB / 1.169 GB, free: 4.383 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.2997, allocations: 0 / 1.169 GB, free: 4.383 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.563e-06/0.2997, allocations: 0 / 1.169 GB, free: 4.383 MB / 0.92 GB Notification: Performance of Transformations before backend: time 7.484e-06/0.2997, allocations: 0 / 1.169 GB, free: 4.383 MB / 0.92 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.0007717/0.3005, allocations: 486.2 kB / 1.169 GB, free: 3.848 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.728e-05/0.3006, allocations: 8.031 kB / 1.169 GB, free: 3.84 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.083e-05/0.3006, allocations: 34.75 kB / 1.17 GB, free: 3.797 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.449e-05/0.3006, allocations: 16.88 kB / 1.17 GB, free: 3.781 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001371/0.3008, allocations: 176.3 kB / 1.17 GB, free: 3.57 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.696e-05/0.3009, allocations: 38.25 kB / 1.17 GB, free: 3.527 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.603e-05/0.3009, allocations: 4.375 kB / 1.17 GB, free: 3.523 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002777/0.3012, allocations: 85.52 kB / 1.17 GB, free: 3.434 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.246e-06/0.3012, allocations: 0 / 1.17 GB, free: 3.434 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.216e-05/0.3012, allocations: 4 kB / 1.17 GB, free: 3.43 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.18e-06/0.3012, allocations: 3.938 kB / 1.17 GB, free: 3.426 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001872/0.3014, allocations: 47.97 kB / 1.17 GB, free: 3.379 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005281/0.302, allocations: 320.7 kB / 1.17 GB, free: 3.016 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002178/0.3022, allocations: 70.58 kB / 1.17 GB, free: 2.938 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001082/0.3023, allocations: 44.83 kB / 1.17 GB, free: 2.891 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 2.243e-05/0.3023, allocations: 0 / 1.17 GB, free: 2.891 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002879/0.3026, allocations: 95.3 kB / 1.17 GB, free: 2.785 MB / 0.92 GB Notification: Performance of pre-optimization done (n=10): time 1.442e-06/0.3026, allocations: 0 / 1.17 GB, free: 2.785 MB / 0.92 GB Notification: Performance of matching and sorting (n=10): time 0.0004671/0.3031, allocations: 169.5 kB / 1.171 GB, free: 2.613 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.856e-05/0.3032, allocations: 55.41 kB / 1.171 GB, free: 2.547 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001112/0.3033, allocations: 139.8 kB / 1.171 GB, free: 2.398 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.936e-05/0.3033, allocations: 33.7 kB / 1.171 GB, free: 2.359 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 5.731e-05/0.3034, allocations: 96.45 kB / 1.171 GB, free: 2.258 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 2.555e-05/0.3034, allocations: 19.86 kB / 1.171 GB, free: 2.238 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.556e-05/0.3035, allocations: 41.7 kB / 1.171 GB, free: 2.191 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.00012/0.3036, allocations: 322.8 kB / 1.171 GB, free: 1.867 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001217/0.3037, allocations: 31.97 kB / 1.171 GB, free: 1.836 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001284/0.3039, allocations: 69.12 kB / 1.171 GB, free: 1.75 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002229/0.3041, allocations: 101.1 kB / 1.171 GB, free: 1.633 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.3041, allocations: 4 kB / 1.171 GB, free: 1.629 MB / 0.92 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002906/0.3044, allocations: 137.5 kB / 1.172 GB, free: 1.488 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.497e-05/0.3044, allocations: 8 kB / 1.172 GB, free: 1.48 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.929e-06/0.3044, allocations: 0 / 1.172 GB, free: 1.48 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.236e-05/0.3044, allocations: 0 / 1.172 GB, free: 1.48 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001173/0.3046, allocations: 23.91 kB / 1.172 GB, free: 1.457 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.283e-06/0.3046, allocations: 4 kB / 1.172 GB, free: 1.453 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001071/0.3047, allocations: 19.92 kB / 1.172 GB, free: 1.434 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.235e-05/0.3047, allocations: 8.5 kB / 1.172 GB, free: 1.426 MB / 0.92 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.0001002/0.3048, allocations: 128.1 kB / 1.172 GB, free: 1.293 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.117e-05/0.3049, allocations: 11.91 kB / 1.172 GB, free: 1.281 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.406e-05/0.3049, allocations: 16.7 kB / 1.172 GB, free: 1.266 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.244e-06/0.3049, allocations: 3.938 kB / 1.172 GB, free: 1.262 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.723e-06/0.3049, allocations: 4 kB / 1.172 GB, free: 1.258 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.987e-06/0.3049, allocations: 0 / 1.172 GB, free: 1.258 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000608/0.3055, allocations: 426.4 kB / 1.172 GB, free: 0.7852 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.3055, allocations: 0 / 1.172 GB, free: 0.7852 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.329e-05/0.3056, allocations: 11.98 kB / 1.172 GB, free: 0.7734 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.083e-06/0.3056, allocations: 0 / 1.172 GB, free: 0.7734 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.422e-05/0.3057, allocations: 3.984 kB / 1.172 GB, free: 0.7695 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.896e-06/0.3057, allocations: 3.938 kB / 1.172 GB, free: 0.7656 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.3057, allocations: 0 / 1.172 GB, free: 0.7656 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003328/0.306, allocations: 227.4 kB / 1.172 GB, free: 0.5273 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 5.991e-05/0.3061, allocations: 96.89 kB / 1.172 GB, free: 424 kB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.529e-05/0.3061, allocations: 7.984 kB / 1.172 GB, free: 416 kB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001285/0.3062, allocations: 15.92 kB / 1.173 GB, free: 400 kB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.198e-05/0.3063, allocations: 7.984 kB / 1.173 GB, free: 392 kB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.842e-05/0.3063, allocations: 8 kB / 1.173 GB, free: 384 kB / 0.92 GB Notification: Performance of sorting global known variables: time 6.279e-05/0.3064, allocations: 95.27 kB / 1.173 GB, free: 288 kB / 0.92 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3064, allocations: 4 kB / 1.173 GB, free: 284 kB / 0.92 GB Notification: Performance of remove unused functions: time 0.0003365/0.3067, allocations: 43.92 kB / 1.173 GB, free: 240 kB / 0.92 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.0008728/0.3076, allocations: 0.8142 MB / 1.173 GB, free: 15.41 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0003049/0.3079, allocations: 91.86 kB / 1.174 GB, free: 15.32 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.308, allocations: 4 kB / 1.174 GB, free: 15.31 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001357/0.3081, allocations: 51.81 kB / 1.174 GB, free: 15.27 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002986/0.3085, allocations: 24.17 kB / 1.174 GB, free: 15.24 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001844/0.3103, allocations: 1.622 MB / 1.175 GB, free: 13.51 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002649/0.3106, allocations: 0.6965 MB / 1.176 GB, free: 12.79 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 5.454e-05/0.3107, allocations: 12.66 kB / 1.176 GB, free: 12.78 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.603e-05/0.3107, allocations: 31.36 kB / 1.176 GB, free: 12.75 MB / 0.9356 GB Notification: Performance of SimCode: time 3.01e-07/0.3107, allocations: 0 / 1.176 GB, free: 12.75 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01952/0.3302, allocations: 3.111 MB / 1.179 GB, free: 9.75 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.54/7.87, allocations: 12.27 kB / 1.179 GB, free: 9.742 MB / 0.9356 GB (rm -f Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe ; mkfifo Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe ; head -c 1048576 < Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe >> ../files/Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light_res.csv --start-time 0 --stop-time 3600 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.44 Buildings_10_Buildings_Occupants_Office_Lighting_Validation_Hunt1979Light.fmu > Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Occupants_Office_Lighting_Validation_Hunt1979Light.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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_10_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light_res.csv. Warning: Get data of variable lig.occ from file Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light_res.csv failed! Error: Could not read variable lig.on in file Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light_res.csv. Warning: Get data of variable lig.on from file Buildings_10_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