Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.Hunt1979Light,fileNamePrefix="Buildings_latest_Buildings_Occupants_Office_Lighting_Validation_Hunt1979Light",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light,fileNamePrefix="Buildings_latest_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.004716/0.004716, allocations: 99.67 kB / 15.73 MB, free: 6.004 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.001401/0.001401, allocations: 192.9 kB / 16.67 MB, free: 5.934 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.275/1.275, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.518/2.518, allocations: 482.6 MB / 0.7551 GB, free: 6.641 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001821/0.001821, allocations: 71.78 kB / 1.083 GB, free: 13.79 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.372/0.3738, allocations: 162.3 MB / 1.242 GB, free: 8.906 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light): time 0.002514/0.3764, allocations: 1.529 MB / 1.243 GB, free: 7.367 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001265/0.3777, allocations: 0.761 MB / 1.244 GB, free: 6.602 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.191e-05/0.3777, allocations: 4 kB / 1.244 GB, free: 6.598 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 2.638e-05/0.3778, allocations: 3.938 kB / 1.244 GB, free: 6.594 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 8.268e-05/0.3779, allocations: 15.8 kB / 1.244 GB, free: 6.578 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.000463/0.3783, allocations: 123.6 kB / 1.244 GB, free: 6.457 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001351/0.3785, allocations: 91.7 kB / 1.244 GB, free: 6.367 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 8.828e-05/0.3786, allocations: 15.97 kB / 1.244 GB, free: 6.352 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 9.161e-05/0.3787, allocations: 43.84 kB / 1.244 GB, free: 6.309 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 7.636e-05/0.3787, allocations: 39.78 kB / 1.244 GB, free: 6.27 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.078e-05/0.3788, allocations: 8 kB / 1.244 GB, free: 6.262 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001837/0.379, allocations: 103.8 kB / 1.244 GB, free: 6.16 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 3.983e-05/0.379, allocations: 23.95 kB / 1.245 GB, free: 6.137 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 5.233e-05/0.3791, allocations: 35.8 kB / 1.245 GB, free: 6.102 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.000238/0.3793, allocations: 155.7 kB / 1.245 GB, free: 5.949 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.586e-06/0.3793, allocations: 0 / 1.245 GB, free: 5.949 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.463e-06/0.3793, allocations: 4 kB / 1.245 GB, free: 5.945 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 4.398e-06/0.3793, allocations: 0 / 1.245 GB, free: 5.945 MB / 0.9669 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.0007566/0.3801, allocations: 470.3 kB / 1.245 GB, free: 5.426 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.622e-05/0.3801, allocations: 12.03 kB / 1.245 GB, free: 5.414 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.335e-05/0.3802, allocations: 34.75 kB / 1.245 GB, free: 5.371 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.077e-05/0.3802, allocations: 16.84 kB / 1.245 GB, free: 5.355 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001588/0.3804, allocations: 180.2 kB / 1.245 GB, free: 5.141 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.751e-05/0.3805, allocations: 38.27 kB / 1.245 GB, free: 5.098 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.774e-05/0.3805, allocations: 8.359 kB / 1.245 GB, free: 5.09 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002073/0.3807, allocations: 77.59 kB / 1.245 GB, free: 5.008 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.438e-06/0.3807, allocations: 0 / 1.245 GB, free: 5.008 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.306e-05/0.3808, allocations: 3.984 kB / 1.245 GB, free: 5.004 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.298e-06/0.3808, allocations: 0 / 1.245 GB, free: 5.004 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002015/0.381, allocations: 51.91 kB / 1.246 GB, free: 4.953 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005524/0.3815, allocations: 324.8 kB / 1.246 GB, free: 4.586 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002171/0.3818, allocations: 62.55 kB / 1.246 GB, free: 4.516 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001153/0.3819, allocations: 44.83 kB / 1.246 GB, free: 4.469 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.053e-05/0.3819, allocations: 4 kB / 1.246 GB, free: 4.465 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000244/0.3822, allocations: 99.34 kB / 1.246 GB, free: 4.355 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=10): time 4.518e-06/0.3822, allocations: 0 / 1.246 GB, free: 4.355 MB / 0.9669 GB Notification: Performance of matching and sorting (n=10): time 0.0004782/0.3827, allocations: 173.7 kB / 1.246 GB, free: 4.18 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.676e-05/0.3827, allocations: 55.41 kB / 1.246 GB, free: 4.113 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001217/0.3828, allocations: 138 kB / 1.246 GB, free: 3.965 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.211e-05/0.3829, allocations: 29.7 kB / 1.246 GB, free: 3.93 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 5.85e-05/0.3829, allocations: 92.36 kB / 1.247 GB, free: 3.832 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 3.627e-05/0.383, allocations: 27.95 kB / 1.247 GB, free: 3.805 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.377e-05/0.383, allocations: 33.7 kB / 1.247 GB, free: 3.766 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001408/0.3832, allocations: 326.8 kB / 1.247 GB, free: 3.438 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001003/0.3833, allocations: 27.97 kB / 1.247 GB, free: 3.41 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001407/0.3834, allocations: 81.06 kB / 1.247 GB, free: 3.312 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002242/0.3837, allocations: 105.1 kB / 1.247 GB, free: 3.191 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.824e-06/0.3837, allocations: 0 / 1.247 GB, free: 3.191 MB / 0.9669 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002906/0.384, allocations: 133.5 kB / 1.247 GB, free: 3.055 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.285e-05/0.384, allocations: 4 kB / 1.247 GB, free: 3.051 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.901e-06/0.384, allocations: 4 kB / 1.247 GB, free: 3.047 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.12e-05/0.384, allocations: 4.219 kB / 1.247 GB, free: 3.043 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001075/0.3841, allocations: 19.97 kB / 1.247 GB, free: 3.023 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.115e-06/0.3841, allocations: 7.938 kB / 1.247 GB, free: 3.016 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001075/0.3843, allocations: 23.91 kB / 1.247 GB, free: 2.992 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.235e-05/0.3843, allocations: 4 kB / 1.247 GB, free: 2.988 MB / 0.9669 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 9.683e-05/0.3844, allocations: 121.8 kB / 1.247 GB, free: 2.859 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.773e-05/0.3844, allocations: 7.953 kB / 1.247 GB, free: 2.852 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.04e-05/0.3844, allocations: 16.72 kB / 1.247 GB, free: 2.836 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.503e-06/0.3844, allocations: 0 / 1.247 GB, free: 2.836 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.3845, allocations: 3.984 kB / 1.247 GB, free: 2.832 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.056e-06/0.3845, allocations: 0 / 1.247 GB, free: 2.832 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006008/0.3851, allocations: 426.3 kB / 1.248 GB, free: 2.359 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.3851, allocations: 0 / 1.248 GB, free: 2.359 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.993e-05/0.3852, allocations: 7.984 kB / 1.248 GB, free: 2.352 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.039e-06/0.3852, allocations: 8 kB / 1.248 GB, free: 2.344 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.395e-05/0.3852, allocations: 3.984 kB / 1.248 GB, free: 2.34 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.095e-06/0.3852, allocations: 3.938 kB / 1.248 GB, free: 2.336 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.12e-07/0.3852, allocations: 0 / 1.248 GB, free: 2.336 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003384/0.3855, allocations: 227.5 kB / 1.248 GB, free: 2.098 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.851e-05/0.3856, allocations: 89 kB / 1.248 GB, free: 1.992 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.448e-05/0.3856, allocations: 7.984 kB / 1.248 GB, free: 1.984 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001222/0.3858, allocations: 23.86 kB / 1.248 GB, free: 1.961 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.991e-05/0.3858, allocations: 7.984 kB / 1.248 GB, free: 1.953 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.848e-05/0.3858, allocations: 8 kB / 1.248 GB, free: 1.945 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 6.394e-05/0.3859, allocations: 97.52 kB / 1.248 GB, free: 1.852 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3859, allocations: 0 / 1.248 GB, free: 1.852 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.000276/0.3862, allocations: 43.92 kB / 1.248 GB, free: 1.809 MB / 0.9669 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.00086/0.387, allocations: 0.8234 MB / 1.249 GB, free: 0.9766 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0002804/0.3873, allocations: 99.75 kB / 1.249 GB, free: 0.8789 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.754e-06/0.3874, allocations: 0 / 1.249 GB, free: 0.8789 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001309/0.3875, allocations: 47.97 kB / 1.249 GB, free: 0.832 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002669/0.3878, allocations: 23.86 kB / 1.249 GB, free: 0.8086 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00183/0.3896, allocations: 1.633 MB / 1.251 GB, free: 15.06 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003159/0.3899, allocations: 0.6924 MB / 1.252 GB, free: 14.34 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 5.043e-05/0.39, allocations: 12.66 kB / 1.252 GB, free: 14.33 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.749e-05/0.39, allocations: 27.44 kB / 1.252 GB, free: 14.3 MB / 0.9825 GB Notification: Performance of SimCode: time 2.3e-07/0.3901, allocations: 0 / 1.252 GB, free: 14.3 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.116/2.506, allocations: 3.104 MB / 1.255 GB, free: 11.33 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.15/17.66, allocations: 9.188 kB / 1.255 GB, free: 11.32 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light_res.mat --tempDir=temp_Buildings_latest_Buildings_Occupants_Office_Lighting_Validation_Hunt1979Light_fmu --startTime=0 --stopTime=3600 --timeout=400 --tolerance=1e-06 Buildings_latest_Buildings_Occupants_Office_Lighting_Validation_Hunt1979Light.fmu > Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Lighting_Validation_Hunt1979Light.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches