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.007729/0.007729, allocations: 99.52 kB / 15.73 MB, free: 6.008 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.001439/0.001439, allocations: 198.9 kB / 16.68 MB, free: 5.93 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.36/1.36, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.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.439/2.439, allocations: 437 MB / 0.7105 GB, free: 4.406 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001304/0.001304, allocations: 63.84 kB / 1.018 GB, free: 9.957 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8081/0.8094, allocations: 151.6 MB / 1.166 GB, free: 3.801 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light): time 0.003033/0.8125, allocations: 1.511 MB / 1.168 GB, free: 2.281 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001562/0.814, allocations: 0.7595 MB / 1.168 GB, free: 1.516 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.108e-05/0.8141, allocations: 3.938 kB / 1.168 GB, free: 1.512 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 3.785e-05/0.8142, allocations: 11.86 kB / 1.168 GB, free: 1.5 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 9.888e-05/0.8143, allocations: 11.86 kB / 1.168 GB, free: 1.488 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006194/0.8149, allocations: 131.5 kB / 1.168 GB, free: 1.359 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0001497/0.8151, allocations: 83.77 kB / 1.169 GB, free: 1.277 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 9.425e-05/0.8152, allocations: 19.98 kB / 1.169 GB, free: 1.258 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001108/0.8153, allocations: 39.84 kB / 1.169 GB, free: 1.219 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 8.249e-05/0.8154, allocations: 39.83 kB / 1.169 GB, free: 1.18 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 2.197e-05/0.8154, allocations: 7.938 kB / 1.169 GB, free: 1.172 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002075/0.8157, allocations: 95.91 kB / 1.169 GB, free: 1.078 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 3.834e-05/0.8157, allocations: 19.92 kB / 1.169 GB, free: 1.059 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 6.456e-05/0.8158, allocations: 39.84 kB / 1.169 GB, free: 1.02 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0002586/0.816, allocations: 157.8 kB / 1.169 GB, free: 0.8672 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 3.537e-06/0.816, allocations: 4 kB / 1.169 GB, free: 0.8633 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.363e-06/0.8161, allocations: 0 / 1.169 GB, free: 0.8633 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 1.004e-05/0.8161, allocations: 4 kB / 1.169 GB, free: 0.8594 MB / 0.8887 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.0007855/0.8169, allocations: 466.5 kB / 1.169 GB, free: 352 kB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.03e-05/0.8169, allocations: 8.922 kB / 1.169 GB, free: 344 kB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.212e-05/0.817, allocations: 38.73 kB / 1.169 GB, free: 296 kB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.393e-05/0.817, allocations: 12.84 kB / 1.169 GB, free: 284 kB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001348/0.8172, allocations: 176.2 kB / 1.17 GB, free: 68 kB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.615e-05/0.8172, allocations: 38.25 kB / 1.17 GB, free: 24 kB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.999e-05/0.8173, allocations: 8.375 kB / 1.17 GB, free: 16 kB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002332/0.8175, allocations: 81.45 kB / 1.17 GB, free: 15.93 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.885e-06/0.8175, allocations: 0 / 1.17 GB, free: 15.93 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.559e-05/0.8175, allocations: 7.984 kB / 1.17 GB, free: 15.92 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.368e-06/0.8176, allocations: 0 / 1.17 GB, free: 15.92 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001965/0.8178, allocations: 51.95 kB / 1.17 GB, free: 15.87 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005249/0.8183, allocations: 324.6 kB / 1.17 GB, free: 15.5 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003061/0.8186, allocations: 74.53 kB / 1.17 GB, free: 15.42 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001111/0.8187, allocations: 36.84 kB / 1.17 GB, free: 15.38 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 2.146e-05/0.8188, allocations: 0 / 1.17 GB, free: 15.38 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002664/0.819, allocations: 107.3 kB / 1.17 GB, free: 15.27 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=10): time 1.934e-06/0.819, allocations: 0 / 1.17 GB, free: 15.27 MB / 0.9044 GB Notification: Performance of matching and sorting (n=10): time 0.0004832/0.8195, allocations: 165.5 kB / 1.171 GB, free: 15.1 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.263e-05/0.8196, allocations: 63.39 kB / 1.171 GB, free: 15.02 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001169/0.8197, allocations: 136.7 kB / 1.171 GB, free: 14.88 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 2.107e-05/0.8197, allocations: 29.7 kB / 1.171 GB, free: 14.84 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 5.38e-05/0.8198, allocations: 92.28 kB / 1.171 GB, free: 14.75 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 2.505e-05/0.8198, allocations: 19.8 kB / 1.171 GB, free: 14.73 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.269e-05/0.8199, allocations: 33.7 kB / 1.171 GB, free: 14.69 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001081/0.82, allocations: 318.8 kB / 1.171 GB, free: 14.37 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001114/0.8201, allocations: 43.97 kB / 1.171 GB, free: 14.32 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001311/0.8203, allocations: 66.62 kB / 1.171 GB, free: 14.24 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002259/0.8205, allocations: 105.1 kB / 1.171 GB, free: 14.12 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.8205, allocations: 3.938 kB / 1.171 GB, free: 14.12 MB / 0.9044 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003191/0.8208, allocations: 141.3 kB / 1.172 GB, free: 13.97 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.655e-05/0.8209, allocations: 8.125 kB / 1.172 GB, free: 13.96 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.8209, allocations: 4 kB / 1.172 GB, free: 13.96 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.411e-05/0.8209, allocations: 4 kB / 1.172 GB, free: 13.96 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001227/0.821, allocations: 11.98 kB / 1.172 GB, free: 13.95 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.444e-06/0.821, allocations: 4 kB / 1.172 GB, free: 13.94 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001125/0.8212, allocations: 15.92 kB / 1.172 GB, free: 13.93 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.352e-05/0.8212, allocations: 4 kB / 1.172 GB, free: 13.92 MB / 0.9044 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.0001069/0.8213, allocations: 125.7 kB / 1.172 GB, free: 13.79 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.304e-05/0.8213, allocations: 19.89 kB / 1.172 GB, free: 13.77 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.346e-05/0.8214, allocations: 8.719 kB / 1.172 GB, free: 13.76 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.555e-06/0.8214, allocations: 0 / 1.172 GB, free: 13.76 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.943e-06/0.8214, allocations: 0 / 1.172 GB, free: 13.76 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.8214, allocations: 7.938 kB / 1.172 GB, free: 13.75 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000661/0.8221, allocations: 430.7 kB / 1.172 GB, free: 13.28 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.8221, allocations: 0 / 1.172 GB, free: 13.28 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.599e-05/0.8222, allocations: 12.09 kB / 1.172 GB, free: 13.27 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.44e-06/0.8222, allocations: 7.969 kB / 1.172 GB, free: 13.26 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.277e-05/0.8222, allocations: 4 kB / 1.172 GB, free: 13.25 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.781e-06/0.8222, allocations: 3.938 kB / 1.172 GB, free: 13.25 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.517e-06/0.8222, allocations: 11.92 kB / 1.172 GB, free: 13.24 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003336/0.8225, allocations: 223.4 kB / 1.172 GB, free: 13 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 5.704e-05/0.8226, allocations: 88.95 kB / 1.172 GB, free: 12.9 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.257e-05/0.8226, allocations: 4 kB / 1.172 GB, free: 12.89 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000134/0.8228, allocations: 11.92 kB / 1.172 GB, free: 12.88 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.405e-05/0.8228, allocations: 15.92 kB / 1.172 GB, free: 12.87 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.624e-05/0.8229, allocations: 4 kB / 1.173 GB, free: 12.86 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 6.989e-05/0.8229, allocations: 103.2 kB / 1.173 GB, free: 12.76 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8229, allocations: 0 / 1.173 GB, free: 12.76 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0003245/0.8233, allocations: 40 kB / 1.173 GB, free: 12.72 MB / 0.9044 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.0008594/0.8241, allocations: 0.8292 MB / 1.173 GB, free: 11.88 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0002944/0.8244, allocations: 87.89 kB / 1.174 GB, free: 11.8 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.8245, allocations: 0 / 1.174 GB, free: 11.8 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0001325/0.8246, allocations: 47.91 kB / 1.174 GB, free: 11.75 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002889/0.8249, allocations: 15.92 kB / 1.174 GB, free: 11.73 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002349/0.8273, allocations: 1.626 MB / 1.175 GB, free: 9.996 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002603/0.8275, allocations: 0.6962 MB / 1.176 GB, free: 9.273 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 5.713e-05/0.8276, allocations: 12.66 kB / 1.176 GB, free: 9.262 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.887e-05/0.8277, allocations: 27.42 kB / 1.176 GB, free: 9.234 MB / 0.9044 GB Notification: Performance of SimCode: time 2.31e-07/0.8277, allocations: 0 / 1.176 GB, free: 9.234 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02232/0.85, allocations: 3.125 MB / 1.179 GB, free: 6.23 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.927/8.777, allocations: 15.7 kB / 1.179 GB, free: 6.219 MB / 0.9044 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light_res.mat --tempDir=temp_Buildings_10_Buildings_Occupants_Office_Lighting_Validation_Hunt1979Light_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 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.mat","/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) "" Variables in the reference:time,lig.ill,lig.occ,lig.pArriv,lig.on Variables in the result:ill.amplitude,ill.f,ill.offset,ill.phase,ill.startTime,ill.y,lig.AArriv,lig.BArriv,lig.CArriv,lig.MArriv,lig.ill,lig.occ,lig.on,lig.pArriv,lig.samplePeriod,lig.seed,occ.period,occ.startTime,occ.width,occ.y,time