Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_Buildings_Occupants_Office_Lighting_Validation_Hunt1979Light",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light,fileNamePrefix="Buildings_9_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.006965/0.006965, allocations: 97.75 kB / 15.73 MB, free: 5.949 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.001423/0.001423, allocations: 193.8 kB / 16.67 MB, free: 5.871 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.374/1.374, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.243/2.243, allocations: 390.3 MB / 0.6648 GB, free: 0.625 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.002272/0.002272, allocations: 63.89 kB / 0.9504 GB, free: 8.203 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8011/0.8034, allocations: 140.4 MB / 1.087 GB, free: 5.289 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light): time 0.002455/0.8059, allocations: 1.531 MB / 1.089 GB, free: 4.23 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001233/0.8072, allocations: 0.7531 MB / 1.09 GB, free: 3.719 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.632e-05/0.8072, allocations: 0.75 kB / 1.09 GB, free: 3.719 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.688e-05/0.8073, allocations: 9.234 kB / 1.09 GB, free: 3.711 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 9.865e-05/0.8074, allocations: 15.55 kB / 1.09 GB, free: 3.699 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005592/0.808, allocations: 127.1 kB / 1.09 GB, free: 3.637 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001426/0.8081, allocations: 92.19 kB / 1.09 GB, free: 3.594 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 9.937e-05/0.8082, allocations: 15.45 kB / 1.09 GB, free: 3.586 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001008/0.8083, allocations: 38.34 kB / 1.09 GB, free: 3.57 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 8.452e-05/0.8084, allocations: 37.55 kB / 1.09 GB, free: 3.555 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.55e-05/0.8085, allocations: 7.719 kB / 1.09 GB, free: 3.555 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002255/0.8087, allocations: 102.7 kB / 1.09 GB, free: 3.52 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 3.211e-05/0.8087, allocations: 16.83 kB / 1.09 GB, free: 3.512 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 5.78e-05/0.8088, allocations: 37.55 kB / 1.09 GB, free: 3.488 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.000311/0.8091, allocations: 161.5 kB / 1.09 GB, free: 3.43 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.8091, allocations: 3.938 kB / 1.09 GB, free: 3.426 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.122e-06/0.8091, allocations: 0 / 1.09 GB, free: 3.426 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.37e-06/0.8091, allocations: 1.219 kB / 1.09 GB, free: 3.426 MB / 0.8575 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.0007372/0.8099, allocations: 477.2 kB / 1.091 GB, free: 2.965 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.882e-05/0.8099, allocations: 9.312 kB / 1.091 GB, free: 2.965 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.565e-05/0.81, allocations: 37.3 kB / 1.091 GB, free: 2.922 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.002e-05/0.81, allocations: 19.39 kB / 1.091 GB, free: 2.91 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001021/0.8101, allocations: 179.3 kB / 1.091 GB, free: 2.703 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.999e-05/0.8102, allocations: 34.05 kB / 1.091 GB, free: 2.672 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.26e-05/0.8102, allocations: 7.703 kB / 1.091 GB, free: 2.668 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002031/0.8104, allocations: 79.38 kB / 1.091 GB, free: 2.621 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.286e-06/0.8105, allocations: 0.7031 kB / 1.091 GB, free: 2.621 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.33e-05/0.8105, allocations: 4 kB / 1.091 GB, free: 2.617 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.98e-06/0.8105, allocations: 1.688 kB / 1.091 GB, free: 2.617 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001992/0.8107, allocations: 48.95 kB / 1.091 GB, free: 2.605 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004891/0.8112, allocations: 319.8 kB / 1.091 GB, free: 2.309 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002175/0.8114, allocations: 73.88 kB / 1.092 GB, free: 2.266 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001093/0.8115, allocations: 40.72 kB / 1.092 GB, free: 2.246 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.267e-05/0.8116, allocations: 5.75 kB / 1.092 GB, free: 2.242 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002509/0.8118, allocations: 91.83 kB / 1.092 GB, free: 2.184 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=10): time 1.443e-06/0.8118, allocations: 0 / 1.092 GB, free: 2.184 MB / 0.8575 GB Notification: Performance of matching and sorting (n=10): time 0.0005056/0.8123, allocations: 170.3 kB / 1.092 GB, free: 2.109 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.391e-05/0.8124, allocations: 62.17 kB / 1.092 GB, free: 2.039 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001015/0.8125, allocations: 133.3 kB / 1.092 GB, free: 1.926 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.537e-05/0.8125, allocations: 32.47 kB / 1.092 GB, free: 1.891 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.606e-05/0.8126, allocations: 92.91 kB / 1.092 GB, free: 1.797 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.519e-05/0.8126, allocations: 29.08 kB / 1.092 GB, free: 1.773 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.728e-05/0.8127, allocations: 31.83 kB / 1.092 GB, free: 1.75 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.837e-05/0.8127, allocations: 324.4 kB / 1.093 GB, free: 1.43 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001216/0.8129, allocations: 35.75 kB / 1.093 GB, free: 1.418 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001235/0.813, allocations: 65.17 kB / 1.093 GB, free: 1.363 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002295/0.8132, allocations: 109.9 kB / 1.093 GB, free: 1.285 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.564e-06/0.8133, allocations: 3.938 kB / 1.093 GB, free: 1.281 MB / 0.8575 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003148/0.8136, allocations: 133.1 kB / 1.093 GB, free: 1.219 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.995e-05/0.8136, allocations: 9.812 kB / 1.093 GB, free: 1.215 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.424e-06/0.8136, allocations: 1.438 kB / 1.093 GB, free: 1.215 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.809e-05/0.8136, allocations: 2 kB / 1.093 GB, free: 1.215 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000126/0.8138, allocations: 24.73 kB / 1.093 GB, free: 1.207 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.664e-06/0.8138, allocations: 3 kB / 1.093 GB, free: 1.207 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001116/0.8139, allocations: 14.98 kB / 1.093 GB, free: 1.203 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.426e-05/0.8139, allocations: 4.859 kB / 1.093 GB, free: 1.203 MB / 0.8575 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 7.829e-05/0.814, allocations: 136.5 kB / 1.093 GB, free: 1.066 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.943e-05/0.814, allocations: 8.391 kB / 1.093 GB, free: 1.062 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.563e-05/0.8141, allocations: 12.19 kB / 1.093 GB, free: 1.051 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.108e-06/0.8141, allocations: 1.422 kB / 1.093 GB, free: 1.051 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.8141, allocations: 1.125 kB / 1.093 GB, free: 1.051 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.8141, allocations: 0.7969 kB / 1.093 GB, free: 1.051 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005876/0.8147, allocations: 426.5 kB / 1.093 GB, free: 0.7031 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.8147, allocations: 4 kB / 1.093 GB, free: 0.6992 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.601e-05/0.8148, allocations: 9.422 kB / 1.093 GB, free: 0.6992 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.687e-06/0.8148, allocations: 2.359 kB / 1.093 GB, free: 0.6992 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.75e-05/0.8148, allocations: 6.047 kB / 1.093 GB, free: 0.6953 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.946e-06/0.8148, allocations: 8.625 kB / 1.093 GB, free: 0.6875 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.8148, allocations: 0.7188 kB / 1.093 GB, free: 0.6875 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003633/0.8152, allocations: 230.3 kB / 1.094 GB, free: 0.5234 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.454e-05/0.8152, allocations: 84.27 kB / 1.094 GB, free: 436 kB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.84e-05/0.8153, allocations: 2.141 kB / 1.094 GB, free: 436 kB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001355/0.8154, allocations: 13.67 kB / 1.094 GB, free: 432 kB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.342e-05/0.8155, allocations: 12.56 kB / 1.094 GB, free: 428 kB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.259e-05/0.8155, allocations: 4.391 kB / 1.094 GB, free: 428 kB / 0.8575 GB Notification: Performance of sorting global known variables: time 6.734e-05/0.8156, allocations: 102.2 kB / 1.094 GB, free: 344 kB / 0.8575 GB Notification: Performance of sort global known variables: time 1.202e-06/0.8156, allocations: 3.938 kB / 1.094 GB, free: 340 kB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003808/0.816, allocations: 53.03 kB / 1.094 GB, free: 320 kB / 0.8575 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.0009617/0.8169, allocations: 0.8268 MB / 1.095 GB, free: 15.6 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0003639/0.8173, allocations: 86.62 kB / 1.095 GB, free: 15.58 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.8173, allocations: 0 / 1.095 GB, free: 15.58 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0001676/0.8175, allocations: 47.3 kB / 1.095 GB, free: 15.57 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003322/0.8179, allocations: 21.67 kB / 1.095 GB, free: 15.55 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002191/0.8201, allocations: 1.632 MB / 1.097 GB, free: 14.14 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002399/0.8203, allocations: 0.6928 MB / 1.097 GB, free: 13.45 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 5.958e-05/0.8204, allocations: 12.44 kB / 1.097 GB, free: 13.44 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.318e-05/0.8204, allocations: 28.09 kB / 1.097 GB, free: 13.42 MB / 0.8731 GB Notification: Performance of SimCode: time 2.21e-07/0.8205, allocations: 0 / 1.097 GB, free: 13.42 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02117/0.8416, allocations: 3.12 MB / 1.1 GB, free: 12.89 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.611/8.452, allocations: 5.875 kB / 1.1 GB, free: 12.89 MB / 0.8731 GB (rm -f Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.sim & python3 -m fmpy simulate --output-file Buildings_9_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_9_Buildings_Occupants_Office_Lighting_Validation_Hunt1979Light.fmu > Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Office_Lighting_Validation_Hunt1979Light.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_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_9_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light_res.csv. Warning: Get data of variable lig.occ from file Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light_res.csv failed! Error: Could not read variable lig.on in file Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light_res.csv. Warning: Get data of variable lig.on from file Buildings_9_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